GA events in Sitefinity

Posted by Community Admin on 03-Aug-2018 23:55

GA events in Sitefinity

All Replies

Posted by Community Admin on 21-May-2015 00:00

I am having a hard time getting SiteFinity to register an Events in Google Analytics. 

I am wondering if somebody could supply me with some proven code that I can put into a content block on a webpage to test.

I've actually added the two variants below but have not received any success in GA's Events view:

<a onclick="var that=this;_gaq.push(['_trackEvent','I_would_like_to','Click',this.href]);setTimeout(function()location.href=that.href;,400);return false;" href="#400">Click 400</a>

<a href="#orig" onclick="_gaq.push(['_trackEvent', 'I_would_Like_To', 'Click', 'book']);">Original</a> 

 

 

 

This thread is closed