Skip to content

Instantly share code, notes, and snippets.

@aaroneaton
Created June 15, 2015 15:21
Show Gist options
  • Save aaroneaton/a76ca04d60a799bcce00 to your computer and use it in GitHub Desktop.
Save aaroneaton/a76ca04d60a799bcce00 to your computer and use it in GitHub Desktop.
Manually tracking OptinMonster impressions & conversions
$(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