-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix($plugin-google-analytics): duplicate tracking of first page (fix #2017) #2039
Conversation
Thanks for your contribution, but please do not delete the PR template next time. I found another issue, and it would be better if we can solve it, too. Scene 1Open the homepage: https://deploy-preview-2039--vuepress.netlify.com/ Click "Get Started" (i.e. go to the guide page via vue-router):
Scene 2Open the guide page directly: https://deploy-preview-2039--vuepress.netlify.com/guide/
Conclusion
|
I just checked it out.
I tried opening other pages and switching multiple times. It's actually always pointing to the first page (whichever it may be) that we open. Only the The way it is currently written, the valid URL per route is the base URL ( |
@meteorlxy This seems to be the intended behavior to track the point of entry, after which the |
Hmmmm that's strange.
But there is no It seems that the behavior of "analytics.js" is not consistent with the documentation of "Measurement Protocol". Alright, let's put this issue aside and merge this PR first. Thanks for your contribution and investigation ❤️ |
Oh fuck, wrong scope 😅 .... |
Thanks again! 💚 |
Glad I could contribute! Thank you 😇 |
Fixes #2017
Reasoning in Issue.