views:

70

answers:

1

Hi All,

I have set up event tracking for the first time with Google analytics.

My account is receiving normal traffic data but the test clicks I am doing are not showing???

Added ga.js tracking code to bottom of doc before closing :

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12365091-1");
pageTracker._trackPageview();
} catch(err) {}</script>

Have added trackEvent code as follows:

<a onclick="pageTracker._trackEvent('Showcase Data', 'Contact Details Viewed', 'PunkLogic - Sustainability through Creativity');" rel="facebox" href="#10" class="contact">Contact PunkLogic</a>

Does it take a while for this type of data to display? Or have I done something wrong???

Thanks.

+1  A: 

Google Analytics does not offer real time statistics.

Most of the time it takes between a few hours and a day for statistics to show up.

Jimmy Shelter
So I have added the code correctly? Thanks BTW
Jackson