GA events in Sitefinity - General Discussions - General Discussions - Progress Community
 General Discussions

GA events in Sitefinity

  • GA events in Sitefinity
  • 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>