What is Facebook Pixel and how to connect Facebook Pixel with WordPress — NiamRox

Juniors blog
6 min readMar 22, 2021

Are you trying to connect Facebook Pixel with WordPress website?

Now a days advertisement is a great way to reach the audience with your brand and products. You can easily interact with thousands of people by advertising. For advertising Facebook is a great platform. Billions of people are using Facebook so you can easily reach your targeted audience by advertising through Facebook.

What is Facebook Pixel

Facebook introduce us with Facebook Pixel which is the official analytical tools to measure the effectiveness of you advertising. Using this tools you can easily understand the action people are taken to your website when you are running any advertisement.

When you add Facebook pixel to your website you can do a lot more things like -

  • Show add to the targeted people. You can select the custom people to show your advertisement. You can also select the people to show the add who already visited to your website.
  • Track the conversation rate of your advertisement and campaign.
  • Optimize the add for targeted people.

How to connect Facebook Pixel with WordPress

There are two different ways to add Facebook Pixel with your WordPress website -

Add Facebook Pixel manually

You can manually connect Facebook Pixel with your WordPress website by adding some manual code. There are two steps in this method -

  • If you do not have any Facebook Pixel account then at first you need to create the Facebook Pixel account
  • After creating the account you need to insert the tracking code provide by Facebook Pixel in the <head> section of your website.

Create Facebook Pixel account

To create your Facebook Pixel account go to the Facebook event manage page and then click on the Pixel tab. If you don’t have a account then you can see the create a pixel button just click on it to create your account. It will open a pop up window just click on create button and your Pixel account will be created. You can create only one pixel account for your Facebook account.

How to get the Pixel tracking code

After creating your account you can see your Facebook pixel dashboard. Facebook pixel dashboard should look like this -

Click on the connect data source option to get the tracking code.

It will pop up a window from there select the web option it will help you to connect your website and see the activities. After choosing the web option click on the get started button.

After that choose Facebook Pixel and then click the connect button.

Now you need to add your pixel and url of your website and then click on the continue button. It will connect your url to the pixel account and redirect you to the Pixel dashboard. Now to get the tracking code click on the continue Pixel setup button.

It will open a pop up window from there clink on the insert code manually button. Now the tracking code will show up and copy the code by clicking on the copy button and click the continue button.

Add the tracking code to the website

You need to add the code in the <head> section of your website. You can add this code in two ways. You can open the header.php file of your website and paste this code before the </head> tag.

You can also use a plugin to insert code in the header section of your website. For this you need to install and active the Insert Headers and Footers plugin. Now go to your dashboard and the Setting > Insert Headers and Footers and then in the script in header field paste the code.

Save the changes. That’s it you just connect your Facebook pixel account with your WordPress website.

Add Facebook Pixel using plugin

You can use the Pixel Caffeine plugin to add your Pixel account. This plugin is totally free which enable you to add tracking code as well as many features like -

  • Create custom conversation event
  • Create custom targeted audience
  • Access additional analytic information about advertising

Add tracking code

At first download the plugin and activate it and then go to Pixel Caffeine > General setting option where you will find the connect Facebook button.

Now Facebook will ask permission to give access to this plugin and then click on the continue button.

Then you can see what access you provide to this plugin then click on ok button.

It will redirect you to your website where you can set your add account and Pixel id and click on the apply button.

That’s it you just connect your Facebook Pixel account with your WordPress website.

How to set up conversion tracking

You can set up conversion tracking from the Conversion/Event tab.If you enable this tracking you ca see the statistic report of how many user visit visit any specific page and click ratio. Fill up all the available field and click on create tracking button to start conversion tracking.

How to configure tracking option

To configure the tracking option scroll down to general settings page and you can see the Advance Data Tracking option. From there you can configure the thing like -

  • UTM tracking
  • Search event
  • taxonomy tracking
  • Advance matching

It also support Woocommerce so if you run a online shop then you can also connect it with the Woocommerce plugin.

How to create custom audience

To create custom targeted audience go to the Custom Audiences tab and create custom audience for your advertisement.

How to check Facebook Pixel is working or not

If you want to check your newly added Facebook Pixel account is working or not then you need to install the Facebook Pixel Helper extension. Install this extension and go the website where you added your Facebook pixel account. Click on the Facebook Pixel helper extension icon and it will show you a message. If yo see the successful message then your Facebook Pixel account is working p[perfectly for your WordPress website.

Wrapping Up

It is very important to promote your website and if you want to promote it on Facebook then you defiantly add your Facebook Pixel account your WordPress website. It will give you extra features to analyze how effectively your add is working. You can view the result, is your campaign get you what you targeted or not.

Originally published at https://niamrox.com on March 22, 2021.

--

--