// $Id:$ // Start the script once all page is loaded $(function() { $("a").each(function(i) { // Track all external links if (!$(this).attr("href").match(ga_basepath.replace(/\//g, "\/"))) { path = $(this).attr("href").replace(/http\:\/\/(www\.)*/g, "").replace(/[/.:]/g, "_") $(this).click(function() {urchinTracker("/outgoing/" + path);}) } // Track all downloads (links with a given extension) if ($(this).attr("href").match(ga_filetypes)) { path = $(this).attr("href").replace(/http\:\/\/(www\.)*/g, "").replace(/[/.:]/g, "_") $(this).click(function() {urchinTracker("/downloads/" + path);}) } }); // Start tracking urchinTracker(); // track ecommerce if you are on review page if (ga_ecommerce) {__utmSetTrans();} })