jQuery, Thickbox and Google Analytics

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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:

[sourcecode language='javascript']
$(function(){
if(typeof(pageTracker) != ‘undefined’) {
$(’a.thickbox, area.thickbox, input.thickbox’)
.click(
function(){
pageTracker._trackPageview(
$(this).attr(’href’)
);
}
);
}
}
);
[/sourcecode]



3 Responses to “jQuery, Thickbox and Google Analytics”

rdmey on December 26th, 2007 22:40:

Google 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]


jquery  - empfohlen von anderen | oneview.de - Dein Online-Gedächtnis on January 11th, 2008 14:00:

[...] 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 [...]


[Sedna RSS] jQuery.info on February 1st, 2008 02:20:

[...] 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 [...]


Leave a Reply

(required)

(required)

Contact

You are more than welcome to contact us if you would like to discuss anything regarding the blog.

About

Front-End Book is run and primarily written by Mattias Hising, an experienced Lead Developer from Uppsala, Sweden. I try to focus my efforts on Front-End related issues, as I find the problems to solve are more complex and interesting than the ones in traditional back-end development.

Twitter | GitHub | FriendFeed | LinkedIn | StumbleUpon | Facebook | Delicious