Created
July 29, 2019 19:51
-
-
Save daveamato/ad195965a781a6ad19456c09b9f7349f to your computer and use it in GitHub Desktop.
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
<script> | |
jQuery( document ).ready( function() { | |
/* Form ID #5 */ | |
var formID = 5; | |
var category = 'Email List'; | |
var action = 'Subscribed'; | |
var label = 'New Subscriber'; | |
jQuery( document ).on('click', '.nf-form-' + formID + '-cont input[type=button]', function() { | |
ga('send', 'event', category, action, label ); | |
}); | |
/* Form ID #6 */ | |
var formID = 6; | |
var category = 'Another Email List'; | |
var action = 'Subscribed'; | |
var label = 'New Subscriber'; | |
jQuery( document ).on('click', '.nf-form-' + formID + '-cont input[type=button]', function() { | |
ga('send', 'event', category, action, label ); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment