Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[📚][firebase_analytics_web]: Firebase Analytics for Flutter Web not working if Google Tag is not included in index.html #16746

Open
pcba-dev opened this issue Nov 22, 2024 · 1 comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. good first issue Good for newcomers platform: web Issues / PRs which are specifically for web. plugin: analytics type: documentation Improvements or additions to documentation

Comments

@pcba-dev
Copy link

It appears that Firebase Analytics for Flutter Web requires the Google Tag script to be manually included in the index.html file for proper functionality. Without this, the Google Analytics panel reports that "Data collection isn’t active for your website," even after correctly initialising Firebase Analytics as per the Firebase Analytics documentation.

If it is actually required, the documentation should explicitly instruct developers to include the tag.

@pcba-dev pcba-dev added good first issue Good for newcomers type: documentation Improvements or additions to documentation labels Nov 22, 2024
@SelaseKay SelaseKay added plugin: analytics platform: web Issues / PRs which are specifically for web. labels Nov 22, 2024
@SelaseKay
Copy link
Contributor

Hi @pcba-dev, thanks for raising this. However, I don't think you have to manually add Google Tag script to get analytics working. I just tested with the current firebase_analytics example app and it works fine without the script. Which firebase_analytics version are you using?

@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. good first issue Good for newcomers platform: web Issues / PRs which are specifically for web. plugin: analytics type: documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants