OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Use Success Triggered Scripts

How to Use Success Triggered Scripts

OptinMonster makes it easy to use our Success Scripts feature to incorporate scripts into your campaigns that trigger when a specific action is completed, such as clicking a button or submitting a form. This allows you to use scripts like Facebook’s tracking pixel and more.

In this article, you’ll learn how to use the Success Scripts feature in OptinMonster.

Before you start, this feature requires a Growth subscription.

If you’re adding a Meta Pixel to your campaign, be sure to follow our dedicated guide here.

You can trigger Success Scripts for ANY button or form in your campaign, not just those with conversion tracking enabled.

Form Success Scripts

When you create a campaign in OptinMonster you may wish to trigger specific scripts to run after the optin form is submitted.

To configure the optin form success script, follow these steps:

  1. From the Design view of the campaign builder, directly select the Optin Fields Block in your campaign.
  2. Next, expand the Success Script panel in the left pane of the builder.
    success scripts builder
  3. Add your script(s) to the provided field.
  4. When you’re finished, Save the campaign.

Button Success Scripts

When you create a campaign in OptinMonster, you may wish to trigger specific scripts to run after a button is clicked.

To configure the button success script, follow these steps:

  1. From the Design view of the campaign builder, directly select the Button Block in your campaign.
  2. Next, expand the Success Script panel in the left pane of the builder.
  3. Add your script(s) to the provided field.
  4. When you’re finished, Save the campaign.

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 →

FAQs

Do I need to add <script> tags?

Yes, your Javascript will need to be wrapped in <script></script> tags to work properly.

How can I load external Javascript files into the campaign builder to use with the Success Scripts feature?

It’s not possible to load Javascript files into the page using the Success Scripts field. Instead, you should load any file dependencies directly into the page on your website where you will be showing the campaign.


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