Saturday, 15 September 2012

Why is my Google Event Tracking not working? -



Why is my Google Event Tracking not working? -

i've added website tracking code above of site:

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setaccount', 'ua-xxxxxx-1']); _gaq.push(['_trackpageview']); _gaq.push(['_setdomainname', 'none']); (function() { var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s); })(); </script>

notice set domain name "none" work on localhost. added event trigger:

jquery( ".selectbutton" ).click(function() { _gaq.push(["_trackevent", "experiment 1", "clicked", "fund x clicked"]); });

when trigger this, can see in "networking" console of browser:

http://www.google-analytics.com/__utm.gif?utmwv=5.6.0&utms=2&utmn=xxxx&utmhn=localhost&utmt=event&utme=5(experiment%201*clicked*select%20fund%20with%20id%20-%201)&utmcs=utf-8&utmsr=1600x900&utmvp=1584x534&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=15.0%20r0&utmdt=experiment%201%20%7c%20xxxxx&utmhid=79xxxxxx&utmr=0&utmp=%2fag%2fwww%2fexperiment-1&utmht=1413xxxxxxx&utmac=ua-xxxxxx-1&utmcc=__utma%3d111872281.1692363809.1413440349.1413440349.1413440349.1%3b%2b__utmz%3d111872281.1413440349.1.1.utmcsr%3d(direct)%7cutmccn%3d(direct)%7cutmcmd%3d(none)%3b&utmjid=&utmu=6baaaaaaaaaaaaaaaaaaaaae~

in other words, talking google. can't see results in google analytics. thought why? doing wrong? or supposed wait 24 hr before results appear?

the network response looks - can see utme parameters (utme=5(experiment%201*clicked*select%20fund%20with%20id%20-%201), different have in code above, anonymity reasons). need wait @ to the lowest degree 24 hours before info reported in standard reports. in meantime, can check if can see event in real-time reports (do within 30 minutes of sending in event).

google-analytics

No comments:

Post a Comment