-
Notifications
You must be signed in to change notification settings - Fork 27k
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
with-google-analytics double tracks page views #20549
Comments
Hi, take a look to the example using react-ga . The Chrome extension add a query string that is the cause of the issue: check for it on the |
I just removed unnecessary |
Ah yep, that worked -- thanks @cly |
Some extra info for anyone running into this issue. It looks like with the newer GA- tracking ids the useEffect router handling isn't needed. But for the older UA- tracking id's it is. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
with-google-analytics example double counts page_views. The code
is not necessary.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Page views are tracked once.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: