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

what meaning of analytics options ? #226

Closed
jerryc127 opened this issue Jul 12, 2020 · 1 comment
Closed

what meaning of analytics options ? #226

jerryc127 opened this issue Jul 12, 2020 · 1 comment

Comments

@jerryc127
Copy link

what meaning of analytics options ?

it mean we don't need to do anything like reload the google analytics ?

@mtimofiiv
Copy link

mtimofiiv commented Aug 24, 2020

When you navigate to a new page, since with this module you are not reloading the page, analytics scripts might not be aware that the page has changed to track page views or whatever. It's necessary to tell Google Analytics (or others if you don't use it) that a navigation has happened.

In the Google script, you can send it an event telling GA that the navigation happened using the ga() function. So, you don't need to re-load the GA script, but you need to trigger an event saying the user has navigated to a new page.

You can find docs on that here, on Google's developer site:
https://developers.google.com/analytics/devguides/collection/analyticsjs/pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants