Created
December 8, 2016 07:30
-
-
Save MikSDigital/a935861aefd08bd3162f34c29cafff88 to your computer and use it in GitHub Desktop.
analytics event trigger
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
$(function(){ | |
$(".btn-large").on('click', function() { | |
var name = (this.text + " - " + this.id); | |
if(typeof(analytics) == 'object') { | |
analytics.track('Clicked', { | |
category: 'Webtrader', | |
label: name | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment