How to add Facebook Pixel to WordPress without a Plugin
Prerequisites for adding a Facebook pixel to WordPress website without a plugin:
- You have a Google Tag Manager account.
- Google Tag Manager is installed on your website.
- You have the publish permission at the GTM container level.
- You have an active Facebook Business Manager account.
- You have at least one Facebook ad account which is linked to your Facebook business manager account.
- You have the ‘Manage Ad Account’ access for the Facebook ad account.
Follow the steps below to add Facebook Pixel to your wordpress website (or infact any website) without a Plugin:
Step-1: Navigate to your Facebook Events Manager: https://www.facebook.com/events_manager2/list/
Step-2: Click on your Facebook pixel:
Step-3: Click on the ‘Manage Integrations’ button:
You should now see a dialogue box like the one below:
Step-4: Click on the ‘Manage’ drop-down menu next to ‘Browser pixel’ and then click on ‘Add to another website’:
You should now see a window like the one below:
Step-5: Click on the ‘Install Code Manually‘ button:
Step-6: Click on the ‘Copy Code‘ button to copy the Facebook default pixel code:
Have this code ready in your note pad, the code will look like below:
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '124346276306212');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=124346664646464&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Step-7: Click on the ‘Continue‘ button at the bottom of the page.
Step-8: Toggle on the ‘Automatic Advanced Matching‘ option. Use this setting according to your privacy policy. Then click on the ‘Continue‘ button.
You should now see a screen like the one below:
Step-9: Log in to your Google Tag Manager account and create a new custom HTML tag.
Step-10: Name your new tag ‘Facebook default pixel code’ and then paste the Facebook pixel code in the text area:
Step-11: Set the tag to fire on all pages of your website:
Step-12: Save your new tag and then preview it to see whether it fires on all of your web pages.
Step-13: Publish your container.
Step-14: Navigate back to the Events Manager Onboarding screen and then click on the ‘Continue‘ button:
Step-15: Click on the ‘Verify Domain‘ button and then follow the on-screen instructions in order to verify your domain with Facebook:
Step-16: Click on the ‘Continue‘ button:
Step-17: Click on the ‘Configure Web Events‘ button and then follow the on-screen instructions in order to configure and prioritize up to 8 events that matter most to businesses. This step is required in order to reduce the negative impact of the Apple IOS 14.5 update on Facebook ads.
Step-18: Click on the ‘Go to Pixel Overview‘ button:
Other articles on Facebook Pixel Tracking
- How to add Facebook Pixel to Google Tag Manager
- facebook.com Referral Traffic in Google Analytics Explained
- Facebook Attribution and Conversion Windows Tutorial
- Facebook ROI Calculation, Analysis and Examples
- How to set up the Facebook Attribution Tool
- How to Setup Funnels in Facebook Ads Manager
- How to use funnels for your Facebook Ad Campaigns
- How to advertise on Facebook for FREE with unlimited budget
- Facebook Pixel vs Google Analytics Data Discrepancies
- facebook.com Referral Traffic in Google Analytics Explained
- Send Facebook Pixel Purchase Event via Google Tag Manager
- Open Graph Protocol for Facebook Explained with Examples
- Tracking Facebook ‘Likes’ and ‘Unlikes’ in Google Analytics
- Google Analytics for Facebook Tutorial
- Facebook Attribution Models Tutorial
- GTM Server Side Tagging for Facebook Tutorial
- The impact of Apple IOS 14.5 update on Facebook Ads
- How to add Facebook Pixel to WordPress Website
- How to track Facebook events via Google Tag Manager
- How to use the Facebook Event Setup Tool
- How to use the Facebook Pixel Helper to Test Facebook Events
- How to automatically turn off Facebook ads on weekends
- How to name Facebook Ad Campaigns like a Pro
Prerequisites for adding a Facebook pixel to WordPress website without a plugin:
- You have a Google Tag Manager account.
- Google Tag Manager is installed on your website.
- You have the publish permission at the GTM container level.
- You have an active Facebook Business Manager account.
- You have at least one Facebook ad account which is linked to your Facebook business manager account.
- You have the ‘Manage Ad Account’ access for the Facebook ad account.
Follow the steps below to add Facebook Pixel to your wordpress website (or infact any website) without a Plugin:
Step-1: Navigate to your Facebook Events Manager: https://www.facebook.com/events_manager2/list/
Step-2: Click on your Facebook pixel:
Step-3: Click on the ‘Manage Integrations’ button:
You should now see a dialogue box like the one below:
Step-4: Click on the ‘Manage’ drop-down menu next to ‘Browser pixel’ and then click on ‘Add to another website’:
You should now see a window like the one below:
Step-5: Click on the ‘Install Code Manually‘ button:
Step-6: Click on the ‘Copy Code‘ button to copy the Facebook default pixel code:
Have this code ready in your note pad, the code will look like below:
<!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '124346276306212'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=124346664646464&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code -->
Step-7: Click on the ‘Continue‘ button at the bottom of the page.
Step-8: Toggle on the ‘Automatic Advanced Matching‘ option. Use this setting according to your privacy policy. Then click on the ‘Continue‘ button.
You should now see a screen like the one below:
Step-9: Log in to your Google Tag Manager account and create a new custom HTML tag.
Step-10: Name your new tag ‘Facebook default pixel code’ and then paste the Facebook pixel code in the text area:
Step-11: Set the tag to fire on all pages of your website:
Step-12: Save your new tag and then preview it to see whether it fires on all of your web pages.
Step-13: Publish your container.
Step-14: Navigate back to the Events Manager Onboarding screen and then click on the ‘Continue‘ button:
Step-15: Click on the ‘Verify Domain‘ button and then follow the on-screen instructions in order to verify your domain with Facebook:
Step-16: Click on the ‘Continue‘ button:
Step-17: Click on the ‘Configure Web Events‘ button and then follow the on-screen instructions in order to configure and prioritize up to 8 events that matter most to businesses. This step is required in order to reduce the negative impact of the Apple IOS 14.5 update on Facebook ads.
Step-18: Click on the ‘Go to Pixel Overview‘ button:
Other articles on Facebook Pixel Tracking
- How to add Facebook Pixel to Google Tag Manager
- facebook.com Referral Traffic in Google Analytics Explained
- Facebook Attribution and Conversion Windows Tutorial
- Facebook ROI Calculation, Analysis and Examples
- How to set up the Facebook Attribution Tool
- How to Setup Funnels in Facebook Ads Manager
- How to use funnels for your Facebook Ad Campaigns
- How to advertise on Facebook for FREE with unlimited budget
- Facebook Pixel vs Google Analytics Data Discrepancies
- facebook.com Referral Traffic in Google Analytics Explained
- Send Facebook Pixel Purchase Event via Google Tag Manager
- Open Graph Protocol for Facebook Explained with Examples
- Tracking Facebook ‘Likes’ and ‘Unlikes’ in Google Analytics
- Google Analytics for Facebook Tutorial
- Facebook Attribution Models Tutorial
- GTM Server Side Tagging for Facebook Tutorial
- The impact of Apple IOS 14.5 update on Facebook Ads
- How to add Facebook Pixel to WordPress Website
- How to track Facebook events via Google Tag Manager
- How to use the Facebook Event Setup Tool
- How to use the Facebook Pixel Helper to Test Facebook Events
- How to automatically turn off Facebook ads on weekends
- How to name Facebook Ad Campaigns like a Pro
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.