How to Integrate OptinMonster with Magento

OptinMonster works on any website where you can add our embed code, including Magento.

In this article, you’ll learn how to integrate OptinMonster with Magento.

Magento 1

After you’ve created a campaign in OptinMonster, you’ll want to embed it on your Magento site.

To add the embed code to your entire site, follow these steps:

  1. In the OptinMonster campaign builder, navigate to the Publish view and copy the Global or Campaign Embed code.
    Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.
  2. Next, log into your Magento site and navigate to CMS > Static Blocks.
    Navigate to the Static Blocks screen in your Magento admin to begin adding your campaign.
  3. From the Static Blocks screen select an existing block near the foot of the page.
    In this example, we’ve selected the Footer Links SM block to edit.
    When adding your lightbox campaign embed code, try to add it to a block close to the foot of the page.
  4. Since the block we’ve selected is already configured, all we need to do is paste the embed code we previously copied into the Content field, below the existing HTML.
    When editing your block, you can paste your embed code.
  5. When you’re finished, click Save.

Magento 2

After you’ve created a campaign in OptinMonster, you’ll want to embed it on your Magento site.

To add the embed code to your entire site, follow these steps:

  1. In the OptinMonster campaign builder, navigate to the Publish view and copy the Global or Campaign Embed code.
    Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.
  2. Next, log into your Magento site and navigate to Content > Design > Configuration.
  3. Select the active theme for your store to edit it.
  4. Locate the Footer section and paste the OptinMonster embed code into the Miscellaneous HTML field.
    Magento 2 Miscellaneous HTML field in the Footer.
  5. When you’re finished, Save the change.
  6. Be sure to flush the cache for your site to see the change.

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 →

Troubleshooting

What domain do I enter when creating my campaign?

You’ll want to add the domain that appears in the address bar when you view your website.

If you haven’t registered the domain you want to use in your OptinMonster account yet, you can add the site through the Publish screen in the campaign builder, or through the Account > Sites screen. Learn more about how to register your domain in OptinMonster.

  1. In the Publish view of the campaign builder, be sure the domain is listed under the Websites section. Click Add a website if your domain isn’t already assigned to the campaign to select and add it.
    Add site to the Publish screen for your OptinMonster campaign.
  2. When you’re finished, click Save.