Redirect to a specific url if there's an error.
jQuery(document).ready(function($){ $(document).on('OptinMonsterOnError', function(event, data, object){ var url = "http://optinmonster.com"; $(location).attr('href',url); }); });