Skip to content
FunnelGuard

Fix guide by FunnelsGuard

TikTok Events API event_id mismatch: how to find and fix it

TRK-206Medium impactCould addBy FunnelGuardPublished Updated
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.

How a mismatch creates a double count
  1. Visitor convertsForm sent or order placed
  2. Pixel sends eventevent_id = abc123
  3. Server sends eventevent_id = 98f7e (different)
  4. TikTok dedupNo match found
  5. 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.

Reported vs real conversionsExample numbers
Reported vs real conversions (example)Real orders: 100 conversions; TikTok, IDs match: 100 conversions; TikTok, IDs mismatch: 190 conversions073146100100190Real ordersTikTok, IDs matchTikTok, IDs mismatchconversions

Example: 100 real orders, reported by TikTok with and without matching event_id values.

How to check if your site has it

Compare the IDs on both sides
  1. 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.

  2. 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.

  3. Inspect the browser hit

    In Chrome DevTools, open the Network tab, filter for tiktok, trigger the conversion and open the request. Find event_id in the payload.

  4. Inspect the server payload

    Check your server logs or your tag server's debug view for the Events API request. Confirm event_id is present and identical to the browser value.

  5. 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.

Signs of a mismatch
  • 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.

Fix by platform
  1. 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.

  2. 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.

Browser: send event_id with the Pixeljavascript
// orderId comes from your server, rendered into the page
ttq.track('CompletePayment', {
  value: 49.00,
  currency: 'USD'
}, {
  event_id: 'order_10234'
});
Server: Events API body using the same event_idjson
{
  "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

Verify dedup
  1. Run a test conversion

    Complete one conversion with Test Events open in TikTok Events Manager.

  2. Compare IDs

    Confirm the Browser and Server entries show the same event_id and event name.

  3. Check Diagnostics

    Open Diagnostics and confirm the duplicate or missing ID warnings clear.

  4. Compare totals

    After a few days, check that TikTok's conversion count is close to your CRM or shop orders.

Before and after

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

Habits that keep dedup working
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.