Created
June 15, 2015 15:21
-
-
Save aaroneaton/a76ca04d60a799bcce00 to your computer and use it in GitHub Desktop.
Manually tracking OptinMonster impressions & conversions
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
$(document).on('OptinMonsterOnShow', function(event, props, object) { | |
object.trackGoogleAnalytics('ga-[your-optin-slug]', 'impression'); | |
}); | |
$(document).on('OptinMonsterOptinSuccess', function(event, props, object) { | |
object.trackGoogleAnalytics('ga-[your-optin-slug]', 'conversion'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment