Here is a detailed Facebook Pixel integration guide.
But before we jump in, check the following prerequisites.
Once you activate the Facebook for WordPress plugin, you’ll see the notification below on your dashboard.
Click on follow the setup steps. If that notification is missing, then follow the step below.
While still on the dashboard, go to settings and find Facebook.
Next, click on get started.
You must have a facebook business page up and running.
Continue with your FB account (that has your business page)
Below the (WordPress App will be connected to) select Facebook Pixel then name your pixel. If you already have an existing Facebook pixel – select it.
Next, add your Ad account (if none exist). If you already have an Ad account (s) pick it.
Finally, set up your Business Manager (if none exist).
Note: We’ll need all the three options, so, create all.
Now you have all the three accounts set. Do not skip any because we’ll need them later. Toggle the automatic advanced matching button on the confirm settings window.
Then select Facebook pixel as what WordPress will connect to. Leave everything untouched (on screenshot 13) and click next.
That’s it. Your website is now linked. However, tracking is yet to start. We need to finish with pixel setup. Hit done and wait . . .
How to add Facebook pixel code to WordPress
You’ll be re-directed back to your WordPress dashboard.
Check I agree to share my token with this site then confirm. You should see a confirmation as on the screenshot below.
Next, click on manage to continue with pixel setup on Facebook. You’ll be re-directed to your Business Manager dashboard as on the screenshot below.
Locate pixel – the last item on the last column (right-side) and click on view.
Ensure your pixel account in the data sources is the same as the one created earlier.
Let’s continue with pixel setup by clicking on the continue pixel setup button. Select Facebook Pixel on the next window then hit connect.
We have two options for installing pixel code. Manually add pixel code to website and use a partner integration.
The partner integration option (using a plugin) is where we started. We need to get the code for our website then add it to the header.
Click on install code manually.
Now go to your insert header and footer plugin (dashboard – settings) then paste the code in the header area (the Scripts in Header) and don’t forget to save.
If someone is helping you install pixel. Instead of clicking copy code, click on email instructions, just below the Need help with installing base code video.
On the next screen, enter the email of whoever is working on your site in the to-space then send.
An alternative way is just clicking on the copy code, paste it on a word document the send the document to the developer.
Once you’ve copied the code, click on continue.
Leave everything as it is on the next window, unless you’d want to tweak a few things (not recommended). Hit continue.
We’ve no business with the event code thing at this moment – so leave it and click on go to pixel overview.
At this time, we’re done setting up our pixel and it’s ready to start tracking. The next thing we want to do is to set our retargeting. We shall do that by creating custom audience.
But before we get there, we need to take care of something on our Business Manager dashboard.
How to create Custom Audience in Facebook
Now, click on create, then on Create Custom Audience.
Remember the ad account we created earlier? We need it now for us to create custom audience. That’s why you’ll see the pop-up below.
Click on Business Settings on that pop-up window.
An alternative would be – instead of trying to create custom audience before connecting our ad account – we’d first assign our pixel to an ad account.
Clicking on that settings icon (circled above) will take us to the Business manager dashboard. Either way – both options work the same.
The first option will lead straight to the screenshot below. (I recommend you use the first – click on business settings on the pop-up window). However, if you opt for the second, then you’d want to located pixel – below data source under business settings menu (left-side).
Now, select the pixel we created earlier then click on connected assets on the right side or add assets.
Select your ad account as the asset and click on add.
Once the asset is added successfully, click done.
We’ll have to wait for around 20 minutes before we can create a custom audience. However, you should try immediately after adding the asset to see whether or not the pixel has been assigned to the ad account.
Go to create then create custom audience.
If you still see the screenshot below, wait for at least 20 minutes before you try again.
If our pixel is successfully assigned – you should see the screenshot below. Select an ad account – probably the one assigned to the pixel then hit next.
This is where you determine the kind of audince you want to target. Click on the dropdowns at different setting stages to see what they have and choose accordingly.
For my case, I have picked people who meet any of the creteria below, that is, all website visitors (under events). (If you need more options to fine-tune your audince click on include more people).
Then for time spent I have 25% (on my next source). Once done customizing the audience, add the audience name and the description (optional) then create an audience.
That should be all about defining your target audience. However, you could go further by creating lookalike audience to target even more people. See below.
If all you wanted was creating custom audience, then click on done. Else, proceed with create a lookalike audience.
Creating Lookalike Audience
The steps are similar to those for custom audience with a small difference.
Start by selecting your audience size. The smaller the number the most similar to your custom audience – and the larger the number the broader the audience.
Once you’re happy with your audience size, move to create new source above the audience size option.
You can either select custom audience or custom audience with customer value.
I will go with custom audience. Next, choose a custom audience source – this is a source that you believe most of these audience are likely to come from depending with your previous insights or content or whatever.
Pick one then hit next. Now, using the similar steps we used while creating custom audience, customize the create a website custom audience as you like.
As you can see on the first screenshot above, I’m targeting people who visit specific web pages. Also, I’ve added some keywords as part of the filter.
Once done with your customization, add audience name and create audience.
That’s it. ????