RSS

Google Analytics Event Tracking

December 24

Hi, thanks for the visit - hope that you will find useful information. Leave a comment but if you have comments on the subject.

yes yes I know that this is actually already an old hat and has been a good month info floating around the web. And yes I know that probably is not exactly 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 tracking of events on the site without having to create a virtual pageview need. Useful is the example for Ajax, Javascript or Flash applications. As with my box with the tabs in the left column at the top.

What do you need to

Test Integration

To test the whole thing I have the code in the box to the right involved. So now the clicks on categories, RSS and search are counted. For this I have set the following code as the OnClick event on the links 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 this with the same definition.

The result
Within Google Analytics can be found at the point Content a new entry "Event Tracking" with appropriate sub-items. The whole thing looks like this.

Event Tracking Google Analytics

Google Analytics Event Tracking

Event Trackung Übersichtsseite

Event overview Trackung

Event Trackung Actions

Event Trackung Actions

Advanced Integration
Fine addition to this expansion have come up with the boys and girls still think of Google, two additional methods for event tracking.

  • Time Tracker ()

This feature makes it possible to measure time spans. could, for example, when a timer Click the Play button to start a video and click on the Stop the timer is stopped again. We obtain a statistic how long users can have the appropriate video viewed.

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

The MouseOver Tracker allows to track the first mouse over an element. This method has been developed to a large collection of data to avoid waste. With the normal event pageTracker would ultimately be tracked each mouseover.



Ähnnliche Posts:

  1. Multiple Google analytics accounts on one page
  2. Google Analytics: Custom Reports
  3. Analytics own IP filter out Google (Part 1)
  4. Google Analytics: Campaign success more accurately assess
  5. Analytics own IP filter out Google (Part 2)

Tags: ,

Leave a Reply

  1. Flo

    10th July 2009 at 16:15

    There's widgets on one of our websites, which are displayed by random. to count this show we have decided the event tracker abuse. basically works very well. only sees the pageTracker as the now-user interaction and thus the bounce rate-now on all sides to 0 pageTracker is not, has the same effect :-(
    maybe you have an idea of how to solve it?

  2. Markus Kapferer

    10th July 2009 at 19:58

    hi, what exactly should be tracked? Clicks on the widget or how many times the widget is displayed?
    Probably the latter, for which I know can not answer.
    Two starting points but would be:
    * Benutzdefinierte variables: eg: pageTracker._setVar ("widget1"); - Disadvantage: These values are stored as a cookie on the user level. If several different widgets as part of the cookie lifetime you have to modify the existing value and always overwrite. Furthermore, it was reported here on Google and forums of bugs associated with the bounce rate.
    * A completely dirty workaround:
    The displayed widget in the Seitennahmen attach and subsequently parse through a filter. Then you can take a widget to be removed from the pagename widget and save it as a custom value. Could theoretically work, I have tested something like but not yet.

  3. Dietwolf

    27th May 2010 at 18:58

    Good morning, mega nice blog you run. I myself also have long created a website, a search engine. At the moment, still visible in http://beta.jerome.de . Währe nice if you send me as you find them or what perhaps it is improvable. A design will help in the course of the day. Thank you - 345zhf4