Today I had to find some way to track the links within a page using Google Analytics, jQuery and Thickbox. With the new ga.js it is pretty straight forward:
$(function(){
if(typeof(pageTracker) != 'undefined') {
$("a.thickbox, area.thickbox, input.thickbox").click(function(){
pageTracker._trackPageview($(this).attr('href'));
});
}
});

Pingback by rdmey — 2007-12-26 @ 22:40
Pingback by jquery - empfohlen von anderen | oneview.de - Dein Online-Gedächtnis — 2008-01-11 @ 14:00
Pingback by [Sedna RSS] jQuery.info — 2008-02-01 @ 02:20