Return to Snippet

Revision: 29351
at July 27, 2010 22:24 by neal_grosskopf


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

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

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

Initial Title
Tracking Outgoing Links in Google Analytics Using Event Tracking and jQuery

Initial Tags
jquery

Initial Language
jQuery