How to Add an After Post or Inline Campaign

OptinMonster makes it easy to embed Inline campaigns on your website using our Global and Campaign Embed codes. No matter what platform your website is built with, it’s just a few steps to add your Inline campaign to any page.

In this article, you’ll learn how to add your Inline campaign to your website.

Before You Start

Here are some things to know before you begin:

  • This guide assumes you’ve already created an Inline campaign and you’re ready to embed it.
  • This guide includes instructions for three ways to add your Inline campaign to your site. Each one is based on how your website is connected to OptinMonster.

HTML Placeholder

If you are using the Global Embed code on your site you can follow these instructions to add your Inline campaign.

  1. Navigate to the Publish view in the campaign builder.
    Publish tab in the OptinMonster campiagn builder shows the campaign's current publish status.
  2. Next, copy the HTML Placeholder from the Platform > Any Site > Global Embed section. It will appear highlighted in yellow.
    Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.
  3. Paste the embed code into the page or post content of your site, where you want it to visually appear.
  4. When you’re finished, click Save.

Campaign Embed Code

If you’re using the Campaign Embed option to add campaigns to your site instead of the Global Embed you’ll want to follow these instructions.

  1. Navigate to the Publish view in the campaign builder.
    Publish tab in the OptinMonster campiagn builder shows the campaign's current publish status.
  2. Next, copy the Campaign Embed from the Platform > Any Site section.
    Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.
  3. Paste the embed code into the page or post content of your site, where you want it to visually appear.
  4. When you’re finished, click Save.

WordPress Automatic Output

If you’re using the OptinMonster WordPress plugin to embed your campaigns and want to automatically show the campaign at the end of your posts, follow these steps:

  1. From the WordPress admin of your site, navigate to the Campaigns screen in the OptinMonster plugin.
  2. Next, click on the Name of your Inline campaign from the list.
  3. Make sure that Enable Embed Code is toggled to Yes. 
  4. Then, select Automatic from the Display options and choose where in any given post the Inline campaign is allowed to show.
  5. When you’re finished, click Save.

WordPress Shortcode

If you’re using the OptinMonster WordPress plugin to embed campaigns on your site you can follow these instructions to embed your Inline campaign using shortcode.

  1. From the WordPress admin of your site, navigate to the Campaigns screen in the OptinMonster plugin.
  2. Next, click on the Name of your Inline campaign from the list.
  3. Make sure that Enable Embed Code is toggled to Yes. 
  4. Then, select Manual from the Display options.
  5. Copy the Shortcode for the campaign.
  6. Paste the shortcode into the post or page content on your site where you want the campaign to appear.
  7. When you’re finished, click Save.

WordPress Gutenberg Block

If your website is built using WordPress and you are using the block editor Gutenberg, you can use our OptinMonster Campaigns block to easily add an Inline campaign exactly where you’d like it to appear.

  1. Click the + Add New Block icon, then search for OptinMonster Campaign.
  2. Select the Inline campaign you’d like to display from the list of available Inline campaigns.
    How to insert an OptinMonster inline campaign using a Gutenberg block for WordPress
By default, Inline campaigns inserted using the OptinMonster Campaign block will display exactly where you place them, despite any Output Settings configured for the campaign. This gives you the flexibility to insert existing campaigns anywhere you’d like.

If you’d like your Inline campaign to use the Output Settings you’ve specified in the WordPress OptinMonster plugin, simply toggle the Use Output Settings option to the on position in the block’s settings.

How to insert an OptinMonster campaign using a Gutenberg block for WordPress

If you’re serious about jumpstarting your website 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

Can I add the same Inline campaign to multiple places on the same post or page?

No, it’s not possible to display the same campaign in multiple different places of the same page/post. Only the first embed code present on the page will load the campaign and any additional instances of the embed code will not display the campaign.

To show the same campaign in multiple places on the same page/post you’ll need to duplicate the campaign in your account and add the embed code for the duplicated campaign where you want the campaign to show a second time. Repeat as necessary.

Can I manually type my shortcode out?

Yes! If you do not want to navigate to the Output Settings screen each time you need a shortcode, you can type it out in this format:

[optin-monster slug="CAMPAIGN_ID"]

Replace “CAMPAIGN_ID” with the unique slug for your campaign. You can find this unique campaign ID following the Shortcode instructions above, or in OptinMonster’s Campaign Dashboard.

My Inline campaign is showing on a page where the shortcode is placed, but should not show according to my Display Rules.

By default, using the shortcode will force the campaign to show despite its Display Rule settings. If you want the campaign to follow the rules you set in the Display Rules, you can add the parameter followrules=true like this:

[optin-monster slug="CAMPAIGN_ID" followrules=true]