Created
December 3, 2015 16:19
-
-
Save ericakfranz/0f6820dfb3a43b94d223 to your computer and use it in GitHub Desktop.
Redirect the visitor to a specific URL when any optin is exited or successfully submitted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
function omRedirect() { | |
var url = "http://optinmonster.com"; | |
$(location).attr('href',url); | |
} | |
$(document).on('OptinMonsterOptinSuccess', function(event, data, object){ omRedirect(); }); | |
$(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment