jQuery, Thickbox and Google Analytics

Published 2007-12-20 by Mattias Hising in Google Analytics, JavaScript, jQuery

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'));
});
}
});

Next Step

Related Reading

3 Comments »

  1. links from TechnoratiGoogle Reader Shared Items The evil of dropdown, flyout and pop-up menus (GUUUI - The interaction designers coffee break)Google Analytics(ga.js), <b>jQuery</b>, Thickbox and Stats(Google Blog Search: jquery)IE 8 now doesn’t trip on Acid (Ajaxian)Analyzing Timer Performance (John Resig)DOM Assistant updated to 2.5, adds CSS selector support (456 Berea Street)Theme Firefox On-the-Fly with Personas [Featured Firefox Extension]

    Pingback by rdmey — 2007-12-26 @ 22:40

  2. Kramer auto Pingback[...] mit: Liste, List, jquery, SCREENshots, PlugIns, übersicht merken bewerten Google Analytics(ga.js), jQuery, Thickbox and Stats - The Frontend Du hast leider keinen oder keinen aktuellen Flash-Player installiert. Du kannst den aktuellen [...]

    Pingback by jquery  - empfohlen von anderen | oneview.de - Dein Online-Gedächtnis — 2008-01-11 @ 14:00

  3. Kramer auto Pingback[...] 19:35Google Analytics(ga.js), jQuery, Thickbox and Stats - The Frontend - garycannone del.icio.us/tag/jquery — Analytics(ga.js) Frontend Google Stats The Thickbox and jQuery [...]

    Pingback by [Sedna RSS] jQuery.info — 2008-02-01 @ 02:20

RSS feed for comments on this post. TrackBack URL

Leave a comment

*

*

Add to Technorati Favorites