Created
July 6, 2015 20:00
-
-
Save cryptixcoder/83d074ebc5c23bcbf608 to your computer and use it in GitHub Desktop.
GA Tracker
This file contains hidden or 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
$(document).on('click','.trackit', function(){ | |
var action = $(this).data('ga-action'), | |
label = $(this).data('ga-label'), | |
category = $(this).data('ga-category'); | |
ga('send','event',category,action,label); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment