ericakfranz
12/7/2015 - 10:02 PM

Write to the console when an OM optin has successfully loaded into the DOM.

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.");
    });
});