How to Set Up the Facebook Pixel (2026 Guide)
Tracking

How to Set Up the Facebook Pixel (2026 Guide)

9 min read

If you run Meta Ads and aren't sure the Facebook Pixel is installed correctly, you're burning budget without knowing it. The Pixel is the foundation of all tracking: without it, the algorithm has no idea who visited your site, who added to cart, or who purchased — and without those signals, campaign optimization runs blind.

In this practical guide you'll learn what the Meta Pixel is, how to create it in the Events Manager, how to install it (direct site tag, GTM, or e-commerce platforms), which standard events to configure, how to verify it's working, and why a client-side-only pixel is no longer enough in 2026.

What the Facebook (Meta) Pixel is

The Facebook Pixel — now officially called the Meta Pixel — is a snippet of JavaScript code you install on your website. As visitors browse your pages, the pixel fires events (like a page view or a purchase) and sends that data to Meta, tying the action to the user whenever possible.

This data powers three essential things: campaign delivery optimization (the algorithm learns who is most likely to convert), custom and remarketing audience building, and results measurement like cost per purchase and ROAS.

Technically, every pixel has a unique numeric ID (the Pixel ID). That's what connects your site's code to your ad account. A single pixel can be shared across multiple ad accounts inside a Business Manager.

How to create the Pixel in Events Manager

The Pixel is created inside Meta's Events Manager, no longer inside Ads Manager. Follow these steps:

  1. Go to Events Manager at business.facebook.com/events_manager.
  2. Click Connect data sources and select Web.
  3. Choose the Meta Pixel method and click Connect.
  4. Name the pixel (e.g., Main Store Pixel) and enter your website URL.
  5. Confirm — the pixel is created, and you'll see the Pixel ID at the top (a 15-16 digit sequence).

Once created, Meta offers installation options. You can install the code manually, use a partner integration (like Shopify or WooCommerce), or email instructions to a developer. Let's look at the main methods.

How to install the Pixel on your site

Method 1: direct site tag

The pixel base code must be placed inside the head tag of every page, as close to the opening of the head as possible. This base code automatically fires the PageView event on each page load.

The snippet contains your Pixel ID and the call fbq('init', 'YOUR_PIXEL_ID') followed by fbq('track', 'PageView'). If your site uses a shared template (same header on every page), you only need to paste it once in the layout file.

Method 2: Google Tag Manager (GTM)

If you use GTM, you don't need to touch the site code. Create a new Custom HTML tag, paste the pixel base code, and set the trigger to All Pages. For specific events like Purchase, create additional tags triggered by dataLayer events or clicks.

Tip: use a GTM variable for the Pixel ID instead of repeating the number in every tag. It makes maintenance easier if you ever switch pixels.

Method 3: e-commerce platforms

Shopify, WooCommerce, Wix, BigCommerce, and most platforms offer a native integration or official plugin. In those cases you usually just paste the Pixel ID into a settings field and the platform fires the standard events automatically, including Purchase with value and currency. It's the fastest and least error-prone method.

Standard Pixel events

Beyond the automatic PageView, Meta defines standard events that represent value actions in the funnel. Configuring the key ones is what makes optimization actually work:

  • PageView — a view of any page (fired by the base code).
  • ViewContent — a view of a specific product or piece of content.
  • AddToCart — item added to cart.
  • InitiateCheckout — checkout process started.
  • AddPaymentInfo — payment details entered.
  • Purchase — completed purchase (the most important, always with value and currency).

For value events like Purchase, always send the value (numeric amount) and currency (e.g., USD) parameters. Without them, Meta can't calculate ROAS or optimize for return. An example call: fbq('track', 'Purchase', {value: 49.90, currency: 'USD'}).

Custom events

If your conversion doesn't fit any standard event (e.g., booking a consultation or a specific form submission), use fbq('trackCustom', 'EventName', {...}) and optimize campaigns for that custom event.

How to verify the Pixel is working

Installing isn't enough — you need to confirm events are actually firing. There are three reliable ways:

  1. Meta Pixel Helper — a Chrome extension that shows, in real time, which pixels and events fire on the page you're viewing. A green icon with an event count means it's working.
  2. Test Events — inside Events Manager, the Test Events tab. Paste your site URL, browse, and watch events arrive live with the parameters sent.
  3. Pixel overview — in Events Manager, track event volume over the last 24h and the Event Match Quality score, which indicates the strength of the data being sent.

Run a real test purchase (or sandbox mode) and confirm the Purchase event shows up with the correct value. That's the test that matters most.

The limitation of client-side-only pixels

The pixel runs in the user's browser — it's 100% client-side. And that's the problem: in 2026, a huge share of events simply never reach Meta. Ad blockers, Safari's ITP, incognito browsing, connection failures, and cookie consent requirements cause 20% to 40% of conversions to be lost along the way.

When events are lost, the algorithm receives incomplete signals, your optimization degrades, and your reported ROAS falls below the real number. You're buying blind.

A client-side pixel alone is no longer reliable for measurement. It needs to be complemented by server-side tracking (CAPI) to recover the lost events.

The solution: CAPI (server-side tracking)

The Conversions API (CAPI) sends events straight from your server to Meta, without depending on the browser. This bypasses ad blockers, ITP, and cookie limits, recovering conversions the pixel alone would miss. The ideal setup runs pixel and CAPI together, with deduplication (using event_id and event_name) so Meta doesn't count the same event twice.

The challenge is that setting up CAPI manually requires server-side development, deduplication control, and event mapping — which stalls most advertisers. That's exactly where IzeAds comes in: our Brazilian Meta Ads management platform delivers ready-to-use server-side tracking (CAPI) with no code. Deduplication with the pixel is automatic, there's direct integration with major payment gateways, and you follow sales tracking in real time — knowing exactly which campaign generated each sale.

Common Pixel setup mistakes

  • Installing the pixel twice on the same page — generates duplicate events and inflates numbers.
  • Firing Purchase on every thank-you page visit instead of only on a confirmed purchase.
  • Forgetting the value and currency parameters on the Purchase event — makes ROAS optimization impossible.
  • Placing the code in the footer instead of the head — delays or drops firing.
  • Not configuring value events (Purchase, InitiateCheckout) and optimizing only for PageView.
  • Relying only on the client-side pixel, with no CAPI, and losing 20% to 40% of conversions.
  • Ignoring Event Match Quality by failing to send data like hashed email and phone.

Conclusion and next step

Setting up the Facebook Pixel correctly is the first step toward advertising with reliable data: create the pixel in Events Manager, install it via tag, GTM, or platform, configure the standard events with value and currency, and verify everything with Pixel Helper and Test Events.

But in 2026, stopping at the client-side pixel leaves money on the table. To recover lost conversions and optimize for real, enable server-side CAPI. With IzeAds you do it without code, with automatic deduplication, gateway integration, and sales tracked in real time. Create your account and set up complete tracking in minutes.

Ready to operate with more control?

Create campaigns in bulk, track sales in real time and protect your offers with IzeAds.

Create free account