Tracking

Meta Pixel and Conversions API deduplication: the rules that matter

Meta deduplicates a browser Pixel event and a Conversions API event when they share the same event name and the same event ID: the Pixel's eventID must match the server's event_id, and the Pixel's event must match event_name. Meta's docs say events are only deduplicated if received within 48 hours. Get either value wrong and purchases are counted twice or the server copy is wasted.

Updated 4 min readBy the NoHold Checkout team
On this page 11

Key takeaways

  • Dedup key: event_name plus event_id, identical in the browser and server copies.
  • The window is 48 hours from the first event received with that event_id.
  • Generate the ID once per real event, such as one per order, and pass the same value to both senders.
  • The fbp or external_id fallback only works when the browser event arrives first.

Why you send the same event twice

The Meta Pixel runs in the shopper's browser. It's easy to set up but loses events to ad blockers, browser privacy features, closed tabs and slow pages. The Conversions API sends events from your server directly to Meta, so it doesn't depend on the browser, but it has less browser context on its own. Meta recommends running both. That gives you better coverage, and it means each purchase reaches Meta twice. Event deduplication is how Meta keeps one.

The rule: event_name + event_id

Meta's developer documentation describes event ID and event name as the recommended method. For a browser and server event to be treated as the same event:

event, e.g. 'Purchase'
Server (Conversions API)
event_name, e.g. 'Purchase'
Must
Match exactly
eventID option on fbq('track', ...)
Server (Conversions API)
event_id field
Must
Match exactly
Browser: fbq('track', 'Purchase', {value: 84.00, currency: 'USD'}, {eventID: 'order-10482'})
Server:  { event_name: 'Purchase', event_id: 'order-10482', event_time: 1762500000,
           action_source: 'website', event_source_url: 'https://...', user_data: {...},
           custom_data: { value: 84.00, currency: 'USD' } }

Meta's docs say events are only deduplicated if they are received within 48 hours, measured from the first event received with that event_id. When the copies don't meaningfully differ, Meta says it generally prefers the one received first.

The fallback: fbp or external_id

Meta also documents an alternative: matching on event_name plus fbp and/or external_id, sent consistently by both sides. It has a big limitation. Per Meta's docs, it only works for events sent first from the browser and then through the server; server events aren't discarded if a matching browser event wasn't received in the previous 48 hours. It also doesn't deduplicate when you only use one source. Treat it as a safety net, not the plan.

Other server-event fields Meta checks

  • event_time is required, and Meta's docs say it can be up to 7 days before you send the event. Older events make the whole request fail.
  • action_source is required; use 'website' for conversions on your site.
  • event_source_url is required for website events sent through the Conversions API; it should be the page URL where the event happened.
  • user_data is required. Email, phone, names, city, state, zip and country must be SHA-256 hashed; external_id hashing is recommended.
  • client_ip_address, client_user_agent, fbc and fbp must not be hashed.
  • fbc comes from the _fbc cookie, or can be built from the fbclid in the landing URL, in the format fb.subdomain_index.creation_time.fbclid.

Common mistakes that break deduplication

  1. Different IDs on each side. The browser uses a random ID generated in the page; the server uses the order number. They never match, so every purchase counts twice.
  2. A new ID on every page load. If the thank-you page is reloaded, the Pixel fires again with a fresh ID. Use a stable ID tied to the order.
  3. Different event names. 'Purchase' on one side and 'purchase' or a custom event name on the other.
  4. Two apps sending the same event. A theme snippet and an app both firing Purchase, with different IDs. Audit everything that sends to your pixel.
  5. Server events sent late. A batch job that sends purchases days later can miss the 48-hour window and, past 7 days, gets rejected.
  6. Hashing fbp or IP. These must be sent raw; hashed values don't match anything.
  7. Sending the server event without user_data quality. It's deduplicated fine but matches poorly to people, so it adds little.

How to choose the event ID

Use one ID per real-world event, generated once and passed to both senders. For Purchase, something derived from the order or payment is natural, because both your page and your server know it. For InitiateCheckout, use an ID for the checkout session. For one-click upsells, each accepted upsell is its own purchase, so it needs its own ID. Never reuse the same ID for two different real purchases, or Meta will drop the second.

Deduplicating events other than Purchase

The same rule applies to every event you send from both sides: InitiateCheckout, AddPaymentInfo, AddToCart. These matter more than they seem, because Meta uses them for optimization and audience building, and inflated upper-funnel counts make your checkout look like it converts worse than it does.

InitiateCheckout
Natural ID source
Checkout session ID
Watch out for
Firing again when the shopper returns to the same checkout
AddPaymentInfo
Natural ID source
Checkout session ID + step
Watch out for
Firing on page load instead of on real input
Purchase
Natural ID source
Order or payment ID
Watch out for
Thank-you page reloads with a new ID
Upsell Purchase
Natural ID source
Upsell order ID
Watch out for
Reusing the main order's ID, which drops the upsell

How to check it's working

  1. Open Events Manager and look at the Purchase event's details for the share of events received from both browser and server, and any deduplication notices.
  2. Use the Test Events tool: complete a test order and confirm one browser and one server event appear with the same event ID.
  3. Compare Meta's reported purchases for a day with your store's order count for the same day. A ratio well above 1 usually means double counting.
  4. Check Event Match Quality for the server events; low scores mean user_data needs work.

A worked example of double counting

Hypothetical day: 100 real orders, average value $70
Browser Pixel captures 82 (ad blockers and closed tabs lose 18)
Server captures 100
IDs match:      Meta counts 100 purchases, $7,000
IDs don't match: Meta counts 182 purchases, $12,740
Reported ROAS is inflated by 82% and the algorithm optimizes on bad data

Deduplication when checkout isn't on Shopify

If shoppers pay outside Shopify's checkout, the apps that track Shopify checkout events don't see the purchase, so you have to decide who sends it. The options are explained in tracking with a custom checkout. NoHold Checkout has two modes: by default the Purchase comes from Whop's own pixel integration while NoHold sends InitiateCheckout and upsell purchases; in the alternative mode NoHold sends Meta Pixel plus Conversions API events itself, browser and server-side, deduplicated with shared event IDs, with a cookie consent banner on the checkout. The same logic applies to TikTok's Events API.

Frequently asked questions

What does Meta use to deduplicate Pixel and Conversions API events?

Meta's recommended method matches the Pixel's eventID with the Conversions API's event_id, and the Pixel's event name with event_name. When both match and the events arrive within 48 hours of the first one, Meta keeps one. An alternative method uses event_name with fbp or external_id, but it only works when the browser event arrives first.

How long is Meta's deduplication window?

Meta's developer documentation says events are only deduplicated if they are received within 48 hours, measured from the first event received with a given event_id. Separately, server events can be sent with an event_time up to 7 days in the past; older events cause the request to fail.

Should the event ID be the order number?

It can be, or a value derived from it, as long as both the browser and the server send exactly the same string and it's unique per real purchase. Some teams prefix it, for example with the event type, so a checkout event and a purchase event for the same order never share an ID.

Why does Meta report more purchases than my store has orders?

The most common cause is broken deduplication: the browser and server copies of each purchase have different event IDs or names, so Meta counts both. Other causes are two apps firing Purchase, thank-you page reloads with fresh IDs, and attribution differences. Compare daily counts with your orders to spot it.

Sources

  1. Meta for Developers: Handling duplicate Pixel and Conversions API events
  2. Meta for Developers: Server event parameters
  3. Meta for Developers: Customer information parameters

Keep reading