Skip to content

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?

Deduplication keys as documented by each platform
PlatformBrowser sideServer sideWindow
MetaeventID + eventevent_id + event_name48 hours from the first event received
Snapchat (general events)client_dedup_idevent_id48 hours
Snapchat (purchases, recommended in addition)transaction_idcustom_data.order_id48 hours
Google Analytics 4transaction_idThe same transaction_idPurchases 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?

  1. List every place that sends a purchase: theme code, platform apps, tag manager, server integration.
  2. Choose one source of truth for the identifier, normally the order number, and one rule for building it.
  3. Place test orders with each payment method, including cash on delivery.
  4. In each platform's event testing tool, confirm that both copies arrive, carry the same identifier and are merged.
  5. Check value and currency, and whether tax and shipping are included, on both sides.
  6. Reload the order confirmation page and confirm no new purchase is recorded.
  7. Repeat after any change to the theme, apps or checkout.

What if platform and store numbers still differ?

Symptoms and first checks
SymptomLikely causesFirst check
Purchases roughly double the ordersTwo integrations without a shared IDCompare identifiers of one test order
Purchases far below ordersEvent not firing for some payment methods; blocked browser eventsTest each payment path
Value differs, count matchesTax, shipping, discount or currency handled differentlyCompare one order line by line
Every platform claims the same saleDifferent attribution rules, not a tracking faultJudge totals against store revenue
Cash-on-delivery sales look strong, cash is weakThe event fires at order placement, before deliveryReport 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

  1. 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.
  2. Deduplication · Snap for Developers · Accessed Snapchat's identifier pairs, the 48-hour window, the auto-generated ID and exact-match requirement.
  3. Minimize duplicate key events with transaction IDs · Google Analytics Help · Accessed Deduplication of purchases by transaction ID and the warning against empty IDs.

Want this applied to your numbers?

Tell us how your business sells today and where the figures stop agreeing.

Start a conversation