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? Here is a step by step guide on how to do so!

How to add Facebook Pixel to WordPress

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 section of your WordPress site

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

Create new Facebook Pixel via Facebook Ads Manager

To get started, navigate to the Pixels tab in Facebook Ads Manager.

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:



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:


That should display the Facebook Pixel tracking code:


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

Add Facebook Pixel tracking code to WordPress section

While there are a number of different ways that you can add code snippets like this to WordPress, I think the simplest method is a free plugin called Insert Headers and Footers.

Here’s how to do it:

  • Install and activate the free Insert Headers and Footers plugin
  • Navigate to Settings → Insert Headers and Footers
  • Paste the Facebook Pixel tracking code into the Scripts in Header box
  • Save your changes

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

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Reclaim Hosting Support Hours
8:00 am - 5:00 pm ET, Monday through Friday
Submit a Ticket
Get a quick and helpful response from the pros.
Need Extra Support?
No problem, we're here to help! Talk to us about Professional Services or custom Service Level Agreements.