Hello, thanks for visiting - I hope that you will find useful information. but also leave a comment 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 information floating around the Web. And yes I know that probably is not the best start to motivate someone to read on.
But 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. Is very useful for eg Ajax, Javascript or Flash applications. Just as in my box with the tabs in the right column at the top.
What could be observed
- It must be the latest Javacsriptfile (ga.js) are included by Google.
- The Javascript on every call must be defined to track the event.
- The whole thing is still in beta phase. It can indeed come to misconduct. This feature has not yet activated on all accounts.
- A detailed documentation is available here: http://code.google.com/intl/de-DE/apis/analytics/docs/eventTrackerGuide.html
Test Integration
To test it I got the code in the box to the right involved. So now the clicks on categories, RSS and search are counted. I put the following code to the OnClick event on the left of each tab:
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 of content a new "Event Tracking" with appropriate sub-points. The result should look like this.
Extended integration
In addition to this fine extension have let the guys and still think Google Mädls of two additional methods for event tracking.
- TimeTracker ()
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 Stop when the timer is stopped again. This gives you a statistic how long users have viewed the relevant video.
<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 mouseover an item. This method has been developed in order to avoid a large accumulation of garbage. With the normal event racker would ultimately be tracked each mouseover.







