How to Add Facebook Pixel on WordPress (Easy Way)

Are you searching for a way to add Facebook Pixel on WordPress site of yours? Well, if you look hard over the internet, you will find old ways to add Facebook pixel. But now, ways have changed a lot. The good news is, you are at the right post. 

From this post, you will be able to learn about Facebook Pixel and install Facebook Pixel on WordPress site of yours by yourself. Just read the post thoroughly, and you will be able to do it. 

Let’s begin.  

What is the Facebook Pixel?

Facebook pixel is a piece of code that allows you to measure, optimize and build audiences for your ad campaigns. You can also think of it as an analytics tool that lets you measure your advertising camp’s effectiveness by understanding the actions people take on your website. 

With the help of the Facebook pixel, you will be able to create website custom audiences, reach people most likely to take action, measure the results of your ads, and lots more. 

How to Add Facebook Pixel on WordPress

At first, you have to create a Facebook Pixel. To create one, navigate to Events Manager and log in to your Facebook account. Now click on the green plus icon or Connect data button. 

Now, it will ask you how you want to connect. Select Web and click on Connect button. 

Provide a suitable name for your new pixel and hit Create Pixel button. 

On the next screen, enter your website URL and click on the check button. 

Then select Meta Pixel Only and hit the Next button. 

On the next screen, select Install code manually. 

On the next screen, you will see the code. Click on the Copy Code button, and the code will be copied to your clipboard. 

Keep this code for the next step. 

Now it’s time to add Facebook pixel tracking code to WordPress <head> section. Install the WPCode plugin from the WordPress plugins directory. 

After installing the plugin, don’t forget to activate it. Navigate to Code Snippets -> Header & Footer. Paste the copied code in the header section and click on the save changes button. 

Well, you have successfully installed Facebook pixel on WordPress site of yours. 


Congrats, you have done it. If you want to test if Facebook Pixel is working or not, install Facebook Pixel helper Chrome extension. Once you have the extension activated, visit the site where you have installed Facebook Pixel. Upon clicking on the extension, you will be able to see if its working. 

If you liked the post, then share it with your friends, and don’t forget to leave your thoughts in the comment box below.

Own a WordPress Site? You’ll Need This Plugin!

Unleash the power of the WordPress Block Editor with Ultimate Blocks! Dive into a world where crafting stellar content is a breeze, where every feature and tool you’ve dreamed of is right at your fingertips.

Leave a Reply

Your email address will not be published. Required fields are marked *