Pass Lead Data to Redirect URLs in OptinMonster

Do you want to pass your lead data to your redirect URL? OptinMonster makes it easy! This guide will show you how to set up a success redirect URLs and automatically pass lead data to it as query arguments.

Note: This feature is for Advanced Users who are familiar with using query string values. At this time we do not provide support beyond ensuring this feature is correctly outputting lead data as query string values. New to query strings and want to learn more? Check out our FAQs section.
  1. Edit the Campaign
  2. Configure the Success Action Setting
  3. Enable the Pass Lead Data to Redirect URL Option

Step 1 – Edit a Campaign

From the OptinMonster Dashboard, select the Edit button for the campaign you wish to edit.

dashboard-edit-campaign

Step 2 – Configure the Success Action Setting

Navigate to the Success panel in the campaign Builder.

Here you’ll select the Redirect to a new page option from the Success Action dropdown.

Select the Redirect URL as your Success Action in the campaign Builder's Success panel.

Go ahead and enter the URL you wish to redirect visitors to when they submit your campaign in the Redirect URL field.

Step 3 – Enable the Pass Lead Data to Redirect URL Option

Finally, you’ll activate the Pass Lead Data to Redirect URL option.

Enable the Pass Lead Data to Redirect URL to add the lead data as query arguments to your redirect URL.

Save the changes to your campaign and that’s it!

The email is passed to the query arg as om_email, and the name passed to the query arg (if the name field is enabled) is om_name.

Interested in pairing JavaScript with your OptinMonster campaigns for even more functionality? Check out our documentation on our JavaScript events API.


FAQs

Q: Can I customize the query args?

A: No, the default query args (om_email and om_name) cannot be modified.


Q: How do I use this feature?

A: If you’re new to using query string values and want to learn more check out the following resources: