Free guide · Tracking · 6 min read

Is your pixel lying to you?

Meta Pixel and Conversions API deduplication: how event_id works

Facebook CAPI events deduplication for server-side tracking: why Meta counts some purchases twice when you run the Pixel and Conversions API, how event_id and event_name deduplicate them, and how to test it in 10 minutes.

  • Why you send every event twice
  • How Meta matches the two copies
  • Where the event_id goes

Rather have it fixed? I fix double-counted or missing purchases on Meta, GA4 and Google Ads for a fixed $297, done within 72 hours of access. Book the free 10-minute check or see what's included.

Get the free PDF that goes with this guide:

  • Free. No card, no sales call.
  • Short. Use it the same day.
  • No spam. A few useful emails, unsubscribe in one click. Privacy

or read the guide first

Free PDF that goes with this guide:
Is Your Pixel Lying?

On this page
  1. Why you send every event twice
  2. How Meta matches the two copies
  3. Where the event_id goes
  4. Where deduplication usually breaks
  5. Test it in 10 minutes
  6. What good looks like
  7. Questions people ask
  8. Sources

Short answer: when you send the same purchase from the browser (Meta Pixel) and from your server (Conversions API), Meta only keeps one copy if both copies carry the same event name and the same event ID. On the Pixel that ID goes in eventID, on the server it goes in event_id. Use the order number for purchases. If the IDs are missing or different, Meta counts the purchase twice, your reported sales go up and your cost per purchase looks better than it really is.

This guide explains how the matching works, where it usually breaks, and how to check your own store in about 10 minutes.

Why you send every event twice

Running the Pixel and the Conversions API together is Meta's recommended setup. The browser copy can be lost to ad blockers, cookie banners and closed tabs. The server copy can't see everything the browser sees, such as the fbp and fbc cookies, unless you pass them along. Sending both gives Meta the best chance of receiving every purchase with good customer data. On Shopify, whether the server copy exists at all depends on your data sharing level.

The catch: Meta now has two copies of the same purchase. Deduplication is how it decides they are one event, not two.

How Meta matches the two copies

Meta treats a browser event and a server event as the same event when both of these match:

Browser (Meta Pixel) Server (Conversions API) Must match
event (for example Purchase) event_name Exactly the same name
eventID event_id Exactly the same value

A few rules from Meta's documentation that matter in practice:

  • 48 hours. Meta only looks for a matching pair within 48 hours. Send the server copy late, after that window, and it counts as a new event.
  • Which copy is kept. Meta generally keeps the copy it receives first. If both arrive within about 5 minutes of each other, it favours the browser copy.
  • Only across sources. Deduplication works between the Pixel and the Conversions API. Two identical browser events, for example from a thank-you page that loads twice, are not merged. That's a different problem, covered in why Meta purchases don't match your Shopify orders.

Where the event_id goes

On the Pixel, the event ID is the fourth argument of the fbq('track') call:

fbq('track', 'Purchase', { value: 49.99, currency: 'USD' }, { eventID: 'order_10482' });

On the server, it's the event_id field of the event you send to the Conversions API, next to event_name:

{ "event_name": "Purchase", "event_id": "order_10482", "event_time": 1795180000, "action_source": "website" }

Which value to use:

  • Purchases: the order or transaction number. Both the thank-you page and your server already know it, so it's easy to keep identical.
  • Other events (AddToCart, InitiateCheckout): a random value is fine, as long as the browser and the server send the same one for that event. In practice that means generating it once in the browser and passing it to the server.

Meta also supports a fallback: matching on event_name plus fbp and/or external_id. It is less reliable and generally only works when the browser copy arrives first, so treat event_id as the main method.

Where deduplication usually breaks

  1. Two different tools send the two copies. For example, a theme or GTM Pixel in the browser, and a separate app for the Conversions API on the server. Each tool makes its own event ID, so they never match. One tool should own both sides, or you must pass the same ID between them.
  2. The ID is formatted differently. 10482 from one side and order_10482 or #10482 from the other are different values to Meta.
  3. The event names differ. Purchase on the Pixel and purchase or a custom name on the server won't pair.
  4. A second Pixel install. If the Pixel is installed twice, you get two browser copies that no event ID can merge. Remove the extra one first (often leftover code from a tracking app you removed).
  5. Late server events. Some setups batch server events and send them hours later. Anything outside the 48-hour window counts again.

While you are in the server events, check the warnings in Diagnostics too. A server sender that skips the page URL shows up as event_source_url missing, and it is often the same tool that breaks deduplication.

Test it in 10 minutes

  1. Open Events Manager, choose your dataset (Pixel) and open Test events. Copy the test code if your Conversions API setup asks for one.
  2. Place a real test order on your store, the way a customer would, with a cheap product or a 100% discount code.
  3. In Test events, find the Purchase. You want to see it received from both Browser and Server, with the same event ID, shown as deduplicated.
  4. Check the value and currency on both copies. They should match each other and the order.
  5. Then open the Diagnostics tab of the dataset and look for deduplication warnings over the last few days.

If you see two purchases for one order, go back to the list above. Most of the time it's reasons 1 or 2.

What good looks like

  • Every Purchase arrives from both browser and server, with the same event ID (the order number).
  • Test events shows them as one deduplicated event.
  • No deduplication warnings in Diagnostics.
  • Over a normal week, purchases received in Events Manager are close to your real store orders. A few missing is normal (blocked browsers, consent choices). More purchases than orders means something is still double counting.

Once deduplication works, the next thing to raise is Event Match Quality: how much customer data each server event carries. If you want to check the rest of your setup too (duplicate pixels, GA4 and Google Ads), the free 15-point tracking audit walks you through it in about 30 minutes. GA4 has its own dedup key, transaction_id: see the GA4 duplicate purchases guide.

Questions people ask

Do I need both the Meta Pixel and the Conversions API?

Meta recommends using both together. The Pixel sees browser data such as cookies, and the server copy still arrives when the browser one is blocked. Deduplication with a shared event_id stops the overlap from being counted twice.

What should I use as the event_id for purchases?

The order or transaction number. It exists on the thank-you page and on your server, so both copies can send exactly the same value. Keep the format identical on both sides.

How long does Meta wait to match the two events?

Meta deduplicates a browser event and a server event with the same event name and event ID if they reach the same Pixel ID within 48 hours. Anything later counts as a new event.

Will deduplication fix purchases firing twice on a page reload?

No. Deduplication only merges a browser copy with a server copy. Two browser copies of the same purchase, for example from a thank-you page that loads twice, both count. Fix that on the page itself, so the Purchase event only fires once per order.

Where do I check whether deduplication is working?

In Events Manager, use Test events while you place a real test order and confirm the Purchase shows from both browser and server as one deduplicated event. Then check the dataset's Diagnostics tab for deduplication warnings.

Sources

Platform menus and defaults change often. This guide reflects them as of 29 Nov 2026. Nothing here promises results: they depend on your store, offer, budget and execution.

Free PDF

Find where your tracking breaks

Ads Manager says 40 purchases. Shopify says 61. Or the other way round. This checklist finds where your Meta, Google and TikTok tracking breaks, in about 30 minutes.

  • Free. No card, no sales call.
  • Short. Use it the same day.
  • No spam. A few useful emails, unsubscribe in one click. Privacy

Free PDF

Is your pixel lying to you?

Ads Manager says 40 purchases. Shopify says 61. Or the other way round. This checklist finds where your Meta, Google and TikTok tracking breaks, in about 30 minutes.

  • Free. No card, no sales call.
  • Short. Use it the same day.
  • No spam. A few useful emails, unsubscribe in one click. Privacy

Keep reading

More free guides

TrackingWhy Meta purchases don't match your Shopify orders (and how to fix it)A gap between Ads Manager and Shopify is normal. A big one means duplicate pixels, broken dedup or no server events. How to tell which, and fix it.Ad creativeHow to test ad creative on Meta: hook rate, hold rate and a simple hook testAn ad creative testing guide for Meta ads: what to test first, the same-body new-hook method, a spend limit set in advance, and how to read hook rate, hold rate and cost per purchase.Client workFacebook ads client onboarding checklist: every access you need, without passwordsA Facebook ads client onboarding checklist for media buyers: Meta partner access, Google and TikTok links, the numbers to agree and the ground rules, before launch.Ad creativeHook rate in Meta Ads: how to add it (and hold rate) as a custom metricHook rate in Meta ads = 3-second video plays / impressions. How to build hook rate and hold rate as custom metrics in Ads Manager in 5 minutes, what each number means, and how to read them.TrackingCheck your tracking before Black Friday: a 30-minute pre-flight checklistA BFCM tracker checklist for Shopify and WooCommerce on Meta: a 30-minute Black Friday and Cyber Monday tracking check. Test a real order, check dedup, values, apps and consent.TrackingMeta Event Match Quality: what the score means and how to raise itHow to improve event match quality on Facebook and Meta CAPI: what the EMQ score out of 10 measures, which customer parameters raise it, how to hash them, and a 10-minute check.Tracking"Event_source_url is missing" in Meta Events Manager: what it means and how to fix itevent_source_url in Meta CAPI: why Events Manager says it is missing, which server events need it, the action_source mistake behind most warnings, and a 10-minute test.TrackingRemoved a tracking app? How to find leftover Facebook pixel code in ShopifyUninstalling a tracking app can leave pixel code in your Shopify theme. Where to look (theme.liquid, Customer events, checkout settings), what to search for, and a 10-minute test.TrackingGoogle Ads missing conversions on Shopify? 7 checks before BFCMGoogle Ads conversion tracking problems on Shopify? Fewer purchases than orders: check click-date reporting, conversion status, primary actions, duplicate tags, consent and enhanced conversions.TrackingShopify keeps connecting the wrong Facebook account? How to fix itWhy the Shopify Facebook & Instagram app picks your personal profile or the wrong business, what Shopify and Meta require, and the clean reconnect steps from their own help pages.TrackingShopify data sharing levels: Standard vs Enhanced vs Maximum for MetaWhat each Shopify customer data sharing level sends to Meta, why Standard is pixel only, where to change it in the Facebook & Instagram app, and a 10-minute test after you switch.TrackingGA4 counting duplicate purchases? How transaction_id fixes itGA4 showing more purchases than orders? Why duplicate purchase events happen, how GA4 deduplicates by transaction_id, the empty-string trap, and a 10-minute check you can run today.TrackingPayPal and Stripe showing as referrals in GA4? Here's the fixpaypal.com or checkout.stripe.com showing as a referral in GA4 and taking credit for your sales? Add them to List unwanted referrals in 5 minutes, then test it with one order.TrackingMeta pixel not tracking purchases on Shopify? 8 checks in orderFacebook pixel not tracking purchases on Shopify? Check the app connection, data sharing level, consent, upsell apps, disconnected pixels and the Purchase value, then run a 10-minute test order.