Can't get Google Analytics to work properly #17447
-
Hi, All my internal urls are using the Link component. Like this:
Google Analytics doesn't register when I'm clicking the link. I have a layout component as per next tutorial. I've tried adding the analytics script within the Head component in here.
No matter where I put this script, it doesn't seem to register the page clicks correctly. How can I install Google Analytics the proper way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is |
Beta Was this translation helpful? Give feedback.
Is
router.events.on('routeChangeComplete'
not firing for you in_app.js
? Maybe try to put aconsole.log
on line 9 to see what event may or may not be being fired off.