OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

Pass Lead Data to Redirect URLs in OptinMonster

Pass Lead Data to Redirect URLs in OptinMonster

With OptinMonster you can pass lead data to the redirect URL by enabling a single option in the campaign builder. Passing lead data to the redirect URL allows you to use that data for further customization on that page.

In this article, you’ll learn how to enable the option to pass lead data to the redirect URL in OptinMonster.

Before You Start

Here are some things to know before you begin:

  • Lead data is passed to the redirect URL as query arguments.
  • The email address is passed to the query arg as om_email.
  • The name is passed to the query arg as om_name (if the name field is enabled).
  • The phone is passed to the query arg as om_phone (if the phone field is enabled).
  • The query arguments used (as shown above) cannot be customized at this time.

Pass Lead Data to Redirect URL

When you’re looking to further customize and personalize your success / thank you page you can use lead data to do so.

To pass lead data to the redirect URL, follow these steps:

  1. From the Design view of the campaign builder, directly select the submit button of the optin form to edit the settings.
  2. Next, locate the Button Click Action setting in the sidebar panel and select Redirect to a URL or Open in new Window from the dropdown field.
  3. You can now toggle the Pass parameters to redirect URL? option.
    Enable the pass parameters to redirect url option.
  4. When you’re finished, click Save.

FAQs

Can you provide an example of how the lead data is passed in the redirect URL?

Yes, an example of the formatting is:

https://optinmonster.com/[email protected]&om_name=John+Smith&om_phone=5555555555
Can I customize the query args?

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

Can I capture the query args from the page and pass that to the redirect URL?

Yes, it is possible to capture the query args, like UTM Parameters, from the page your visitor is submitting the campaign on and pass it to the URL you are redirecting them to as per the below steps:

  1. The first step for any campaign you wish to add this functionality to, is to add the following code to the Custom Javascript field in the campaign builder:
    Custom Javascript OptinMonsterThis will register a custom smart tag {{query_args}}, that will output all query args from the current page.
document.addEventListener('om.Campaign.load', function(event) {
        const queryString = window.location.search; // capture all query args
        // Registers a custom `query_args` smart tag that outputs all query args from the current page.
        event.detail.Campaign.Dtr.setCustomVariable('query_args', queryString);
        });
  1. Then, set the Success Action of your form or button to Redirect to a URL, and add this smart tag to the end of the URL: {{query_args}}

    For example:https://optinmonster.com/{{query_args}}Add Query Parameter to Redirect URL
    Save the Campaign and it will capture the query args from the page the campaign is displayed on and pass them on to the URL you are redirecting the users to.

How can I learn more about using lead data in the redirect URL?

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


If you’re serious about jumpstarting your website business growth, then get started with OptinMonster today!

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)

Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE!

Click here to get started →


Still stuck?

How can we help?

Last updated on


Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com