Checkout
IMPORTANT: For all email communications regarding compliance requirements, please ensure you are emailing from the contact email registered in App Dashboard, and that our address is in the to: field, not cc: or bcc:, or we will not receive your message. For details on the appeals process, please refer to this Developer Blog post. Thank you!
Meta Pixel
Get Started
Conversion Tracking
Pixel for Collaborative Ads
Pixel for Dynamic Ads
Pixel for Marketing API
Pixel for Movies
Pixel for Official Events
Guides
Support
Reference
Get Started
The Meta Pixel is a snippet of JavaScript code that loads a small library of functions you can use to track Facebook ad-driven visitor activity on your website. It relies on Facebook cookies, which enable us to match your website visitors to their respective Facebook User accounts. Once matched, we can tally their actions in the Facebook Ads Manager so you can use the data to analyze your website’s conversion flows and optimize your ad campaigns.
By default, the Pixel will track URLs visited, domains visited, and the devices your visitors use. In addition, you can use the Pixel’s library of functions to:
track conversions, so you can measure ad effectiveness
define custom audiences, so you can target visitors who are more likely to convert
set up dynamic ad campaigns
Requirements
In order to implement the Pixel, you will need:
access to your website’s code base
your Pixel’s base code or its ID
access to the Facebook Ads Manager
In addition, depending on where you conduct business, you may have to comply with General Data Protection Regulation.
Ready? Let’s get started.
Base Code
Before you can install the Pixel, you will need your Pixel’s base code, which you can find in the Ads Manager > Events Manager. If you have not created a Pixel, follow these instructions to create one — all you will need is the Pixel’s base code (step 1).
The base Pixel code contains your Pixel’s ID in two places and looks like this: