Facebook Pixel

The Facebook pixel is a snippet of JavaScript code that allows you to track visitor activity on your website. It works by loading a small library of functions which you can use whenever a site visitor takes an action (called an event) that you want to track (called a conversion). Tracked conversions appear in the Facebook Ads Manager where they can be used to measure the effectiveness of your ads, to define custom audiences for ad targeting, for dynamic ads campaigns, and to analyze that effectiveness of your website's conversion funnels.

If you want to track User activity in a mobile app, refer to our App Events documentation instead.

iOS 14 Updates

In response to Apple’s new policy, we are announcing breaking changes that will affect SDKAdNetwork, Marketng API and Ads Insights API endpoints. Visit our Changelog for more information.

To learn more about how Apple’s iOS 14 requirements will impact Facebook advertising, visit our Business Help Center aricles:


In order to implement the pixel, you will need:

In addition, depending on where you conduct business, you may have to comply with General Data Protection Regulation.

Ready? Let's get started.