Event tracking not working
-
Hey,
First of all, I have very little to none knowledge of wordpress and php.What I am trying to do, is to use event tracking so see if people press the read more heading on the home page to read news and devlogs.
I’m using the class and not ID and setting it like this:
<?php $moreText = '<h2 class="btn' . str_replace(" ","_",get_the_category($post_id)[0]->name) . '">Read More</h2>'; //print $moreText; ?>
The two current categories are Devlog and News, so the class name becomes btnDevlog and btnNews.
When I inspect the heading in the browser, the class name is correct and match what I wrote in the WP GA events click tracking. But nothing shows up in Google Analytics.
Can anyone help me getting the data to google analytics?
Additional info:
– We are using MonsterInsight light to implement google analytics but the light version does not include event tracking.
– I have done nothing on Google Analytics besides coping the GA tracking code.The page I need help with: [log in to see the link]
- The topic ‘Event tracking not working’ is closed to new replies.