Created
October 13, 2010 20:28
-
-
Save Lytol/624828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Track user clicks on specified links | |
// | |
$("a.track").click(function(event) { | |
var link = $(this).attr("href"); | |
var category = $(this).attr("rel"); | |
if(!category) { | |
category = "General"; | |
} | |
_gaq.push(['_trackEvent', category, link]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment