How to Use Actions For Success View and More

OptinMonster makes it easy to control what happens after your campaign’s form is submitted, or button is selected. Whether that is redirecting the visitor, showing a success view, closing the campaign or reloading the page.

In this article, you’ll learn how to configure the success action for your campaign’s form and/or button elements.

Before You Start

Here are some things to know before you begin:

  • You can configure Actions on the submit button as well as individual button elements you add to your campaign.

Optin Form Actions

When using one of our native integrations, you can configure your optin form to have different actions when submitted.

To configure the optin form submission behavior, follow these steps:

  1. In the campaign builder, select the submit button of the optin form to edit the settings.
  2. Next, select Action view in the sidebar and choose the action you wish to use from the dropdown field.
    Edit the submit button to add a redirect URL
  3. When you’re finished, click Save.

Button Actions

You can add button elements to your campaign that have different actions when selected.

To configure the button behavior, follow these steps:

  1. In the campaign builder, select the button element you want to edit.
  2. Next, select the Action view in the sidebar and choose the action you wish to use from the dropdown field.Edit button element to add link to your downloadable file
  3. When you’re finished, click Save.

Troubleshooting

What Actions are available?

At this time, you can choose from the following Actions:

  • Show a view – shows the different view of this campaign (Yes/No, Optin, or Success view)
  • Close campaign
  • Close campaign and refresh the page
  • Redirect to a URL
  • Open in a new Window (buttons elements only)
How do I run scripts when the campaign is submitted?

In the same area you edit the Action you will find a field that allows you to enter any script(s) you wish to run when the optin is submitted or button element is selected. For example, a Facebook tracking pixel or analytics events.

Please note, all scripts must be wrapped in script tags to be valid, like this:

To learn more, follow our guide about Success Triggered Scripts.