What is the Meta Pixel?

The Meta Pixel (formerly the Facebook pixel) is code on your website that records what visitors do, such as viewing a product, adding to cart or buying, and sends those events to Meta so you can measure ads, build audiences and optimize delivery.

By Grace Kong·Updated ·2 min read

Optimize Meta ads to your pixel from your agent

TL;DR

  • Meta has 17 standard events, from AddPaymentInfo to ViewContent, and names are case sensitive: viewcontent creates a custom event (Meta).

  • Browser tags miss events, so each platform pairs its tag with a server feed: Meta's Conversions API, TikTok's Events API and Google's server-side tagging.

  • Since April 15, 2026 Meta can attach product names, availability and business details to pixel events, after a 30 day review window.

  • Pixels are turning into datasets in Events Manager, and a converted pixel keeps its pixel ID as the dataset ID.

What the pixel is used for

Measure, optimize and build audiences from the same events.

  • Measure which ads lead to purchases, leads or sign-ups.
  • Optimize delivery: automatic bidding toward the event you pick, such as Purchase.
  • Build custom audiences of site visitors for retargeting.

The 17 standard events are AddPaymentInfo, AddToCart, AddToWishlist, CompleteRegistration, Contact, CustomizeProduct, Donate, FindLocation, InitiateCheckout, Lead, Purchase, Schedule, Search, StartTrial, SubmitApplication, Subscribe and ViewContent, plus PageView, which the base code sends on every page (Meta). Names are case sensitive: viewcontent creates a custom event, not the standard one (Meta).

Pixel, Conversions API and the other platforms

Browser tags miss events; each platform pairs its tag with a server feed.

ToolRuns inPlatform
Meta PixelBrowserMeta
Conversions APIYour server, CRM or store platformMeta
TikTok Pixel plus Events APIBrowser plus serverTikTok
Google tag (replaced the global site tag)Browser, with optional server-side taggingGoogle Ads, Analytics and others

Source: Meta Help, TikTok Help, Google Ads Help.

Meta says advertisers with a Conversions API setup for web events saw 17.8% lower cost per result on average (Meta, April 2026).

What changed recently

Pixels now live inside datasets, and Meta adds page details for you.

  • Events Manager is merging web, app, offline and messaging events into one dataset; a converted pixel keeps its pixel ID as the dataset ID (Meta).
  • On April 15, 2026 Meta added an AI feature that attaches product names, availability and business details to pixel events, with a 30-day review window before it switches on (Meta).
  • The default setting uses first-party and third-party cookies together; Meta says first-party cookies are accepted more widely by browsers and kept longer (Meta).

Questions

How do I find my Meta Pixel ID?

Open Events Manager and select your dataset. For pixels converted to datasets, the dataset ID is the old pixel ID.

Do I still need the pixel if I use the Conversions API?

Meta expects both: it measures server events against pixel events, aims for 75% coverage, and deduplicates the overlap with a shared event ID (Meta, best practices for Conversions API).

What data must never go through the pixel?

Meta's terms bar sending health, financial or children's data, and placing the pixel on sites you don't own.

Sources

  1. 1Meta Business Help Center, about Meta Pixel · accessed Nov 30, 2026
  2. 2Meta Business Help Center, standard events · accessed Nov 30, 2026
  3. 3Meta Business Help Center, best practices for Meta Pixel setup · accessed Nov 30, 2026
  4. 4Meta Business Help Center, pixel cookie settings · accessed Nov 30, 2026
  5. 5Meta Business Help Center, best practices for Conversions API · accessed Nov 30, 2026
  6. 6Meta Business Help Center, about datasets · accessed Nov 30, 2026
  7. 7Meta for Business, pixel and Conversions API updates · Apr 15, 2026
  8. 8Google Ads Help, about the Google tag · accessed Nov 30, 2026

Optimize Meta ads to your pixel from your agent

Keep reading