OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Integrate OptinMonster with Drupal 8

How to Integrate OptinMonster with Drupal 8

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

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

Before You Start

Here are some things to know before you begin:

Integrate with Drupal

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

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

  1. In the OptinMonster campaign builder, navigate to the Publish view and copy the Global Embed code.
    Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.
  2. Next, log into your Drupal site and select the Structure link from the admin menu.
    Click on Structure
  3. Select Block Layout.
    Click Block Layout
  4. Select the Custom Block Library tab.
    Click Custom Block Library
  5. Next, select the Add custom block button.
    Click Add Custom Block
  6. On the Add Custom Block screen you’ll complete the following steps:
    1. Enter a Block description to easily identify this campaign’s block in Drupal.
    2. Select Full HTML from the text format dropdown.
    3. Select the Source icon in the Body toolbar.
      Add a title, change the text format, select source and paste your code. Then save your custom block.
  7. Finally, paste the OptinMonster embed into the body of the custom block.
    Please be careful to follow the steps above in order. If you paste the embed code BEFORE changing the Text Format or without choosing Source, the script itself will display on your live site.
  8. When you’re finished, click Save.
  9. You’ll be returned to the list view of the Custom Block Library. Click the Block Layout tab.
  10. Locate a Footer region and click the grey Place Block button.
    Place the Custom Block in a Footer region
    Your theme may have several footer regions, you can choose any one of them.
  11. A modal window will appear, select the Place Block button next to the custom block you previously created.
    Click the grey Place Block button next to the custom block you previously created.
  12. Add a Title for your custom block so you can easily identify it in the future, then be sure the Display title option is disabled.
    Give the custom block a title, and do not display the title. Click Save.
  13. When you’re finished, click Save Block.

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.

Still stuck?

How can we help?

Last updated on


Start Getting More Leads & Sales Today with OptinMonster!

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