Posted By

markrocky on 07/21/10


Tagged


Versions (?)

TRack outbound links in Google analytics


 / Published in: JavaScript
 

  1. $("a").click(function() { // all links are outbound for this project
  2. $anchor_element = $(this);
  3. pageTracker._trackPageview ('/outgoing/' + $anchor_element.attr("href"));
  4. window.open($anchor_element.attr("href"));
  5. return false;
  6. });

Report this snippet  

You need to login to post a comment.