Meta and Snapchat purchase tracking without double counting
When a store sends a purchase from the browser pixel and again from the server, the platform needs a shared identifier to count it once. Meta matches the pixel's eventID and event name with the Conversions API event_id and event_name. Snapchat matches client_dedup_id with event_id, and transaction_id with order_id for purchases. Google Analytics deduplicates purchases that carry the same transaction ID. Verify with test orders before trusting any report.
By Riven PartnersPublished
Why does one purchase get counted twice?
A browser pixel can be blocked or lost, so stores also send the same event from their server through a conversions API. Meta calls this a redundant setup. It improves coverage only if the platform can recognise the two messages as one purchase. Without a shared key, each message may look like a separate sale.
Which identifiers does each platform use?
| Platform | Browser side | Server side | Window |
|---|---|---|---|
| Meta | eventID + event | event_id + event_name | 48 hours from the first event received |
| Snapchat (general events) | client_dedup_id | event_id | 48 hours |
| Snapchat (purchases, recommended in addition) | transaction_id | custom_data.order_id | 48 hours |
| Google Analytics 4 | transaction_id | The same transaction_id | Purchases with the same ID are deduplicated |
Meta details that are easy to miss
- The pixel's eventID is passed as the fourth argument of the fbq track call.
- Both the identifier and the event name have to correspond: a Purchase on one side must be a Purchase on the other.
- An alternative method uses fbp or external_id, with the documented limitation that it generally works only when the browser event arrives first.
Snapchat details that are easy to miss
- If you do not pass client_dedup_id yourself, the Pixel SDK generates one that your server does not know, so the two copies cannot match on it.
- The identifiers are compared as text: casing, spaces and characters must be identical.
- Sending a purchase again days later may count it as a second conversion.
How do you test your store?
- List every place that sends a purchase: theme code, platform apps, tag manager, server integration.
- Choose one source of truth for the identifier, normally the order number, and one rule for building it.
- Place test orders with each payment method, including cash on delivery.
- In each platform's event testing tool, confirm that both copies arrive, carry the same identifier and are merged.
- Check value and currency, and whether tax and shipping are included, on both sides.
- Reload the order confirmation page and confirm no new purchase is recorded.
- Repeat after any change to the theme, apps or checkout.
What if platform and store numbers still differ?
| Symptom | Likely causes | First check |
|---|---|---|
| Purchases roughly double the orders | Two integrations without a shared ID | Compare identifiers of one test order |
| Purchases far below orders | Event not firing for some payment methods; blocked browser events | Test each payment path |
| Value differs, count matches | Tax, shipping, discount or currency handled differently | Compare one order line by line |
| Every platform claims the same sale | Different attribution rules, not a tracking fault | Judge totals against store revenue |
| Cash-on-delivery sales look strong, cash is weak | The event fires at order placement, before delivery | Report delivered orders separately |
What about privacy and consent?
Server-side sending does not remove your obligations. Send only what you need, follow the platforms' data rules and the privacy laws that apply to your customers, keep your privacy and cookie notices accurate, and obtain consent where it is required. Take legal advice for your markets.
Does Salla, Zid or Shopify handle this for you?
Store platforms and their apps offer integrations that change over time. Do not assume. Whatever you install, run the test above and read the identifiers that actually arrive. The test is the same on any platform.
Then turn tracked sales into a profit view
To see a full reconciliation laid out, read our worked specimen. The business in it is made up and its data synthetic.
Specimen: purchase count reconciliation
Common questions
- Do I need both the pixel and the server API?
- Meta recommends the redundant setup for advertisers. If you only send each event once, you do not need deduplication for it.
- Can I use the order number as the event ID?
- It works well for purchases if it is unique and identical on both sides. Do not put personal data inside the identifier.
- Should the numbers ever match exactly?
- Counts of sent and received purchases for tracked orders should be explainable. Attributed sales per platform will differ because each platform assigns credit its own way.
Sources
- Handling Duplicate Pixel and Conversions API Events · Meta for Developers · Accessed Meta's matching keys, the fbq eventID argument, the 48-hour window and the limits of the fbp or external_id method.
- Deduplication · Snap for Developers · Accessed Snapchat's identifier pairs, the 48-hour window, the auto-generated ID and exact-match requirement.
- Minimize duplicate key events with transaction IDs · Google Analytics Help · Accessed Deduplication of purchases by transaction ID and the warning against empty IDs.
