How To Install the Facebook Pixel In WordPress and WooCommerce

May 9, 2017
Posted in Paid Social
May 9, 2017 Ryan Sigler

How To Install the Facebook Pixel In WordPress and WooCommerce

Adding the Facebook pixel to your WordPress or WooCommerce site is one of the most important first steps to make when you’re ready to start advertising on Facebook. The pixel is a snippet of code that tracks visitors on your site and the actions they take.

The three primary advertising features you unlock when you add the Facebook Pixel are:

  • Conversion Tracking – See how your ad is performing by seeing what actions website visitors took as a direct result of your ads
  • Optimization – Automatically optimize your ads toward people more likely to convert on your site
  • Remarketing – Serve highly targeted ads to people on Facebook after they leave your site without converting and get them to come back

Fortunately, WordPress Plugins make adding the Facebook Pixel to your site so easy that you’ll be able to do it yourself in under 5 minutes even if you have no technical experience. 

Follow these 7 easy steps:

1. Log in to your WordPress Dashboard and go to Plugins > Add New

Add Facebook WordPress Plugin

a. We recommend the Facebook Pixel by PixelYourSite plugin, but if you have any questions about compatibility we always recommend double checking with your developer before installing.

2. Using the search bar on the top right hand side of the page, search for PixelYourSite and install the plugin. It should look like this:

wordpress-facebook-pixel-plugin

3. After the plugin installs, click the blue button to Activate

4. Click the PixelYourSite link in the left hand navigation of your WordPress dashboard to go to the plugin settings.

5. Copy and paste your Facebook Pixel ID into the box as shown below:

Add Facebook Pixel ID to WordPress

6. TIP: Check these boxes to avoid having your pixel track internal staff and developers. This way, you won’t skew your data or waste money retargeting yourself.

pixel exclusions

7. Scroll down and check Activate Plugin General Settings, then click the Save Settings button.

 

Don’t know your Facebook Pixel ID? No problem, follow the steps below to find it:

  1. Log in to Facebook with the login that has access to your Facebook ad account
  2. Go to https://www.facebook.com/ads/manager/pixel/facebook_pixel/
  3. Ensure that the account shown in the top left is the correct account

Facebook Pixel Location

4. Locate your Pixel ID on the right hand side of the page

Facebook Pixel ID

5. Copy the Pixel ID and paste it into the PixelYourSite plugin settings.

 

Running a WooCommerce Site? 

Great, this plugin works well for setting up the dynamic events needed for advanced ecommerce advertising on Facebook. Just set up these additional settings:

1. Navigate to the WooCommerce tab in the PixelYourSite settings and check the box for Enable Facebook Dynamic Product Ads

WooCommerce Facebook Pixel Setup

2. Leave all other settings on the page as is and check the Activate WooCommerce Pixel Setttings box at the bottom of the page, then click the blue Save Settings button.

 

BONUS: You can verify that your pixel is installed correctly and passing the correct data by using the handy Facebook Pixel Helper plugin. Download it here (Chrome only) and for any help using the plugin, Facebook’s documentation can be found here.