How to Add the Facebook Pixel to Your Website

midwestfabricsAre you using the Facebook pixel for your website? If you are not already using it, you may not realize its importance as well as its benefits for ad targeting and running dynamic ads.

Utilizing the Facebook Pixel helps you create powerful audiences by tracking and optimizing conversions. If you have not already added the pixel, maybe the reason is that you are intimidated, thinking that the process is far too technical or overly complicated for you.

Believe it or not, this process is actually much more simple than you may realize. With that in mind, we are going to look at a few different yet simple methods for installing the pixel on your website.

Locating Your Facebook Pixel

Before you learn how to install the Facebook pixel, you will need to know how to locate it. To do this, you will need to open up your Facebook account and then go to “Business Manager” to get to the “Pixels” page. From here, you will want to scroll down to the bottom of your page and click on the green “Create a Pixel” button. Once you have done this, you will see two options for installing your pixel code: “Use an Integration or Tag Manager” and “Copy and Paste the Code”. You will want to click on “Copy and Paste the Code”. Here you will see your pixel code. It will appear as a code that shows up twice as a series of numbers in blue. Copy this code.

Now that we know how to locate the Facebook pixel code, we can move on to some different methods for installing it….

Installing the Facebook Pixel in WordPress

The first approach we will want to look at is installing the Facebook Pixel in WordPress. There are many different approaches to doing this so we will try to keep it simple.

The first thing you will want to do is to go to your theme settings to find a place to insert the code. It will be important to find somewhere before the closing HEAD tag in your website’s template. This will ensure that your Facebook pixel will show up wherever someone might navigate on your site. In the WordPress theme settings in particular, find the “Header and Footer Scripts” at the bottom of the page. Paste the pixel code before the Header Scripts box and save.

Plugins for WordPress

Once you have figured out how to insert the Facebook pixel into your WordPress site, you will want to utilize it to its fullest potential for optimizing your conversions. The following are a few plugins that will help you with this.

  • Pixel Caffeine: This plugin is incredibly simple to use. Go to “General Setting” and click “Facebook Connect”. Once you have connected to Facebook, a list of Facebook ad accounts and pixel IDs will come up. Select the one you wish to utilize. You will also want to ensure that the pixel position setting is “Head”. After doing this, you are all set to use this pixel.
  • PixelYourSite Pro: Setting up this pixel is also fairly easy. Simply add your Facebook pixel ID. Once this has been pasted in, your pixel will appear wherever someone navigates on your website.
  • Tracking Code Manager: With this free plugin, simply go to the “Add New Script” and paste your Facebook pixel code. After doing this, select “Position before the closing HEAD tag”, “Show on all devices”, “Standard code tracking in your WordPress” and “In the whole website”.

Installing the Facebook Pixel in Google Tag Manager

Utilizing Google Tag Manager is a popular approach for many advertisers when it comes to installing the Facebook pixel on their website. To do this, you will want to find the “Add New Tag” button and click on it. From here, click on “Tag Configuration” and then “Custom HTML”. Here you will want to paste your Facebook pixel code. After doing this, go to your Advanced Settings and then “Tag firing options” where you will choose “Once per page”. After this, scroll down to “Triggering” and choose “All pages”. Save these changes and you are good to go.

Installing the Facebook Pixel in Shopify

Many businesses like to use Shopify for their online stores. Adding the Facebook pixel in your online store is extremely beneficial for tracking conversions and the process of adding the pixel into your Shopify store is incredibly simple. First go to your Shopify dashboard and click on “Settings”. From here, go to “Online Store” and find the box for your pixel ID and paste it there. After you have done this, you are all set to utilize the Facebook pixel for your online store.

These are just a few of the many ways to insert a Facebook pixel in your website. If you encounter a way that we did not address, a simple rule of thumb is to remember that in most cases you will simply insert your code between the HEAD tags on each page.

Take some time to play around with these different approaches and see what works best for you. What you end up going with will really just depend on what your specific needs are and what you plan on using the Facebook pixel for.

We hope this information has been a helpful resource for you. Please contact us if you have any questions about installing the Facebook pixel on your website.