Ready to add your Inline Campaign to your website? Our embed codes make it easy. Follow these directions to easily add an Inline Campaign to your website.
- Create and Publish a Campaign
- Add Placeholder
Create and Publish a Campaign
After your campaign is live on your site, you need to specify where on the page it should display.
HTML Placeholder for Any Website
Click the button titled Publish in the top right of your Builder screen.
Account-wide Embed Code
If you chose to use the account-wide embed code option, click Any Website to expand its view. Inline type campaigns will then show the HTML placeholder you’ll need to use to control where on the page of your site your campaign appears.
After copying the placeholder, paste it into your site where you want the campaign to appear.
Campaign Specific Embed Code
If you chose to use campaign specific embed codes, click Campaign Embed to expand its view. Use the full embed code and paste it into your site where you want the campaign to appear.
Next, you need to enable your Inline campaign to display on your site in the WordPress plugin. Log in to your WordPress site, navigate to OptinMonster > Campaigns tab > Edit Output Settings for the campaign you wish to enable.
In the Output Settings screen, you only need to enable the first option to display the campaign via shortcode. If you want to automatically load the campaign on any other posts/pages you can further configure its appearance.
There is now an OptinMonster shortcode, [optin-monster-shortcode], that requires one parameter: id. It looks like this:
Where “CAMPAIGN_ID” is the unique slug for your campaign. You can find this in the WordPress Admin > OptinMonster > Campaigns tab:
Place the shortcode on your pages and posts where you want the campaign to appear.
[optin-monster-shortcode id="CAMPAIGN_ID" followrules=true]
Ready to impress your subscribers? See our article on types of blog posts that are proven to work to encourage new subscribers and maintain your email list.
Q: Can I manually add my campaign to the same page/post in multiple places?
A: 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.