OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Make Every External Link a MonsterLink

How to Make Every External Link a MonsterLink

Increase the chances of converting visitors before they leave your site by turning external links into MonsterLinks. Our simple guide below shows you how, with just a few modifications.

Before You Start

This guide assumes you do the following process to get started:

  1. Create a MonsterLink Campaign

NOTE:

This guide is for advanced users only and is to serve as an example of what you can do with OptinMonster. No support will be provided for this implementation on your site.

Copy the Unique ID (slug) for Your Campaign

  1. Go to your campaign dashboard.
  2. Next, find the MonsterLink campaign you will use as your Global MonsterLink. Scroll down in the right panel in the campaign dashboard and look for the campaign ID. You can copy the ID by clicking on it if you hover over it.
copy campaign ID

From the image above, you can see the Unique ID for this particular campaign is pcoamlfqsv7jeervep0b.

Copy and Paste the JavaScript Example Code to Your Site

Next, you need to add the following JavaScript to your site. Preferably, this JavaScript should be added to the template file used by all the pages on your site in a similar location where you pasted the OptinMonster embed code.

If you’re using WordPress, follow this guide to add JavaScript to your WordPress site.

If you are pasting this in the HTML, you will need to wrap this code in <script> tags.

Update the Code with Your MonsterLink’s Unique ID

For the last step, you need to update the example code you pasted earlier from the section above. You only need to replace the YOUR-UNIQUE-ID value in the code you pasted.

In the code example below, you see the beginning of what you pasted earlier. Go ahead and update the value of the Unique ID you copied earlier.

Remember, for this example, the value for my Unique ID is: pcoamlfqsv7jeervep0b

Your Unique ID will be different.

(function(window, document) {
	// Your campaign's UNIQUE ID
	var campaignSlug = 'pcoamlfqsv7jeervep0b';

	// ... the rest of the code, omitted for clarity

})(window, document);

Congratulations! You’ve successfully added MonsterLink across your site! Go ahead and test out your OptinMonster 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 →


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