/ Published in: jQuery

Learn how to track outgoing links in Google Analytics with jQuery.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function(){ $("a[href^='http://']").click(function(){ pageTracker._trackEvent("links", "external", $(this).attr("href"), 0); }); });
URL: http://www.nealgrosskopf.com/tech/thread.php?pid=71
Comments
