On this page
What this issue is
Many setups send each TikTok conversion twice on purpose: once from the visitor's browser (the TikTok Pixel) and once from your server (the Events API). This gives TikTok a backup if the browser is blocked by an ad blocker or a privacy setting.
To avoid counting both as separate sales, TikTok matches them using the event name plus the event_id. If both match, it keeps one. If the event_id differs, is empty, or is generated twice with a new random value, TikTok sees two different conversions.
- Visitor convertsForm sent or order placed
- Pixel sends eventevent_id = abc123
- Server sends eventevent_id = 98f7e (different)
- TikTok dedupNo match found
- ReportingOne conversion counted as two
The browser and the server each invent their own ID, so TikTok cannot match them.
Why it costs you leads or sales
Inflated conversion counts make campaigns look cheaper than they are. You may raise budgets on ads that are not performing, and TikTok's optimisation learns from skewed data. Cost per result in TikTok Ads Manager will not match your CRM or shop orders.
The reverse can also happen: a wrong setup elsewhere can make you distrust good data and cut ads that work. Either way, decisions rest on numbers that do not reconcile.
Example: 100 real orders, reported by TikTok with and without matching event_id values.
How to check if your site has it
Open TikTok Events Manager
Go to Events Manager, pick your Pixel, and open the Diagnostics and Test Events tabs. Look for warnings about duplicate or missing event IDs, and see whether Browser and Server events are both listed.
Use Test Events
Enter your site URL in Test Events, or use your test event code for the server side, then complete a test conversion. Note the event_id shown for the Browser event and the Server event.
Inspect the browser hit
In Chrome DevTools, open the Network tab, filter for
tiktok, trigger the conversion and open the request. Findevent_idin the payload.Inspect the server payload
Check your server logs or your tag server's debug view for the Events API request. Confirm
event_idis present and identical to the browser value.Compare counts
Compare TikTok's reported conversions with your CRM or shop orders over a week. A ratio near 2:1 points to dedup failing.
- TikTok shows about double your real conversions
- Events Manager lists the same event from Browser and Server with different IDs
- event_id is empty or missing on one side
- event_id is a new random value on every request or page reload
- Event names differ between sides (for example SubmitForm vs Lead)
How to fix it
The rule is simple: create one ID per conversion, then pass that same value to the Pixel and to the Events API. Use something stable, such as the order number or a form submission ID. A random UUID created once at conversion time and shared also works.
Use the official TikTok channel
Install the TikTok app from the Shopify App Store and connect your Pixel with Events API enabled in its settings. The app is designed to send matching IDs for both sides.
Remove manual duplicates
Delete any hand-pasted TikTok Pixel code in theme.liquid or Customer events, which can send a second set of events with different IDs.
Use one integration for both sides
If you use a plugin or WooCommerce extension that offers both Pixel and Events API, enable both inside that same plugin so it shares IDs.
Remove second Pixel sources
Disable any extra Pixel snippet from a theme option, header plugin or GTM tag that fires the same events.
Create an ID variable
Push an ID into the data layer at conversion, for example the order ID, and read it with a Data Layer Variable.
Pass it to the Pixel tag
In your TikTok event tag, set the event ID field to that variable.
Pass the same ID to the server
If you use a server container, forward the same value as event_id in the Events API request. Do not generate a new one in the server container.
Generate the ID once
Create the ID on the server when the conversion is saved and render it into the thank-you page.
Send it in both calls
Pass it as the third argument to ttq.track in the browser and as event_id in the Events API body. See the code below.
// orderId comes from your server, rendered into the page
ttq.track('CompletePayment', {
value: 49.00,
currency: 'USD'
}, {
event_id: 'order_10234'
});{
"event_source": "web",
"event_source_id": "YOUR_PIXEL_CODE",
"data": [{
"event": "CompletePayment",
"event_time": 1735689600,
"event_id": "order_10234",
"properties": { "value": 49.00, "currency": "USD" }
}]
}How to confirm it's fixed
Run a test conversion
Complete one conversion with Test Events open in TikTok Events Manager.
Compare IDs
Confirm the Browser and Server entries show the same event_id and event name.
Check Diagnostics
Open Diagnostics and confirm the duplicate or missing ID warnings clear.
Compare totals
After a few days, check that TikTok's conversion count is close to your CRM or shop orders.
Mismatch
- Pixel sends event_id abc123
- Server sends a different ID
- TikTok counts two conversions
Matched
- Both send order_10234
- TikTok merges them into one
- Counts line up with your orders
How to prevent it happening again
- Generate the ID once per conversion, never per request
- Keep one owner for the TikTok setup, either a single plugin or a single GTM container
- Re-run Test Events after theme, plugin or GTM changes
- Compare TikTok conversions with CRM or order counts monthly
- Document the event names and ID source in your tracking notes
How FunnelGuard handles this
FunnelGuard does not check this yet. Comparing Pixel and Events API event_id values is a possible future check, but it is not something the service does today.
What FunnelGuard does do nearby: a robot visitor runs your real lead form or checkout journey on a schedule and checks the tracking hits sent to platforms such as TikTok, so you can see whether the browser-side event fires at all after a site change. It also checks that test leads reach your inbox and CRM, which gives you a real count to compare against.
To watch for an event_id mismatch yourself, use TikTok Events Manager Diagnostics and Test Events after every change, and compare TikTok's monthly conversions with your CRM or shop orders. A free plan with one site and two journeys is available, and a free read-only audit is also offered.
Questions people ask
Why is TikTok counting my conversions twice?
Most often the Pixel and the Events API both send the conversion, but with different or missing event_id values. TikTok can only merge them when the event name and event_id match. Make both sides send the same ID.
How does TikTok deduplicate Pixel and Events API events?
TikTok matches the browser and server events by event name and event_id. If both match within its dedup window, it keeps one event. If they do not, both are counted.
What should I use as the TikTok event_id?
Use a value unique to the conversion and stable across both sends, such as the order number or a form submission ID. A UUID created once at conversion time and passed to both sides also works. Do not generate a new random value on each request.
How do I check event_id in TikTok Events Manager?
Open Events Manager, choose your Pixel, and use Test Events while you complete a test conversion. Compare the event_id on the Browser and Server entries. Diagnostics will also warn about duplicate or missing IDs.
Do I need the Events API if I already have the TikTok Pixel?
No, the Pixel alone works, but the Events API adds a server-side backup when browsers block the Pixel. If you use both, you must set matching event_id values so events are not double counted.
Can GTM send the same event_id to the Pixel and the server?
Yes. Put the ID in the data layer, read it with a variable, and use it in both the web Pixel tag and the request forwarded to your server container. Do not create a new ID inside the server container.
Does FunnelGuard detect a TikTok event_id mismatch?
No. FunnelGuard does not check this yet. It can check that TikTok tracking hits fire on your real journeys, but you need TikTok Events Manager to compare event IDs.
Related issues
- TRK-204TikTok event fires twiceFix guide
- TRK-203TikTok SubmitForm / CompletePayment missing on conversionFix guide
- TRK-201TikTok Pixel missingFix guide
- TRK-207TikTok value/currency missing on CompletePaymentFix guide
- TRK-205ttclid not stored / _ttp cookie missingFix guide
- TRK-202TikTok wrong pixel codeFix guide