The new Facebook pixel was introduced in mid-2015 as a way to combine the features that two different pixels used to offer. The new pixel is an even more powerful tool for online marketers to use in your Facebook marketing plan.
According to Facebook, the Facebook pixel can be used for three main functions:
- Building Custom Audiences from your website for remarketing
- Optimizing ads for conversions
- Tracking conversions and attributing them back to your ads
You can now use the Facebook pixel to measure, optimize and build audiences for your ad campaigns, and no longer need to implement the conversion pixel and Custom Audience pixel.
Table of Contents
The Facebook Pixel Base Code
The standard Facebook pixel is called the base code. The base code is all you need to get started with Facebook marketing. It will allow you to create custom audiences based on your website traffic, and report data back to Facebook so you can see how your ad is performing. Additionally, you can create custom events & conversions. These can track specific events or products on your site. Custom events provide a much deeper level of tracking, so for this tutorial, I’ll focus solely on installing the Facebook pixel base code.
I’ll walk you through the steps needed to install a Facebook pixel on your website using 3 different techniques, including WordPress & Google Tag Manager. Choose the one that works best for your setup. Watch the video tutorial »
1. Install Facebook Pixel
Before you can install the Facebook pixel on your website, you need to create the pixel in Facebook Business Manager. You can only create one pixel per ad account, so choose a name that accurately represents your ad account (or just your business in general).
RELATED: Facebook Business Manager Setup Guide »
Create Facebook Pixel in Business Manager
- From the home screen, click on Ads Manager
- Choose the appropriate Ad Account from the dropdown at the top
- Click on Tools > Pixels
- Click Create a Pixel
- Confirm your pixel’s name
- Agree to the terms
- Click Create Pixel
If you’re ready to install your Facebook pixel, click Install Pixel Now. Otherwise, you can email it to a web developer to install for you.
2. Add Facebook Pixel to Website (3 ways)
You can install a Facebook pixel on any website, but I’ll be focusing mainly on WordPress, as that is my platform of choice.
Install Facebook Pixel with Google Tag Manager
This is my preferred method. It assumes you already have a Google Tag Manager (GTM) account. If you don’t, and you plan to do any marketing, analytics or tracking on your website, I highly recommend you setup an account.
SEE: How to install Google Tag Manager on WordPress »
- Copy your Facebook pixel base code from the Business Manager area
- Login to Google Tag Manager
- Click on the account you want to add your pixel to
- Click Add a new tag
- Name your tag (i.e. Facebook Pixel – Base Code)
- Click on Custom HTML Tag under “Choose Product”
- Under Configure Tag, paste your Facebook pixel code
- Click Continue
- Under Fire On, choose All Pages
- Click Create Tag
- Make sure you Publish your tag changes when you’re ready to make it live
Install Facebook Pixel using WordPress Plugin
If you don’t use GTM, or you’re not a marketer, and just need a simple way to install the Facebook pixel on your site, I recommend this option.
- Copy your Facebook pixel base code from the Business Manager area
- In WordPress, go to Plugins > Add New
- Search for Insert Headers and Footers
- Install & activate the plugin
- Navigate to Settings > Install Headers and Footers
- Paste the Facebook pixel into the Scripts in Header area
- Click the Save button
Install Facebook Pixel in WordPress Theme
If you’re a WordPress theme developer and/or know your way around code, this is another option. Keep in mind, make sure you copy over your code if you should decide to change themes. You’ll likely want to continue using your Facebook pixel even with a new theme design.
- Copy your Facebook pixel base code from the Business Manager area
- Open up your theme’s
header.php
file - Locate the closing
</head>
tag - Paste the Facebook pixel code just before the closing
</head>
tag - Save the file
- Use an FTP program to upload the file
3. Check That You’ve Installed the Facebook Pixel Correctly
After you’ve installed the Facebook pixel, you want to make sure that it’s setup correctly. Facebook has created a tool to help us test our pixel. It’s a Google Chrome extension called the FB Pixel Helper.
Using Google Chrome, click this link to add the FB Pixel Helper extension to Chrome.
- Navigate to your website (any page is fine, because the pixel should be installed on all pages)
- Click this icon
in the top-right corner of your browser bar
- It should say 1 pixel found on yourwebsite.com
- This confirms that your Facebook pixel is installed correctly
After a few days, you should also log back into your Facebook Business Manager to make sure data is being collected.
- Login at business.facebook.com
- Click on your Ad Account
- Go to Tools > Pixels
- You should see a graph of your pixel traffic. This should be similar (not exact) to the amount of visitors you are receiving. Cross-reference it with your website analytics tool.
Install Facebook Pixel Video Tutorial
This video will show you how to create the Facebook pixel in Facebook Business Manager, as well as 3 different ways to install it onto your website.
- In your WordPress theme – start at 2:47
- Using a WordPress plugin – start at 3:34
- Using Google Tag Manager – start at 4:43
- Verify it was installed correctly – start at 6:01
I hope this helps you install a Facebook pixel on your website. If you have any other installation methods, I’d love to hear them. And as always, let me know if you have any questions in the comments.
We Recommend
https://kinsta.com › wordpress-hosting
Fast and secure infrastructure, worldwide CDN, edge caching, 35 data centers, and enterprise-level features included in all plans. Free site migrations.
https://gravityforms.com › features
Create custom web forms to capture leads, collect payments, automate your workflows, and build your business online. All without ever leaving WordPress.
Leave a Comment