Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created December 7, 2015 22:01
Show Gist options
  • Save ericakfranz/49d048195a28917d9081 to your computer and use it in GitHub Desktop.
Save ericakfranz/49d048195a28917d9081 to your computer and use it in GitHub Desktop.
Write to the console when a manually-triggered OM optin fails to load into the DOM as expected.
jQuery(document).ready( function($){
$(document).on('OptinMonsterManualOptinError', function( event, data, object ){
console.log("Oops! There was a problem loading the " + data.optin + '-' + data.type + " manual-trigger optin on this page.");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment