Reputation: 1053
I am having trouble implementing event tracking in Google Analytics.
Here is the code I am using:
<a id="x" class="herolink" onClick="ga('send', 'event', 'banner_click', 'banner', 'events');" href="https://example.com"> <img id="y" src="http://example.com/y.jpg" />
Is the syntax correct? I am not seeing any results when I filter by event label and category.
Upvotes: 1
Views: 694
Reputation: 8907
Check in your Real-Time reports, as you won't be able to see data in standard reports until the data is processed, which can take up to 24 hours. The syntax looks correct. Also check with Google Analytics debugger tool (Chrome plugin) to see the hit. If you can see the event in RT, then you should be fine and only need to wait for the data to be processed.
Upvotes: 1