How to Enable OptinMonster Debugging

OptinMonster’s JavaScript Events API provides many powerful features, including the ability to enable optin debugging.

To use optin debugging, place the following script in your site’s footer and it will output data about the optin to the browser’s console.

<script type="text/javascript">
    jQuery(document).ready(function($){
        jQuery(document).on('OptinMonsterInit', function(event, data, object) {
            object.setProp('debug', true);
        });
    });
</script>