Skip to main content
Glossary

Facebook Pixel

The Facebook Pixel (now "Meta Pixel") is a small JavaScript snippet you install on your site to track visitor behavior and send that data to Meta's ads manager. Without it, it is impossible to optimize campaigns for conversion, create custom audiences or measure ROAS accurately.

What is the Facebook Pixel?

The Facebook Pixel (officially called Meta Pixel today) is a JavaScript snippet provided by Meta that gets installed on your site. It records visitor actions (views, clicks, add-to-cart, purchases) and sends them to Meta Business Manager.

It is the foundational piece that enables:

  • Tracking conversions from ads
  • Optimizing campaigns for conversion (not just clicks)
  • Creating custom audiences (retargeting)
  • Creating lookalikes based on real buyers
  • Measuring ROAS with Meta attribution

How to install

  1. Open the Events Manager in Meta Business
  2. Create a Pixel (1 per domain is ideal)
  3. Copy the base code and install in the <head> of the site (or via Google Tag Manager)
  4. Configure specific events (ViewContent, AddToCart, InitiateCheckout, Purchase)
  5. Also configure the Conversions API (server-side) to recover data iOS 14+ broke

Standard events

  • PageView: any page
  • ViewContent: product page
  • Search: internal search
  • AddToCart: added to cart
  • InitiateCheckout: started payment
  • AddPaymentInfo: entered payment data
  • Purchase: bought (always with value and currency)
  • Lead: registered contact
  • CompleteRegistration: created account

Advanced configuration — Conversions API

In 2026, with only the client-side Pixel you lose 30% to 50% of user data due to ATT (App Tracking Transparency), blockers and iOS. The Conversions API (CAPI) sends events directly from your server to Meta, recovering much of that signal.

Common implementations:

  • Native plugins on Shopify, WooCommerce, Nuvemshop
  • GTM Server-Side
  • Stape.io or similar
  • Custom backend API

Practical example

Electronics store with Pixel but no CAPI:

  • Real sales in the system: 1,420
  • Sales attributed in Meta Ads: 920 (65% match)
  • Reported ROAS: 3.1

Same store after installing CAPI:

  • Real sales in the system: 1,480
  • Sales attributed in Meta Ads: 1,320 (89% match)
  • Reported ROAS: 4.8

The "real" ROAS did not change that much, but the algorithm now sees almost every conversion and optimizes much better. Result: CPA 22% lower in 30 days.

Common mistakes

  • Installing duplicated Pixels (events count twice)
  • Not configuring Purchase with value and currency
  • Skipping the Conversions API. In 2026 this is leaving money on the table
  • Not testing with Pixel Helper before launching a campaign
  • Same Pixel for several unrelated domains

Related terms

Want to see this in action?

Mais Social shows all your metrics in one place.

Try 14 days free
What is the Facebook Pixel? What it is for | Mais Social