Placing the Facebook Pixel on Your WordPress Website

I have a terrible confession to make. When I was going through the process for this blog post, I realized that I, myself, have not placed my Facebook pixel on my website. Shame on me. Doing this is vitally important if you ever want to use ads for your business, because that Facebook pixel is working in the background to track website visitors. And do you know who is most likely to read your content, opt in for your free offers, and become your paying customer? People who already know who you are, i.e. people who have been on your website. You can use this valuable information to create custom audiences of your top website viewers, people who have viewed specific pages, and lookalike audiences of people who have similar characteristics to your site visitors.

Placing the Facebook Pixel

You can (and should) place your Facebook pixel in your website and any funnels or landing pages that you create. This tutorial will show you how to place it in a WordPress site using a plugin, but it is not difficult to paste the pixel code into funnel programs like ClickFunnels or LeadPages. Some programs, like Kajabi, have a Facebook tracking integration which will put your pixel on every page you build with them.

Start with going to your Ads Manager. You can find it by clicking on the little down arrow at the top-right of the Facebook interface, then clicking on either Create Ads or Manage Ads.

Next, you’ll select the hamburger menu at the top left, click on All Tools, and find Pixels.

This will take you to where you will be able to see your pixel data, or how many page hits you’ve been getting. In my case, sadly, there is nothing. Click to set up the pixel.

Now scroll to where it says “Copy the entire pixel code and paste it in the website header”. When you put your mouse over that code it will turn blue, then just click to copy it.

Now go to your WordPress site. Click on Plugins > Add New and search for “Insert Headers and Footers”. Then click to Install and Activate it.

Click on Settings in your left sidebar, and you’ll see an option for the Insert Headers and Footers plugin.

The first box will be for code to paste into the header section of your site, and this is where you will paste the Facebook pixel code.

Save that before you exit, and you are done!

Well, that is all you need to do in order to start tracking your visitors. If you install the Facebook pixel it is also a good idea to make sure you have a plugin that notifies visitors that your site uses cookies, like the GDPR Cookie Consent plugin.

Even if you aren’t ready to start running ads right now, putting a pixel on your site will start collecting data which will make running ads in the future much easier.

Comment below with questions, and let me know if I missed anything!


  1. […] Installing the Facebook Pixel […]

  2. Audra Coats Hudson on May 2, 2019 at 9:14 pm

    I was stressing about how to do this and you made it so incredibly easy! Thank you so much <3

  3. Priya Sharma on August 23, 2019 at 7:20 am

    Perfect and step to step to guide to get started and I am loving it. Thank you for this wonderful guide.

  4. […] need to have the Facebook Pixel installed in your site in order for this to work. See my post on How to Install the FB Pixel in a WordPress Website if you need […]

Leave a Comment