October 29, 2026

How to Set Up Facebook Conversions API (2026)

Browser-based tracking keeps getting less reliable — ad blockers, cookie restrictions, and iOS privacy changes all eat into your data. The Facebook Conversions API (CAPI) fixes this by sending events from your server directly to Meta instead of relying on the visitor's browser. Here's how to set it up.

What the Conversions API does

Normally, the Facebook Pixel fires in the visitor's browser. If the browser blocks it, the event never reaches Meta. CAPI sends the same events (purchases, leads, page views) from your web server, so they arrive even when browser tracking fails.

Best practice in 2026 is running both: the Pixel in the browser plus CAPI on the server, with event deduplication so Meta counts each conversion once.

Option 1: Partner integration (easiest)

If your site runs on a major platform, setup can take minutes:

  • Shopify: Facebook & Instagram app → Settings → Data sharing settings → enable Maximum data sharing (this turns on CAPI)
  • WordPress/WooCommerce: Use the official Facebook for WooCommerce plugin, which supports CAPI
  • Wix, Squarespace, BigCommerce: Each has a built-in Meta integration with a CAPI toggle

After enabling, verify events in Events Manager within a few hours.

Option 2: Google Tag Manager server-side

For more control without heavy development:

  • Set up a server-side GTM container (requires a server or cloud hosting for the container)
  • Add the Meta Conversions API tag template from the GTM gallery
  • Configure it with your Pixel ID and a Conversions API access token (generated in Events Manager → Settings)
  • Map your existing data layer events to CAPI events
  • Publish and test

This route suits marketers who are comfortable with GTM but don't want to write backend code.

Option 3: Manual / developer integration

For custom websites, your developer integrates directly with the Conversions API:

  • In Events Manager → your Pixel → Settings, generate an access token
  • Your server sends HTTPS POST requests to `graph.facebook.com/vXX.X/{pixel_id}/events` with the event data
  • Include matching parameters (email hash, phone hash, IP, user agent) — these dramatically improve event match quality
  • Implement event deduplication: send the same `event_id` from both Pixel and CAPI so Meta merges them instead of double-counting

Meta's developer docs include code samples for common languages.

Event match quality matters

CAPI's value depends on how well Meta can match your server events to real users. Improve match quality by sending:

  • Hashed email address (SHA-256)
  • Hashed phone number
  • Client IP address and user agent
  • Facebook click ID (`fbclid`) and browser ID (`fbp`) when available

Events Manager shows an Event Match Quality score per event — aim to push it as high as you can.

Testing your setup

  • Go to Events Manager → Test Events → Server tab
  • Trigger a test event on your site (or send a test event ID)
  • Confirm the event arrives with the right parameters
  • Check that deduplication works — one purchase should appear once, not twice

FAQ

Do I still need the Facebook Pixel if I use the Conversions API?

Yes — Meta recommends using both together. The Pixel captures browser-side signals and the Conversions API covers what the browser misses. Deduplication keeps the data clean.

Is the Conversions API free?

The API itself is free. Costs only come from infrastructure if you self-host (e.g., a server-side GTM container). Partner integrations on platforms like Shopify include it at no extra charge.

How long does Conversions API setup take?

With a partner integration like Shopify's, under 30 minutes. Server-side GTM typically takes a few hours for someone familiar with it. A custom developer integration often takes a few days including testing.

What is event deduplication and why does it matter?

When both the Pixel and CAPI send the same purchase, Meta needs to know it's one event, not two. You handle this by sending an identical `event_id` with both. Without it, your conversion counts will be inflated and optimization will suffer.

—

Setting up CAPI alongside a full tracking and ad account health check? Order from the FixMyBM shop — we help advertisers get their tracking right.

Founder of FixMyBM. I help businesses recover restricted Facebook Business Managers, ad accounts and pages, and write practical guides on Facebook advertising and account security. Based in Fatikchhari, Chittagong, Bangladesh.