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