Before You Start
Here are some things to know before you begin:
This guide is intended only for advanced users with technical knowledge. No support is provided for customizing or troubleshooting the examples provided.
You can use the options within the campaign builder to redirect the visitor when the campaign is submitted. This guide should be used only if you have a specific need for it.
This guide provides examples that may need to be modified to meet your specific needs.
Redirect All Campaign on Close
Redirect the visitor to a specific URL when any campaign on the site is closed.
Replace https://optinmonster.com with your own redirect url.
Redirect Specific Campaign on Close
Redirect the visitor to a specific URL when a specific campaign on the site is closed. Replace https://optinmonster.com with your own redirect url, and YOUR_OPTIN_SLUG_HERE with the slug of your campaign.
What about Custom HTML Integrations?
If you are using a Custom HTML Integration for your campaign, be sure to add the class om-trigger-conversion to the submit button of your custom form.