How to set up the Meta Pixel and Conversions API (CAPI) properly

iOS 17, Safari ITP and ad blockers all degrade Pixel-only tracking. Set up the Conversions API alongside the Pixel for accurate Meta Ads attribution.

9 min read advancedUpdated Jun 23, 2026
BI
Reviewed by the editorial team · Jun 23, 2026

The browser-only Meta Pixel misses 20–40% of conversions on modern devices. The Conversions API (CAPI) sends events server-side, recovering most of that loss and keeping Advantage+ campaigns properly optimised.

Before you start
  • A Meta Business Manager account
  • Access to your website's backend or a supported platform (Shopify, WordPress, etc.)

Step by step

  1. 01

    Install the Pixel first

    Events Manager → Connect Data Sources → Web → install the base code in your site's <head>. Verify with Meta Pixel Helper Chrome extension.

  2. 02

    Decide on the CAPI integration path

    Shopify and WordPress have native integrations (no code). Custom sites need a server-side implementation via Stape, Zapier, or a backend script.

  3. 03

    Generate a CAPI access token

    Events Manager → Settings → Conversions API → Generate Access Token. Treat it like a password.

  4. 04

    Implement event deduplication

    Send the same event_id from both Pixel and CAPI. Meta uses it to deduplicate — without it you'll double-count purchases.

  5. 05

    Send user data with each event

    Email, phone, IP, user agent — all hashed. The more matching parameters you send, the higher your Event Match Quality score.

  6. 06

    Verify in Test Events

    Events Manager → Test Events → enter your domain → trigger a conversion. Both Pixel and CAPI events should appear and dedupe.

  7. 07

    Check Event Match Quality

    Aim for a score of 7.0+. Below 6 means Advantage+ is undertargeting. Add more user parameters until you hit 8+.

Troubleshooting

Events double-counting
event_id isn't matching between Pixel and CAPI. Generate it server-side and pass it to both sides.
EMQ score below 6
You're missing user parameters. Add hashed email, phone, FBP cookie and client IP at minimum.

Frequently asked questions

+Do I still need the Pixel if I have CAPI?

Yes — run both. The Pixel captures real-time browser events (great for retargeting), CAPI backstops everything server-side. Together they restore near-pre-iOS14 accuracy.

Advertising · Done-for-you
Want profitable paid campaigns?

We launch and optimise Meta, Google, TikTok and LinkedIn ads end-to-end.

Book an ads call