Please Log in or Create an account to join the conversation.
function trackOutboundLink(link, category, action) { try { _ gaq.push(['_trackEvent', category , action]); } catch(err){} setTimeout(function() { var patt=/youtube|youtu.be/i; if (!patt.test(link.href)) { document.location.href = link.href; } }, 100); } window.addEvent('domready', function(){ $$('a:not([href*="' + document.domain + '"])').each(function(el){ el.addEvent('click', function(){ trackOutboundLink(this, 'Outbound Links', el.getProperty('href')); return false; }); }); });