Helpt with Google Analytics Event Tracking
Okay, so I have a webpage that uses Google Analytics. It works fine for
pageviews, but does not record any events. I use the older script ga.js
and my event tracking codes look like
_gaq.push(['_trackEvent', 'click', 'navigation click', 'home']);
I use it in different ways, like as an onClick action
<a href="#home" onclick="_gaq.push(['_trackEvent', 'click', 'navigation
click', 'home']);">Home</a>
or to record scroll depth (along with the waypoint plugin)
$('#printdesign').waypoint(function(direction){
_gaq.push(['_trackEvent', 'scroll', 'scroll reach', 'printdesign']);
}, { offset: '20%', triggerOnce: true });
Absolutely no event has ever been tracked.
The page has been online for just about a day and a half. Might this be
the reason, although pageviews are working? Could there be a conflict with
another script? Anything else I might be doing wrong?
No comments:
Post a Comment