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.