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 and in the Facebook Analytics dashboard, 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.

Requirements

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.