The Meta Pixel (formerly the Facebook Pixel) is a snippet of code that records what visitors do on your website after seeing or clicking a Facebook or Instagram ad: viewing a page, adding to basket, submitting a form, buying.
What it is used for
- Measurement: which ads lead to enquiries and sales
- Optimisation: Meta’s algorithm shows ads to people most likely to take the action you want
- Remarketing: audiences of past visitors
- Lookalike audiences: people similar to your existing customers
The Conversions API
Browser-based pixel data is increasingly lost to ad blockers, iOS privacy settings and cookie restrictions. Meta’s Conversions API (CAPI) sends the same events from your server, a form of server-side tracking. Running both, with deduplication, gives the most complete picture.
Standard events worth setting up
PageView, ViewContent, Lead, Contact, Schedule, AddToCart, InitiateCheckout and Purchase, with order values in GBP.
UK consent rules
The pixel sets advertising cookies, so under PECR it must not fire until the visitor opts in via your cookie consent banner. Loading it before consent is one of the most common compliance faults the ICO highlights.
Related terms
Server-side tracking
Server-side tracking sends analytics and ad conversion data from your own server rather than the visitor's browser, improving accuracy, speed and control.
Remarketing
Remarketing shows ads to people who have already visited your website or app, reminding them to come back and finish an enquiry, booking or purchase.
Conversion
A conversion is any valuable action a visitor takes on your website or app, such as a purchase, enquiry, phone call or booking, that you track as a goal.
Cookie consent
Cookie consent is the banner and settings that ask visitors for permission before non-essential cookies, such as analytics and advertising tags, are set.
Attribution
Attribution is how credit for a sale or enquiry is shared between the marketing touchpoints, such as ads, emails and searches, that came before it.