Posted By

neal_grosskopf on 07/27/10


Tagged

jquery Analytics


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

neal_grosskopf
reynish


Tracking Outgoing Links in Google Analytics Using Event Tracking and jQuery


 / Published in: jQuery
 

URL: http://www.nealgrosskopf.com/tech/thread.php?pid=71

Learn how to track outgoing links in Google Analytics with jQuery.

  1. $(document).ready(function(){
  2. $("a[href^='http://']").click(function(){
  3. pageTracker._trackEvent("links", "external", $(this).attr("href"), 0);
  4. });
  5. });

Report this snippet  

You need to login to post a comment.