Post Image

How To Add Facebook Pixel To Wordpress

Struggling with how to add Facebook Pixel to WordPress? If you’re running any type of Facebook ads, using Facebook Pixel is essential to help you optimize your ad campaigns.

In short, Facebook Pixel is like Google Analytics for Facebook ads! It lets you better target your ads and see how effective they are at turning clicks into sales.

But if you’re not super tech-savvy, it can be a little difficult to actually figure out how to get Facebook Pixel up and running with WordPress, right?

If you’re planning to use custom audiences and conversion goals, I recommend that you use the plugin method. But if you just want to use Facebook Pixel to create Lookalike audiences and other more basic features, the manual code implementation is the simplest solution for your needs.

How to add Facebook Pixel to WordPress manually

To manually add Facebook Pixel to WordPress, you have to complete two steps:

  • Create a new Facebook Pixel at the Facebook website (if you haven’t already)
  • Insert the tracking code from that Facebook pixel into the <head> section of your WordPress site

It’s nothing too complicated – I promise! Let’s get started…

Step 1: Create new Facebook Pixel via Facebook Ads Manager

To get started, go to the Pixels tab in Facebook Ads Manager. You can go straight there by clicking this link.

If you haven’t already created a Pixel (you can only create one Pixel per account), you can click the green button to Create a Pixel:

create a new facebook pixel

A box should appear that asks for a name – then all you need to do is click Create.

After that, you should see some options for how to add Facebook pixel to your website. Choose the Manually Install the Code Yourself option:

get facebook pixel tracking code

That should display the Facebook Pixel tracking code:

the facebook pixel tracking code

Keep this code handy because you’re going to need it in the next step.

Step 2: Add Facebook Pixel tracking code to WordPress <head> section

While there are a number of different ways that you can add code snippets like this to WordPress,

And that’s it! You just learned how to add Facebook Pixel to WordPress.

I’ll show you how to test if your new Facebook Pixel is working at the end of this article. But first, let me cover the plugin method, quickly.

Make sure Facebook Pixel is actually working!

To do that, you install the Facebook Pixel Helper Chrome extension.

Once you have the Chrome extension activated, visit the site where you installed Facebook Pixel.

If your Pixel is working, you should see something like this when you click on the extension:

how to test facebook pixel

And there you go! That’s all you need to do to add Facebook Pixel to WordPress. Enjoy your remarketing, conversion tracking, and custom audiences!