what meaning of analytics options ? #226

Closed
opened 2020-07-12 03:10:06 -05:00 by jerryc127 · 1 comment
jerryc127 commented 2020-07-12 03:10:06 -05:00 (Migrated from github.com)

what meaning of analytics options ?

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

what meaning of analytics options ? it mean we don't need to do anything like reload the google analytics ?
mtimofiiv commented 2020-08-24 03:28:17 -05:00 (Migrated from github.com)

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

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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#226