Adding OptinMonster to your site is easy, you can even use Google Tag Manager to implement our embed code.
In this article, you’ll learn how to embed OptinMonster on your site using Google Tag Manager.
Before You Start
- Google Tag Manager is just one option for adding OptinMonster’s embed code to your site. We offer many platform-specific guides to help you get started quickly.
Configure Google Tag Manager
When you create a campaign in OptinMonster you’ll want to embed it on your website.
To embed your campaigns on your website using Google Tag Manager, follow these steps:
- Log into Google Tag Manager.
- From the Workspace screen, select Add New Tag to create a new Tag.
- Add a title for your tag.
- Next, select the Tag Configuration section to view the Tag Type menu. Scroll down and select Custom HTML.
- In a new browser tab, edit the campaign you want to embed and navigate to the Publish view. Choose the Any Website embed option and copy the account-wide embed code provided.
- Return to Google Tag Manager and paste the embed code into the Custom HTML field.
- Next, enable the Support document.write option.
This step is mandatory, your campaign will not function on your site if this option is not enabled!
- Expand the Advanced Settings section and select the Tag firing option you wish to use. In this example, we’ll fire the Tag once per page load.
- Select the Triggering section.
Because you’re using the account-wide embed code we recommend you configure the Tag to fire on All Pages of your site and control where on your site the campaign appears through the campaign builder’s Display Rules.
- After you review your setup, click Save on the top right to save your new tag.
- You’ll now see the Tag you’ve created in the Workspace view of Google Tag Manager.
- Once you’ve created your Tag you can either Preview or Submit (Publish) it. To make this campaign live, go ahead and click Submit.
New Tags added will indicate a new version of Google Tags loading on your site. To help track changes, you should add a version name, including what you changed. Specifically, you’ve added the account-wide OptinMonster embed code so you can mention that.
- When you’re finished, select Publish.
If you’re serious about jumpstarting your website growth, then get started with OptinMonster today!
Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE! Click here to get started →
My campaign isn’t showing on my site after I’ve embedded it using Google Tag Manager.
Double-check that your Tag in GTM has the support document.write option enabled. This is required: