Event not tracking
-
Hi there,
I don’t seem to be able to get the GA tracking to work on a button I’ve added to a test page.
I’ve used the following General Settings (I’ve tried unchecking/checking all the different properties to see if it made a difference – no change):
Google Analytics Identifier – XX-00000000-0
Don’t add the GA tracking code – Ticked
I’m using the Google Tag Manager – Not ticked
I’m using the Global Site Tags code – Not ticked
Universal Tracking Code – Ticked
IP Anonymization – Not ticked
Advanced Mode – Not tickedI’ve set up click tracking with the following parameters:
Element Name -gaConnect
Type – Class
Event Category – Button
Event Action – Click
Event Label – Test Link
Event Value – 0
Non-Interaction – FalseAnd added the following button to the page – Test Link
I added the Google Analytics/Optimise tracking code to my WordPress theme’s header.php as follows:
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’https://www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘XX-00000000-0’, ‘auto’);
ga(‘require’, ‘XXX-0000000’);
ga(‘send’, ‘pageview’);
</script>Google Analytics is working for my site; it’s tracking page hits/views, geo-locations, etc.
I haven’t added the same goal and ids in my Google Analytics account, as your tutorial didn’t cover it, I’m not sure if I needed to do that.
Any help would be great, thanks in advance!
ConorThe page I need help with: [log in to see the link]
- The topic ‘Event not tracking’ is closed to new replies.