What is Facebook Pixel?
Facebook Pixel is code that can be placed on the website. It helps track conversions from Facebook ads, optimize ads based on collected data, build targeted audiences for future ads, and re-market to qualified leads—people who have already taken some kind of action on the website.
Adding FB Pixel
Go to: https://business.facebook.com/
Click on Events Manager:
Create the new Event:
Select Web:
Now select Facebook Pixel and hit Connect:
Name the Pixel:
Click on "Install code manually":
Facebook Instructions: Paste the pixel code into the bottom of the header section just above the </head> tag. Install the base code on every page of the website.
Make sure to save the Pixel Code, example:
<!-- 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', '2956733807889962');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=2956733807889962&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Note: The Pixel Code added on this article is for demonstration purposes only, the only code that is going to work on the site is the one generated on the Facebook account.
Then click on Continue:
Where do I place this code on the site?
Place the Facebook Pixel code in the HEAD section of the website and click on Save Changes:
Important Note: To learn how to track member sign-ups with Facebook Pixel, please refer to the article down below:
Tracking Member Sign-Ups Events With Facebook Pixel