Created
February 12, 2013 14:43
-
-
Save luckyshot/4770306 to your computer and use it in GitHub Desktop.
Affiliate link tracking in 60 seconds (jQuery)
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
jQuery('a[href*=".amazon."]').click(function(){ | |
_gaq.push(['_trackPageview', '/aff/'.jQuery(this).html()]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment