How To Add Facebook Tracking Pixels To Your WordPress Site - Cool Tool

Facebook tracking pixels are a must if you sell either a product or service online. Once you set them up you can optimise your ads to be shown to people who take a specific action on your website. For example did they add something to a shopping basket? Did they sign up for your newsletter?

They are however quite hard to set up as you need to add the tracking code to a specific page on your website. If you are using WordPress and self hosting your website this weeks cool tool ‘Facebook Pixel Conversions for WordPress’ makes it easy to add this code.

What is a tracking pixel?

There are two types of Facebook tracking pixel:

Facebook website audience pixel

This is an easy pixel to install, you just add the code to the <head></head> section of your website and Facebook will start tracking the people who visit your website so that you can target an advert at them. You can add this to WordPress by editing the ‘header’ file. You do not require the plugin for this sort of pixel.

Facebook conversion tracking pixel

Here’s a video I made earlier in the year showing you how to create a tracking pixel

This is the most valuable pixel. This is the one that will drive conversions via ads to your site. Sadly it’s slightly harder to install, the code needs to be added to an individual post or page of your site and there is only one ‘header’ file.

How to install Facebook Conversion Tracking Pixels to WordPress

What page should you install your Facebook tracking pixel to?

When you set up a Facebook ad using your Tracking pixel it will be optimised to be shown to people who have in the past taken a specific action when following a pixel.

You can set up a pixel for the following goals:

  • Checkouts
  • Registrations
  • Leads
  • Key Page Views
  • Adds To Cart
  • Other Website Conversions

If you want to measure the success of your pixel accurately you will need to install the pixel on the correct page. For example if your goal is ‘Leads’ and you want people to fill out a specific form on your page you should install the pixel to the ‘Thank you’ page that people reach after completing the form.

Your Turn

Have you used Facebook tracking pixels? Have you seen success? Leave me a comment and let me know.

If you enjoyed this blog post why not subscribe to my newsletter or my blog posts via email. Click here for more info.

Join the free community for Small Business Bloggers On Facebook, meet other bloggers, share and learn.


  • Looks good Amanda, handy to know. It’s always good to know that your efforts are rewarded, especially if paying money for advertising too.

  • What I really like is that if you add a pixel Facebook identifies exactly the people who will click it and convert. Scary sometimes to discover how much Facebook knows about us.

  • massimo

    Amanda do you know if i can add this code to an instapage ?Is just to insert the code in the header?
    (i made a landing with it and i would like to use it with fb ad)

  • Sorry I’m not familiar with Instapage. However if you paste it into the header and it only appears on the header of that one page it should work.

  • Hey Massimo!

    You easily can! Here is a quick guide for you:

    We are releasing direct page / Facebook page integration very soon! I will keep you posted. Please email me directly if you need any help getting set up 🙂


  • Hey Amanda!!

    Fantastic post! I handle busdev stuffs over at and I would love to extend a free unlimited account to you if you would care to test our and/or review the tool.

    We have totally free direct integration/injection with WordPress so Im 100% certain you will benefit from our builder!

    Looking forward to talking soon and for your next post!!!

  • I am researching landing page tools. Can’t promise that I will review it but will happily take a look. You can drop me an email at the address above and I’ll give it a shot.

  • Steve

    Hey Amanda, noticed you have “Facebook Conversion Pixel” plugin as well. Do you use it to install conversion pixel only or can you use it to install tracking pixel instead of using both plugins?

  • Guest

    I don’t have both, it just came up when I did the search.

  • I don’t have both installed, it just came up in the search results.

  • I have a wordpress blog on website, Shall I Apply same process to implement this….

  • Hey Amanda, thanks for the post!

    I’d like to suggest also our new plugin Tracking Code manager that give you a complete solution for all your tracking codes: Google Analytics, Facebook Custom Audiences, Facebook conversion pixel, also with the new Twitter tailored audiences.

    Next week we’ll release also an integration to track conversion in WooCommerce, Easy digital downloads and WP Ecommerce dynamic thank you pages.

    Hope this help!

    Here the link:

  • Hi you can add it to instapage just export the page code and it will be in html and add this code in section, thats it 🙂

  • jamiehayes

    Amanda, This is a great video but you don’t show how to add it to the home page.

  • Adding to the home page is the same as any page on your site although I’d question the wisdom of adding a tracking pixel to your home page?

  • Stefan Jelev

    Hi Amanda,

    Isn’t it easier just to copy/paste the code somewhere between … inside header.php, instead of installing a plugin and adding the code manually to each page?


  • That works for the website audience pixel but not the conversions one. On WordPress it’s difficult for a non techy to add code to a specific page and not others, that’s what I show you above.

  • Alice

    Great article.
    By the way I use this WordPress plugin for my Facebook conversion pixel
    No need to edit the code. No coding experience required!