One of my clients requested the ability to insert Facebook Conversion Pixel code into her company’s webpages. If you’re not familiar, conversion tracking helps businesses measure the return on investment of their Facebook Ads by reporting on the actions people take after their ads are served. So if you’re running an ad on Facebook and someone clicks on it, you have some analytics on what page they were sent to, whether they proceeded on to your product/checkout page, whether they purchased anything, and so on.

I did some searching and found a plugin called “Facebook Pixel Conversions for WordPress” that allows the user to paste in their Facebook Conversion Pixel code and have it inserted for tracking purposes every time that webpage is loaded. It was missing a few features that I wanted my client to have, however, so I built a new version of the plugin with these enhancements added:

  • Supports inserting Facebook Conversion Pixel codes into Posts, Pages, and all other custom post types that you may have on your site
  • Provides a plugin options page where you can choose to enable the plugin for certain post types, and disable it for others. For instance, you could choose to have the Facebook Conversion Pixel box appear when editing any of your Posts, but never appear when you’re editing Pages, or vice versa.

My new Facebook Conversion Pixel plugin is publicly available starting today on the WordPress Plugin Directory.

3 comments

  1. Jeffrey Frankel April 25, 2015 at 6:56 am

    Reply

    Hello Kellen

    I think your Facebook Conversion Pixel Plugin is great, however I cant seem to get it to work. I have installed the plugin, I have checked pages, and edd_payment , I have checked the meta box on two pages (www.SolutionsInChemistry.com/Paper-2-questions and http://www.SolutionsInChemistry.com/Checkout, and pasted the code in, yet Facebook still says “Your advert will not be optimised for conversions because your conversion-tracking pixel isn’t working correctly.”

    Please help

    Jeffrey

  2. Jeffre Frankel April 25, 2015 at 2:23 pm

    Reply

    Hello Kellen

    You can relax, it now works I think.

    I have no idea why. I tried the Chrome PIxel Helper and at first it also said no. Then I went back to my website and updated again – without changing the code. Then the CPH said I have a pixel! I checked both of my pages and it eventually agreed after going back and forwards from edit page to view page that I have a pixel on two pages. I then went to my Facebook advert manager and it said no. So I think this is a Facebook issue. I have sent them a message through their “Report a problem”. I don’t know if they will send me a reply, they don’t seem to be as easy to contact as Google.
    I’ll let you know what they say if they reply.

    Jeffrey

    • Kellen Mace April 25, 2015 at 9:31 pm

      Reply

      Jeffrey,

      Do you have any caching plugins running on your site? that could be one possible cause. Otherwise, maybe an error occurred in Chrome Pixel Helper, or on Facebook servers. I’m glad you got it working now!

Leave a reply

Your email address will not be published. Required fields are marked *