OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Integrate OptinMonster with OpenCart

How to Integrate OptinMonster with OpenCart

Do you want to grow your email list and recover more sales from your OpenCart store? OptinMonster works on any website where you can add our embed code, including OpenCart, so you can show popups, floating bars, and other campaigns to your shoppers. In this article, you’ll learn how to add OptinMonster to your OpenCart store.

Before You Start

Here are some things to know before you begin:

  • This guide uses the menus in OpenCart 4. If you’re on an older version, some menu names and screens may look a little different.
  • You’ll need to log in to your OpenCart admin area with a user who can edit your store’s design and settings.
  • OpenCart has everything you need built in. You can add OptinMonster to your whole store with the Theme Editor, or to a specific page with the HTML Content module.

Copying Your Embed Code

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

To copy your embed code, follow these steps:

  1. In the OptinMonster campaign builder, navigate to the Publish view and copy the Global Embed or Campaign Embed code.
    Platform section with Any Site boxed and the embed tabs.

Note: To show a campaign on just 1 page, like an Inline campaign inside your page content, use the Campaign Embed (Advanced) code instead. We’ll cover that in the Embedding a Campaign on a Specific Page section.

Using the Theme Editor

OpenCart’s Theme Editor lets you add the embed code to your store’s footer template without installing anything.

To add the embed code with the Theme Editor, follow these steps:

  1. First, navigate to Design > Theme Editor in your OpenCart admin area.
    The admin sidebar with Design > Theme Editor.
  2. Next, click the blue + button (Add New).
  3. Then, choose your store from the Store dropdown.
  4. After that, select common/footer from the Choose Template list.
    Add Theme form with the store selected and common/footer chosen in Choose Template.
  5. In the Code box, scroll to the bottom of the template and paste your embed code just before the closing </body> tag. In the default template, it’s on the last line, written as </body></html>.
    Theme Editor with common/footer open and the embed code pasted before </body>.
  6. Now, make sure the Status toggle is turned on, so your change goes live on your store. It’s on by default.
  7. When you’re finished, click the Save button (the disk icon).

Note: The Theme Editor saves your changes as a separate copy, so your original theme file stays untouched. If you need to edit the embed code later, open your saved template from the list instead of adding a new one.

Using a Code Extension Instead

If you don’t want to edit a template, you can add your embed code with a custom code extension from the OpenCart Marketplace, like Custom Code CSS and Javascript.

Important: This is a paid, third-party extension that OptinMonster doesn’t maintain. For help installing or using it, reach out to the extension’s developer.

Embedding a Campaign on a Specific Page

When you add an Inline campaign, you’ll need to place its embed code inside the page content where you want it to show up. You can also use this method to show any campaign on just 1 page of your store.

To embed a campaign on a specific page, follow these steps:

  1. First, copy the Campaign Embed (Advanced) code from your campaign’s publish settings.
  2. Next, navigate to Extensions > Extensions in your OpenCart admin area.
  3. Then, choose Modules as the extension type.
  4. After that, find HTML Content in the list.
    Extensions page with Modules selected and the HTML Content row.
  5. Next, click the blue + button for HTML Content to add a new module.
  6. Now, enter a Module Name.
  7. In the Description editor, click the Source button.
  8. Then, paste your embed code.
    Edit HTML Content Module with the embed code in Source view.
  9. Next, turn on the Status toggle.
  10. Then, click Save.
  11. After that, navigate to Design > Layouts.
    Layouts list with the Home layout row.
  12. Next, click the edit button for the layout of the page where you want your campaign to appear, like Home.
  13. Then, add your HTML Content module to a position, like Content Top.
    Edit Layout for Home with the HTML Content module added under Content Top.
  14. When you’re finished, click Save.

Note: If HTML Content isn’t installed yet, click the green install button next to it in the module list before you edit it.

That’s it! Now you know how to add OptinMonster to your OpenCart store.

Troubleshooting

What domain do I enter when I create my campaign?

When you add your website to the campaign, enter your OpenCart store’s domain, like example.com.

Why isn’t my campaign showing on my store?

First, make sure your campaign is published and that you saved your embed code. If you used the Theme Editor, check that its Status toggle is on.

Then, use the Live Site Inspector to see which settings might be stopping your campaign from showing. You’ll find the steps in our guide on how to test an OptinMonster 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