a code to track clicks on outgoing links

Posted by Tristan on Stack Overflow See other posts from Stack Overflow or by Tristan
Published on 2010-04-27T07:23:21Z Indexed on 2010/04/27 7:33 UTC
Read the original article Hit count: 264

Filed under:
|
|

Hello, I found this on the web:

$('a[href^=http]:not("[href*=://' + document.domain + ']")').click(function() {
 pageTracker._trackPageview('/outgoing/' + $(this).attr('href'));
});

But it's not working. In my Google Analytics account there are no /outgoing/ links showing (it's been 24+ hours since I implemented it).

What's wrong with this code? I'm using jQuery of course ;)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about tracking