RSS

Posts Tagged 'Google Analytics'

Google Analytics Event Tracking

December 24

Hello, Thank you for visiting - I hope that you will find useful information. Leave a comment but if you have any comments on the subject.

yes yes I know that this is actually already an old hat and has been a good month in the information floating around the Web. And yes I know that probably is not the best start to motivate someone to read on.

Anyway, recently I received a nice email from Google in Mountain View. In this I was told that this new event tracking is enabled on my account. This makes it possible to track events on the site without having to create a virtual pageview must. The feature is useful for eg Ajax, Javascript or Flash applications. Just as in my box with the tabs in the left column at the top.

What could be observed

Integration test

To test it I got the code in the box to the right involved. So now the clicks on categories, RSS and search can be counted. In addition I have put the following code as OnCLick event on the left of each tab:

? View Code HTML
  pageTracker._trackEvent ("TabBox", "categories", "optLabel", 1);
 pageTracker._trackEvent ("TabBox", "RSS", "optLabel", 2);
 pageTracker._trackEvent ("TabBox", "search", "optLabel", 3); 

Actually, I do not need the last two optional parameters. But I have to test it with the same definition.

The result
Within Google Analytics can be found at the point of content a new "Event Tracking" with appropriate sub-items. The result should look like this.

Event Tracking Google Analytics

Google Analytics Event Tracking

Event Trackung Übersichtsseite

Event Trackung overview page

Event Trackung Actions

Event Actions Trackung

Extended integration
In addition to this fine extension have let the guys and still think Google Mädls of two additional methods of event tracking.

  • Time Tracker ()

This feature makes it possible to measure time intervals. For example, a timer could click on the Play button to start a video and click on the Stop the timer is stopped again. This gives you a statistic how long users have viewed the relevant video.

? View Code HTML
  <input type="button" onclick="javascript:timeTracker._recordStartTime();" value="Start" /> <input onclick = "javascript: timeTracker._recordEndTime ();" type = "button" value = "stop" /> 
  • Mouseover Tracker ()

The mouseover Tracker allows to track the first mouse-over an item. This method was developed to prevent an accumulation of garbage. With the normal rascals event would in fact be tracked each mouseover.