How to Install Facebook Remarketing/Retargeting Pixel in WordPress
/ / How to Install Facebook Remarketing/Retargeting Pixel in WordPress

How to Install Facebook Remarketing/Retargeting Pixel in WordPress

Some of the links in this post are affiliate links. This means if you click on the link and purchase the item, We will receive an affiliate commission at no extra cost to you. All opinions remain our own.

Have you ever been to a website and later you start seeing their adverts on Facebook? If so then you are definitely most likely puzzled how this occurs and what the benefit of it is. The website is utilizing a simple to make use of instrument constructed into Facebook Ads Manager known as Facebook Pixel to carry out a kind of marketing often known as retargeting.

Retargeting, often known as remarketing, means that you can present your adverts to folks that you recognize are already attention-grabbing in your website. Using Facebook Pixel you may retarget your adverts to your website’s earlier guests.

To make use of Facebook Pixel, you’ll want to put in some code on your website. This code tells Facebook that somebody visited this page, permitting Facebook to trace your site visitors which in flip means that you can goal your website’s viewers on Facebook.

In this text, we’ll take a look at the way to set up this code on your WordPress website.

Step 1. Getting the Facebook Pixel Code

Facebook Pixel is half of Facebook’s promoting platform. Everyone with a Facebook account had entry to this platform. To get it to log in to Facebook and choose the Ads Manager. This will both be on the correct underneath Favorites or in the down arrow drop-down menu underneath Manage Ads. In the Facebook Ads Manager choose Tools after which Pixels. Next, click on on the button that claims Create a Pixel. This will provide the code it's good to place into the header of your website.

It will ask you to decide on a title for your Pixel. You can solely have one Pixel per advert account. Facebook recommends that you simply select a title to match your business. Name your Pixel, conform to the phrases, and click on Create Pixel. Your Pixel is now prepared to put in. You have the choice to make use of the code yourself or email it to somebody akin to a developer to implement it for you. Select Install Pixel Now.

view pixel code

Copy the JavaScript code to position it on your website. I like to recommend pasting it into a textual content editor and saving it so that you’ll have it helpful. You may use this code with plugins on particular person pages and posts with plugins akin to Facebook Conversion Pixel. Next click on Set Up Events after which click on Done.

Step 2. Installing the Code Manually

You can set up the code manually or you may add it to a plugin that controls your headers. To set up the code manually go to your WordPress Dashboard and choose Appearance after which Editor. On the correct aspect on the display screen choose Theme Header.


Look for the tag and paste the code simply earlier than it. You would possibly want to add a few strains to make room. Once you’ve pasted your code click on Update File and that’s it. Your code will now run on your website.

Note – in the event you change themes you’ll have to add the code to the brand new theme. An alternate technique can be to make use of a plugin to deal with your headers akin to Header and Footer. Simply place the code into your header scripts and the code will be positioned into your header for you. Now in the event, you change themes you received’t have to fret about including the code in your new header file.

To enhance monitoring, you would possibly desire to make use of the code on particular posts or pages reasonably than your whole website. Facebook has code snippets that you should utilize to trace particular person pages and occasions however they’re not WordPress pleasant. A greater choice can be to position the code on pages and posts utilizing a plugin.

Step 3. Facebook Conversion Pixel Plugin


If you solely need to place the code on particular pages, posts, and customized put-up varieties you should utilize a plugin akin to Facebook Conversion Pixel. With this plugin, you may allow the plugin to work with varied posts, pages, and put up varieties together with WooCommerce and others. For instance, you may allow the Product to put up kind and place the code on your checkout page for straightforward monitoring.


Once you’ve put in it and enabled the put up varieties you need to use it with go to the page or put up with that put up kind. A field will now seem the place you may place the code. Click the button to permit the code to work after which paste the code into the field. When you publish or replace the page the code will run.

The benefit of putting the code on particular posts is you recognize the guests have seen your offer already.

Step 4. Using Facebook Pixel with Multiple Websites

You’re solely given one Pixel per advert account. That’s not a drawback in the event you solely use Pixel for one website, however what if you wish to use it for several websites? You can do one of two issues:

  1. Have a couple of advert account. This would possibly work, however, you’ll deal with some logins, some stats monitoring, and payments may be bothersome. This is very best you probably have a team and also you’ve assigned a totally different team member to every account.
  2. Use the identical Pixel on all of your domains and set guidelines to tell apart between them. This is carried out by creating Custom Audiences.

Custom Audiences

Custom Audiences

To create customized viewers go to Facebook Pixel in the Ads Manager and choose to Create Audience. In the Website Traffic, the dropdown field selects People who visit particular web pages. This will present you with one other field the place you may add URL keywords. Place your area title right here. In the field for Audience Name kind a title for that particular viewers.

This is a good thought even in the event you’re solely utilizing the code on one website. You can monitor for particular provides out of your website after which present a totally different advert based mostly on the offer they noticed on your website.

Conversion Tracking

Although Facebook Pixel tracks website visits reasonably than conversions, there is an approach to monitor conversions throughout several domains. To do that you’ll create a Custom Conversion for every area. Keep in thoughts although, you’re solely allowed 20 customized conversions.

Conversion Tracking

In Facebook, Pixel Manager chooses to Create Conversion. In the following window choose Track Custom Conversions.


Type in the URL and choose the class you need and hit Next.


Give it a title and set the conversion worth if you need after which hit Create. Once you’ve collected sufficient knowledge you may goal your adverts based mostly on the conversions.

Step 5. Analyzing your Stats

Analyzing your Stats

The Pixel means that you can view website site visitors, monitor conversion and optimization, and remarket. You can see site visitors by occasion, URLs, domains, and units. You can the data to create adverts, audiences, conversions, and actions.

Final Thoughts

Facebook is a wonderful platform for constructing your model and concentrating on your viewers. You can increase your Facebook posts utilizing adverts, however reasonably than concentrating on a vast number of viewers you should utilize retargeting to slim the viewers for higher outcomes at much less cash.

Not solely is Facebook Pixels a useful gizmo for getting probably the most out of your Facebook adverts, it’s additionally free and straightforward to make use of. Even in the event, you don’t use Facebook adverts now, you should utilize the stats and monitoring that will help you use them later.

We’d like to listen to from you! Do you employ Facebook Pixel with WordPress? Could you have something to add? Let us know in the comments under.