-
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
Dual Google Analytics Pings on Initial Page Load #2017
Dual Google Analytics Pings on Initial Page Load #2017
Comments
Not only google-analytics, but also other plugins that send request on initial page load. |
I cannot reproduce this. Tried with Firefox and Chrome, but I'm only getting the expected single ping. |
@ajitzero You can try to repro this with serviceWorker enabled |
Alright, I managed to reproduce this on both browsers. Next, I found the relevant code for this in So here is what I think is happening. The first ping is sent during the first initialization of the vuepress blog/instance (for any route) without the Edit: Reference |
Thanks @ajitzero |
Bug report
Steps to reproduce
VuePress instances including https://vuepress.vuejs.org/ are receiving duplicate Google Analytics tracking pings on initial page load
What is expected?
Only one "collect" ping on initial page load
What is actually happening?
Two "collect" pings are occurring on initial page load
Other relevant information
Repro:
google-analytics
The text was updated successfully, but these errors were encountered: