Custom Even Tracking Question
-
If this has already been posted, I’m sorry. It’s too hard to search through these tickets for a particular plugin.
I’m trying to add classes to affiliate links on my site to track them in analytics. It seem like I would add the suggested event tracking code in the “Additional tracking code (after tracker initialization)” section. But, after adding
jQuery( document ).ready( function( $ ) { // Affiliate LinkTracking for Google Analytics $('.thirstylink').on('click', function() { ga('send', 'event', 'Affiliate', 'Click', 'Affiliate_'+$(this).attr('title')+'_'+location.href]); }); });I don’t see any events being tracked (real-time) when I click on a test link that I’ve manually applied the thirstylink class too. If anybody can help, I would really appreciate it.
The topic ‘Custom Even Tracking Question’ is closed to new replies.