Closed steverabino closed 7 years ago
Google Analytics does not work well with Turbolinks; even though the user may be navigating between pages, the path recorded in GA is not updated:
N.B. I've been navigating around, and now on "/drawings/new" but all pageviews are recorded for "/" path
I've had this issue on another rails project, and this was the solution: https://github.com/stevesmith2609/acb-calc/blob/master/app/assets/javascripts/google-analytics.js
Alternatively, we could disable Turbolinks
What
Google Analytics does not work well with Turbolinks; even though the user may be navigating between pages, the path recorded in GA is not updated:
N.B. I've been navigating around, and now on "/drawings/new" but all pageviews are recorded for "/" path
How
I've had this issue on another rails project, and this was the solution: https://github.com/stevesmith2609/acb-calc/blob/master/app/assets/javascripts/google-analytics.js
Considerations