How to Add OptinMonster to Any Website

OptinMonster can work with any website. The best lead generation tool works on custom CMS sites too.

In this article, you’ll learn how to add OptinMonster to any website.

Before You Start

Here are some things to know before you begin:

Embed OptinMonster

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

To add OptinMonster to any website, 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. Paste the embed code into your site template file just before the closing </body> tag.

Example

In this example, we’re editing the index.html file. Note: Your own site may use a different file naming convention, use file snippets, or use an interface option for adding embed codes.

Paste the embed code you previously copied just before the closing </body> tag of your HTML file. Save the changes to your file and upload it to your site.

You can paste the embed code into your HTML file near the closing body tag.