Key takeaways
- TikTok recommends running the Events API together with your existing Pixel, not instead of it.
- Deduplication needs pixel ID, event name and event_id to match across Pixel and Events API.
- TikTok records the first event received and deduplicates matching copies within 48 hours of it.
- Purchase is TikTok's standard event for a completed order; send value, currency and content_ids with it.
Pixel, Events API, and why you want both
The TikTok Pixel runs in the shopper's browser and sees what happens on the page, with the browser's cookies and the ttclid from the ad click. It also loses events to ad blockers, in-app browser quirks and shoppers who close the tab before the confirmation loads. The Events API is a server-to-server connection: your backend tells TikTok an event happened. TikTok's help center describes it as a reliable connection between TikTok and an advertiser's marketing data and, for websites, recommends having an Events API integration with your existing Pixel integration.
Running both means each purchase reaches TikTok twice. That's intended: the server copy fills the gaps when the browser copy is lost, and the browser copy brings cookie and page context the server may lack. The cost is that you now have two senders to keep in sync, so ID and naming discipline matter. Event deduplication is what keeps the count honest.
How TikTok deduplicates
- What TikTok's help center says
- Share event_id through both Pixel and Events API, with matching event names, for the same pixel
- What TikTok's help center says
- Pixel-only or Events API-only copies with the same event and event_id are deduplicated within 48 hours of the first
- What TikTok's help center says
- Pixel and Events API copies with matching event and event_id are deduplicated within a 48-hour window from the first event
- What TikTok's help center says
- The first event received is recorded for measurement and reporting
| Rule | What TikTok's help center says |
|---|---|
| Matching keys | Share event_id through both Pixel and Events API, with matching event names, for the same pixel |
| Same-channel duplicates | Pixel-only or Events API-only copies with the same event and event_id are deduplicated within 48 hours of the first |
| Cross-channel duplicates | Pixel and Events API copies with matching event and event_id are deduplicated within a 48-hour window from the first event |
| Which copy counts | The first event received is recorded for measurement and reporting |
The practical consequence is the same as for Meta: generate one ID per real event and pass that exact string to both the browser call and the server call. The Meta version of these rules is in Meta CAPI deduplication.
Browser: ttq.track('Purchase', { value: 84.00, currency: 'USD', content_ids: ['SKU-COAT-M'] },
{ event_id: 'purchase-10482' })
Server: event: 'Purchase', event_id: 'purchase-10482', same pixel, same value and currency
Result: one Purchase counted; the second copy is deduplicatedWhich events to send at checkout
- TikTok standard event
- InitiateCheckout
- Send with it
- value and currency of the cart, content_ids
- TikTok standard event
- AddPaymentInfo
- Send with it
- value, currency
- TikTok standard event
- Purchase
- Send with it
- value, currency, content_ids, content_type, quantity
- TikTok standard event
- Purchase (its own event_id)
- Send with it
- value and currency of the upsell only
| Moment | TikTok standard event | Send with it |
|---|---|---|
| Shopper reaches checkout | InitiateCheckout | value and currency of the cart, content_ids |
| Shopper enters or chooses payment | AddPaymentInfo | value, currency |
| Payment confirmed | Purchase | value, currency, content_ids, content_type, quantity |
| One-click upsell accepted | Purchase (its own event_id) | value and currency of the upsell only |
Older setups and some platform integrations use CompletePayment for completed purchases; TikTok's Shopify integration page still lists it. Pick one event name for completed orders and use it consistently in both Pixel and Events API, or deduplication won't match and your optimization event will be split.
Match quality: what to send about the shopper
Server events don't carry the browser's context automatically, so you send identifiers that let TikTok match the event to a person: the ttclid captured from the landing URL, the _ttp cookie value, IP address and user agent, and customer details such as email and phone. TikTok's developer documentation specifies which fields go in which format and which must be hashed before sending; follow the current field list there rather than copying a blog example, because field names and requirements have changed between API versions.
- Capture ttclid on landing and keep it until checkout, including across a domain change.
- Normalize email (trim, lowercase) and phone (digits with country code) before hashing, per TikTok's docs.
- Send IP and user agent from the shopper's request, not from your server.
- Send the event close to when it happened. Batching purchases for hours weakens matching and attribution.
Rolling it out without breaking reporting
- Audit what already sends to your pixel: the Shopify TikTok app, theme snippets, tag managers, a payment provider's integration. List each event and its sender.
- Decide the single sender for each checkout event, and remove or disable the others for those events.
- Add Events API calls for the same events, using the same event_id as the Pixel call.
- Complete a test order and use Events Manager's test tools to confirm one browser and one server copy arrive with the same event_id.
- Watch daily Purchase counts against store orders for a week before you change campaigns' optimization events.
- Only then switch campaigns to optimize on the deduplicated event, so the algorithm doesn't learn from a double-counted signal.
Consent and the Events API
Sending from the server doesn't remove the need for consent where the law requires it. In the EU and UK, if a shopper declines marketing cookies, the safe approach is to send neither the browser nor the server event with their identifiers for advertising purposes. Server-side tracking makes events more complete for shoppers who did consent; it isn't a way around a refusal.
Common mistakes
- Different event_id on each side, so every purchase counts twice.
- Different event names, such as Purchase in the browser and CompletePayment on the server.
- Sending to two pixels by accident, for example an old pixel left in the theme.
- No value or currency on Purchase, which makes value-based reporting and optimization meaningless.
- Server events without ttclid, so purchases from TikTok ads can't be tied to the click.
- The Shopify TikTok app and a custom setup both firing, with independent IDs.
A worked check
Hypothetical day: 50 orders from all sources; store shows 18 with a ttclid stored on the order TikTok Events Manager Purchase count: 36 36 is about 2x the 18 TikTok-click orders -> suspect missing deduplication Check: do Pixel and server copies of order 10482 share the same event_id?
TikTok's own counts include view-through and attribution-window effects, so they won't equal your stored click count exactly. A clean 2x pattern, though, is the signature of duplicate events. Check a handful of orders in Events Manager's diagnostics.
When your checkout is outside Shopify
If shoppers pay outside Shopify's checkout, the TikTok app in your Shopify store won't see InitiateCheckout or Purchase. Something else has to send them: the payment provider's integration or the checkout itself. In NoHold Checkout's "NoHold sends everything" mode, NoHold sends TikTok Pixel plus Events API events from the checkout, deduplicated with shared event IDs, with a cookie consent banner. In the default "Shopify + Whop" mode, the Purchase comes from Whop's own pixel integration instead. More in tracking with a custom checkout, and the GA4 side in GA4 checkout events.
Frequently asked questions
Do I need the TikTok Events API if I already have the Pixel?
TikTok recommends it. Its help center suggests adding an Events API integration to your existing Pixel for website connections, because server events aren't affected by ad blockers or closed tabs. Run both with event deduplication so each conversion is counted once.
How does TikTok deduplicate Pixel and Events API events?
You send the same event name and the same event_id through both the Pixel and the Events API for the same pixel. TikTok records the first event it receives and deduplicates matching copies that arrive within a 48-hour window from that first event, according to its help center.
Should I use Purchase or CompletePayment on TikTok?
TikTok's standard events article lists Purchase and recommends it when placing an order and paying happen in the same step, which is the case for most stores. Some older setups and integrations use CompletePayment. Whichever you choose, use the same name in both Pixel and Events API.
What should the event_id be for a TikTok purchase?
Any string that is unique to that real purchase and identical in the browser and server copies. Many stores derive it from the order number, with a prefix per event type. Each accepted post-purchase upsell is a separate purchase and needs its own event_id.