WordPress Facebook Pixel Implementation Guide

Learn in this complete implementation guide on how to link Facebook pixel and retargeting ads to your WordPress website easily

WordPress Facebook Pixel Implementation Guide

Struggling to learn how to add the Facebook Pixel? Want to install the Facebook Remarketing/Retargeting Pixel on WordPress? This article will show you a Facebook pixel implementation guide in WordPress.

In short, Facebook Pixel is like Google Analytics for Facebook ads! It lets you better target your ads and sees how effectively they turn clicks into sales.

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

To help you out, I’m going to give you a beginner-friendly tutorial for two different methods:

  • With manual code – this is a lightweight option that helps you add the Facebook Pixel code and nothing else.
  • With a plugin- this method’s advantage is that you can create custom audiences and conversion goals inside your WordPress dashboard. This plugin is great for eCommerce stores because it has dedicated WooCommerce and Easy Digital Downloads integrations.

If you’re planning to use custom audiences and conversion goals, I recommend using the plugin. But if you 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.

Facebook Pixel to WordPress – Manually

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

  • Create a new Facebook Pixel on 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…

Pixel Creation

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: 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 the 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 will need it in the next step.

Tracking Code

Adding Pixel To WordPress
Adding Pixel To WordPress

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:

Insert Headers and Footers

Here’s how to do it:

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

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.

Adding Facebook Pixel to WordPress with PixelYourSite

A Freemium plugin that makes it easy to implement Facebook Pixel and other platforms is PixelYourSite.

The advantage of using PixelYourSite over the methods above is that you can easily track conversions, including dedicated integrations for WooCommerce and Easy Digital Downloads. It also generally simplifies the setup of Facebook Pixel and other advanced aspects of Custom Audiences.

This feature is especially useful if you run an eCommerce store with WordPress. But even if you run a regular website, Custom Audiences can be useful for more advanced Facebook advertisers.

How to Set up PixelYourSite

To use the PixelYourSite plugin, you have to install and activate it like any other plugin. Then:

  • Go to the new PixelYourSite area in the WordPress dashboard sidebar.
  • Click the Click to Settings button next to Your Facebook Pixel.

The most important setting here is to enter the Facebook Pixel ID, obtained from the Facebook Event Manager interface.

Also, you can configure the other settings according to your preferences. If you enable specific settings, you may need to add additional information (like the conversion API token). Still, the plugin does an excellent job of explaining all this information.

After adding your Facebook pixel ID and making other selections, save your settings. So all basic setup is now complete.

Conclusion on Facebook Pixel Implementation Guide

So, after reading this guide on how to add Facebook Pixel to WordPress, you need to do one more thing: Make sure it’s really 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:

So there you go! That’s all you need to do to add Facebook Pixel to WordPress. Enjoy your remarketing, conversion tracking, and custom audiences!
Is there anything else that you’d like us to explain when it comes to advertising your WordPress site on Facebook? Let us know in the comments!