Facebook Pixel Code Template – Custom Tag Template

A Facebook pixel, also known as a Facebook Social Pixel, is a small snippet of code added to a web page that helps Facebook understand what people on the page are doing and track their activity.

Pixels help you to create, test, and analyze customized Facebook advertising that’s relevant to your target audience.

Facebook Social Pixel enables companies to build audience-based, ad-friendly Facebook advertising campaigns. Facebook pixel is designed to simplify the process of gathering data about audience activity and help companies make more educated decisions about their campaigns and target those campaigns to individual audiences.

Facebook Pixel Code Template

The following Pixel code template is useful in case you have only Pixel ID but not the full-fledged code to install on the website.

All you have to do is replace your 16 digit pixel ID number at highlighted locations within quotes but without any brackets.

<!-- Facebook Pixel Code -->
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  fbq('init', '{your-pixel-id-goes-here}');
  fbq('track', 'PageView');
  <img height="1" width="1" style="display:none" 
<!-- End Facebook Pixel Code -->

Alternatively, you can get a full-fledged Facebook Pixel code from Events Manager page on your Facebook account.

Leave a Reply

Back to top button