Skip to content

Instantly share code, notes, and snippets.

@vinhboy
Created March 2, 2010 06:02
Show Gist options
  • Save vinhboy/319191 to your computer and use it in GitHub Desktop.
Save vinhboy/319191 to your computer and use it in GitHub Desktop.
jQuery(".tracked").click(function(){
var rel = jQuery(this).attr('href');
pageTracker._trackPageview('/outbound/'+rel);
if (pageTracker._trackEvent("Outbound", "URL", rel)) {
window.location = rel;
}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment