How to add Facebook Pixel to WordPress Website

Last Updated: January 11, 2022

Prerequisites for adding a Facebook pixel to WordPress Website

  1. You need to have a WordPress website with a custom domain. Not the free WordPress website like mywebsite.wordpress.com
  2. You have admin access to your WordPress website.
  3. You have an active Facebook Business Manager account.
  4. You have at least one Facebook ad account which is linked to your Facebook business manager account.
  5. You have the ‘Manage Ad Account’ access for the Facebook ad account.

Follow the steps below to add the Facebook pixel to your WordPress website:

Step-1: Login to your Facebook Ads Manager account: https://business.facebook.com/adsmanager/

Step-2: Click on the ‘All Tools’ drop-down menu:

‘All Tools drop down menu 1

Step-3: Click on the shortcut named ‘Events Manager’:

Events Manager

If your Facebook pixel is not already set up then follow the steps below, otherwise jump to step-10:

Step-4: You will be asked to create a new data source: Click on ‘Connect a Data Source’.

‘Connect a Data Source

Step-5: An overlay will appear like below, select ‘Web’ and then click on ‘Connect’.

select ‘Web and then click on ‘Connect

Step-6:  Give a name to your Facebook pixel and then click on the ‘Create Pixel’ button:

Give a name to your Facebook

Now you have created your Facebook pixel.

Step-7: Enter your website URL in the text box and then click on the ‘Check’ button:

Enter your website URL in the text

Step-8: Click on the ‘Next’ button:

check for partner integration

Step-9: Click on ‘Pixel Only’ and then click on the ‘Next’ button:

Click on ‘Pixel Only

Now jump to Step-13

Step-10: Click on your Facebook pixel:

Click on your Facebook

Step-11: Click on the ‘Manage Integrations’ button:

Manage Integrations

You should now see a dialogue box like the one below:

You should now see a dialogue box like the one below

Step-12: Click on the ‘Manage’ drop-down menu next to ‘Browser pixel’and then click on ‘Add to another website’:

Add to another website

You should now see a window like the one below:

choose how you want to install

Step-13: Click on the ‘Use a partner’ button:

Use a partner

Step-14: Scroll down and then click on ‘WordPress’: 

click on ‘WordPress

You should now see a dialogue box like the one below:

connect your wordpress account to facebook

Step-15: Login to your WordPress website and install and activate a new plugin named ‘Facebook for WordPress’:

install Facebook for WordPress

Step-16: Click on the ‘Settings’ link to configure the settings for the ‘Facebook for WordPress’ plugin:

Settings

Step-17: Click on the ‘Get Started’ button:

Get Started

Step-18: Click on the ‘Continue’ button:

connect wordpress app to facebook

Step-19: Make sure that you are connecting your website to the correct Facebook Business account, correct Ad Manager account and correct Facebook pixel:

Make sure that you are connecting your website to the correct Facebook Business account

Step-20: Click on the ‘Continue’ button:

confirm settings

Step-21: Click on the ‘Next’ button:

what is wordpress app allowed to do

You should now see a screen like the one below:

linking wordpress app to facebook

Step-22: Click on the ‘Done’ button:

you are all set

Step-23: Click on the checkbox ‘I agree to share my token with this site’ and then click on the ‘Confirm’ button:

I agree to share my token with this site

You should now see a screen like the one below:

your business is connected to facebook

Step-24: Navigate back to your Facebook ad manager account and then click on the ‘Next’ button:

Navigate back to your Facebook ad manager account

Step-25: Click on the ‘Next’ button again:

Click on the ‘Next button again

Step-26: You should now see the ‘Active’ notification. Click on the ‘Next’ button:

‘Active notification

Step-27: Click on the ‘Next’ button:

step 27

Step-28: Click on the ‘Test events in Events Manager’ button:

Test events in Events Manager

You should now see a new tab opened in your browser window like the one below:

You should now see a new tab opened in your browser window

Step-29: Click on the ‘Test events’ tab:

Test events tab

Step-30: Scroll down the screen, enter your website URL in the text box and then click on the ‘Open website’ button:

enter your website URL in the text box 2

Your website should now open in a new tab in your browser window. 

Step-31: Navigate to different pages on your website.

Step-32: Navigate back to your Facebook events manager. You should now see the events being recorded:

You should now see the events being recorded

Step-33: Navigate back to another browser tab which shows the window ‘Connect your WordPress account to Facebook’ and then click on the ‘Finish’ button:

click on the finish button

That’s how you can add Facebook Pixel to a WordPress Website.

  1. How to add Facebook Pixel to Google Tag Manager
  2. facebook.com Referral Traffic in Google Analytics Explained
  3. Facebook Attribution and Conversion Windows Tutorial
  4. Facebook ROI Calculation, Analysis and Examples
  5. How to set up the Facebook Attribution Tool
  6. How to Setup Funnels in Facebook Ads Manager
  7. How to use funnels for your Facebook Ad Campaigns
  8. How to advertise on Facebook for FREE with unlimited budget
  9. Facebook Pixel vs Google Analytics Data Discrepancies
  10. facebook.com Referral Traffic in Google Analytics Explained
  11. Send Facebook Pixel Purchase Event via Google Tag Manager
  12. Open Graph Protocol for Facebook Explained with Examples
  13. Tracking Facebook ‘Likes’ and ‘Unlikes’ in Google Analytics
  14. Google Analytics for Facebook Tutorial
  15. Facebook Attribution Models Tutorial
  16. GTM Server Side Tagging for Facebook Tutorial
  17. The impact of Apple IOS 14.5 update on Facebook Ads
  18. How to add Facebook Pixel to WordPress without a Plugin
  19. How to track Facebook events via Google Tag Manager
  20. How to use the Facebook Event Setup Tool
  21. How to use the Facebook Pixel Helper to Test Facebook Events

Register for the FREE TRAINING...

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."



Here’s what we’re going to cover in this training…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

#5 The number 1 reason why conversion optimization is not working for your business.

#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.



   

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade
error: Alert: Content is protected !!