Skip to content

Instantly share code, notes, and snippets.

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