Event Tracking Code Is Not Working

0 replies
  • SEO
  • |
Hi,

My events are not showing in Google analytics.
I have added this code to my website but found events are not shown in reporting section.

<a href="javascript:void(0)" onclick="_gaq.push(['_trackEvent','arrows','click','backarrow',, 'true'])"><span class="arrow-left"></span></a>

But someone was suggested me to use this code instead above

<a href="javascript:void(0)" onClick="_gaq.push(['_trackEvent', 'arrows', 'click', 'backarrow',, true]);"><span class="arrow-left"></span></a>

I am curious to know which code is correct and what's the main reason
Hope I'll get some good answers from this forum.

Thanks!
#code #event #tracking #working

Trending Topics