Meta CAPI deduplication and event_id
KiteTrack sends each purchase to Meta twice on purpose: once from the visitor's browser (the Meta pixel) and once from your tracking server (the Conversions API). If one copy is blocked, the other still arrives. Meta then has to count the two copies as one purchase. That is called deduplication, and it depends on one shared value: the event ID.
How Meta counts a purchase once
Meta treats a browser event and a server event as the same event when both carry:
- the same event name, such as
Purchase, and - the same event ID. The pixel calls it
eventID. The Conversions API calls itevent_id. The value must be identical.
Both copies must reach the same pixel, and they must arrive within 48 hours of the first copy Meta received with that event ID. Meta then keeps one copy and drops the other.
Meta calls this the event ID method and recommends it. It also has a fallback that matches on the browser ID (fbp) or an external ID, but that fallback only works when the browser event arrives first. Your KiteTrack files use the event ID method.
When it goes wrong: if the two copies carry different event IDs, or one has none, Meta has no way to pair them. It counts both, and your purchases look doubled.
How your KiteTrack files share one event ID
Your web and server files pass one ID along the whole way. In most setups the tag names start with [KiteTrack].
- In your web container, the Unique Event ID variable creates one ID for each event on the page, such as one purchase.
- The Meta tag in your web container ([KiteTrack] Meta - Purchase) gives that ID to the pixel as its event ID.
- The data tag in your web container ([KiteTrack] DT - purchase) sends the same event to your tracking server, with the same ID in a field called
event_id. - The Meta tag in your server container ([KiteTrack] Meta - Purchase) reads
event_idand sends it to the Conversions API.
The pixel event and the server event now share one ID, so Meta counts the purchase once. The same chain runs for page views, product views, add to cart, checkout steps and search. On a lead gen setup it runs for your lead events. TikTok works the same way with your TikTok tags.
You can see the ID in KiteTrack. Open Events, click a purchase, and look at Event ID in Event detail.
Check deduplication in Events Manager
Overview
- In Meta Events Manager, open your pixel.
- On Overview, find the Purchase event and open its details.
- Go to the Event deduplication tab.
Meta shows two things there. The rate of events deduplicated for each source (browser and server) is the share of events Meta matched and counted once. Higher is better, and Meta shows a warning when it is too low. The rate of deduplication key usage shows how many events from each source carry an event ID, and how many IDs Meta received from both sources.
New events can take up to about 20 minutes to show in Events Manager. Judge the rates after a day of normal traffic, not after one test order.
Test events
The Test events tab shows events live, and Meta says it shows whether they are deduplicated correctly.
- Follow section 6 of Test your tracking setup: copy the test code, paste it into the Test ID field of the Meta purchase tag in your server container, and run Preview.
- Place a test order.
- The Purchase should arrive from the browser and from the server. When the two share an event ID, Test events shows them as deduplicated.
- Clear the Test ID field before you publish. Meta says the test code is for testing only.
In Google Tag Manager Preview
To compare the IDs yourself, place a test order with both previews running. In the web preview, open the Meta purchase tag and note its event ID. In the server preview, open the incoming purchase request and find event_id. The two values should be the same.
Common causes of double counting
A second pixel or app sends purchases to Meta. Meta's Facebook & Instagram app on Shopify, a pixel app, a plugin or pixel code in your theme sends its own copy of each purchase with its own event ID. Meta cannot pair it with yours, so it counts the purchase again.
A custom website pushes its own pixel. Your web file brings the Meta pixel with it. Any other fbq pixel code on your site, added by hand, by a developer or by a plugin, sends a second Purchase with a different ID, or with none.
A tag lost its event ID. If someone edited the Meta tag in either container and cleared the event ID field, or added a Meta tag of their own, one side sends no event ID. Meta then counts both copies.
The event names differ. The browser sends Purchase and the server sends a custom name, or the other way round. Both copies need the same event name.
Old tags stayed in your containers. Files imported without Overwrite conflicting can leave a second Meta purchase tag in place, which sends another copy with another ID.
Fix
- Make KiteTrack the only source of Meta purchases. Turn off purchase tracking in other apps, and remove other pixel code from your theme or site.
- Check that each container has one Meta purchase tag. When you import again, use Merge → Overwrite conflicting.
- Do not edit the event ID fields in your tags. If they were changed, import your files again.
- Place a test order and check Test events or the GTM previews as above.
- After a day of normal traffic, check the Event deduplication tab again.
Where to look in KiteTrack
- Events → a purchase → Event detail: the Event ID your browser tag and server share.
- Tracking quality → Orders across platforms, Issue set to Duplicates. Sent twice to Meta means your tracking server sent that order twice. Possible retry is a copy sent within 5 minutes of the first, with the same value, and is not counted as a duplicate.
- KiteTrack sees only what passes through your tracking server. If KiteTrack shows an order once but Meta shows it twice, the second copy comes from another app or pixel.
What success looks like
- In Test events, your test Purchase arrives from the browser and the server, and Meta counts it once.
- The Event deduplication tab for Purchase shows a high rate for both sources, with no warning.
- In Events, each purchase has one Event ID, and Orders across platforms shows no Sent twice to Meta rows.
- Meta's purchase count sits close to your store's order count, not above it.
Still doubled? See Fix missing or duplicate purchases, or ask in Help & chat.