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 →
Facebook Pixel Base Code
Before you can implement the Facebook Pixel with your OptinMonster campaigns you’ll need to add the Base Code to the website where your campaign(s) will appear.
Facebook recommends that you add the Base Code for the Facebook Pixel to all pages of your site in their Facebook Pixel documentation.
The Standard Event code is what will be added to your OptinMonster campaign in the next steps.
There are several different approaches you can choose to add the Facebook Pixel to your OptinMonster Campaign. We’ll walk through each option step-by-step.
If you do not have a Growth subscription or would like to trigger the Facebook Pixel on a different event than conversion, you can use our Javascript Events API.
Follow these steps to add the Facebook Pixel using an HTML Block.
First, you will need to determine which event your Facebook Pixel should be fire on. All OptinMonster events are outlined in our Javascript Events API doc.
Next, add an HTML Block to your campaign.
Add your Facebook Pixel code to the HTML Block.
When you’re finished, click Save.
HTML Block Examples
The following are some examples you can use to get started triggering your Facebook Pixel on different OptinMonster Javascript Events.
How can I trigger a different Facebook Pixel event?
You may need to customize the specific Standard Event to fit your needs, please refer to this list of Facebook Pixel Standard Events for what’s available.
Do I have to add the code to an HTML Block in the campaign builder?
No, you can use the Success Script option if you have a Growth subscription or you can add the Javascript directly to your website where the campaign will appear to visitors.
Fantastic! You’ve been so helpful to let us know how
we are doing – would you give us a 5-star rating on G2Crowd?
It takes 90 seconds or less, and we love to know when we’ve done a good job. Thanks in advance!