Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created December 7, 2015 22:00
Show Gist options
  • Save ericakfranz/88ee0341224ad4aea7d0 to your computer and use it in GitHub Desktop.
Save ericakfranz/88ee0341224ad4aea7d0 to your computer and use it in GitHub Desktop.
Write to the console a message whenever a manually-triggered OM optin is loaded into the DOM.
jQuery(document).ready( function($){
$(document).on('OptinMonsterManualOptinSuccess', function( event, data, object ){
console.log("Congratulations! The " + data.optin + '-' + data.type + " manual-trigger optin has been successfully loaded.");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment