How To Install Facebook Tracking Pixel In WordPress?

694 0
Facebook Tracking Pixel

We all know how powerful Facebook Ads are for marketers, perhaps Facebook tracking pixel is the most useful for remarketing. In this article, I would show you the step-wise-step guide to up and run with Facebook tracking pixel. But before we start let’s have a look at some of the key benefits of Facebook tracking pixels:

Benefits of Facebook tracking pixel

Remarketing: Facebook tracking pixel is an ideal option for remarketing since it allows you to target those people who have visited your website and interested in certain product or service.

Conversion Tracking: You can track your ads and identify how successful your ad was.

Find New Lookalike Audience: It will help you find more people with similar interest.

Step-by-step Guide To Install Facebook Tracking Pixel in WordPress.

Step 1: Generating Facebook Tracking Pixel

Log in to your Facebook and navigate to the Facebook Ads Manager.

Now navigate to Ads Manager menu at the top left bar and click Pixels under Assets.

Generate Facebook Tracking Pixels


Now creating a pixel is just a 3 step procedure; Creating the pixel, Installing the code, and Choosing the action (Add Events).

Creating Pixel: Click “Create a pixel” button and give a name to your pixel, agree to the Facebook pixels term and click “Create Pixel” button. You will see a success message with a unique pixel ID.

Generate Facebook Tracking Pixels Step-II


Once you are done creating Facebook pixels, you have two choices; Install Pixels and Email Pixel Code. You can choose any one of these to get the pixel code.

Generate Facebook Tracking Pixels Step-III


Installing the Code: Now click “Install Pixels Now”. Now you are directed to a new window “View pixel base code”. Now copy the Install pixel base code and copy it to the WordPress.

Generate Facebook Tracking Pixels Step-IV


Choosing Actions (Add Events): Here you have different event codes that you can add to your pages where conversion occurs on your website.


Learn about using the Facebook pixel and conversion events.

Step 2: Installing “Insert Header and Footer” Plugin

To install Facebook tracking pixels, now you need to install a WordPress plugin that can contain code for Facebook tracking pixels.


For that, we need to install “Insert Header and Footer” plugin. To install “Insert Header and Footer plugin”, navigate to add new plugin under plugin section.

Plugin > Add New

Now search for “Insert Header and footer” plugin in the search bar and press “Install Now” button to install the plugin.

Install Header and Footer Plugin


Once installed, activate the plugin.

After installing and activating the “Insert Header and Footer” plugin, navigate to the Header and Footer plugin where we need to copy the Facebook tracking pixel code.

Navigate to Settings > Insert Header and Footer

Now copy the Facebook tracking pixel that you created earlier and paste it under header section.

Insert Header and Footer Plugin Settings


Now, click on save.

Step 3: Creating Custom Audience Using Facebook Tracking Pixel

Once you are done installing Facebook tracking pixel on your WordPress based website, the next step is to create a custom audience for your retargeting campaigns.

For that, navigate to the Facebook Ads Manager and click on Audiences under Assets section.

Audience Selection


Click on “Create Audience” Button and choose “Custom Audience” under drop-down menu.

Audience Selection Step-II


This will bring up a pop-up window from where you can choose a Customer File, Website Traffic, App Activity, or Engagement on Facebook.

Audience Selection Step-III


In this case, I selected Website Traffic. It will target specific people who visit your website or view specific pages on your website.

When  “create audience” pop-up window appears, choose “website traffic” from the drop-down menu, then give audience name and click “create audience” button.

Create a Custom Audience


Once done, click on the audience name to find more details about the custom audience.


Now click on create lookalike to set audience source, Country, and Audience Size.

Create Lookalike Audience



Click on Create Audience.

That’s it! You are done creating Facebook tracking pixel in WordPress.

Hope you will find this post useful! Do share your views in the comment section below.

In this article

Join the Conversation