TikTok Pixel and Events API Deduplication: Track Purchases Without Double Counting (2026)
Short answer: if your website sends the same conversion through TikTok Pixel and TikTok Events API, both copies need the same event name and the same event_id. TikTok uses those matching details, along with the Pixel or event source ID, to recognise one real action instead of counting two purchases. A different ID on the browser and server can turn one order into two reported conversions.
This matters for Shopify and WooCommerce stores that use a partner integration, Google Tag Manager or a custom server connection. Pixel and Events API can improve the coverage of website events, but only when the two paths are planned together. This guide explains the matching rules, setup checks and common tracking mistakes.
What TikTok Pixel and Events API each do
TikTok Pixel is a browser-side code connection. It sends website actions such as product views, add-to-cart events and purchases from the visitor's browser. It is useful for measuring activity on the site and connecting ad interactions with later website actions.
TikTok Events API sends events from a server or another controlled system. It can provide a second route for website events and can also support app, offline and CRM event sources. A server connection can help when a browser event is not available, but it does not remove the need to define accurate events or respect data rules.
TikTok recommends using Pixel and Events API together for web measurement. Its current documentation recommends Events API 2.0 for new integrations. The goal is not to send every event twice without a plan. The goal is to create reliable coverage and then deduplicate the copies that describe the same action.
When TikTok Pixel and Events API need deduplication
Deduplication is required when the same event is shared through both connections. For example, if a customer completes checkout and the browser Pixel sends a Purchase event while your server also sends a Purchase event for that order, TikTok needs a way to recognise the pair.
It is not required when the two connections send different event types with no overlap. TikTok gives the example of sending AddToCart through Pixel and Purchase through Events API. That is a different measurement design from sending the same Purchase event through both routes.
Before installation, list every event and decide which system sends it. Mark events that are sent by both browser and server. Those are the events that need matching identifiers and a test plan.
How TikTok event deduplication works
TikTok's documentation identifies the event name and event_id as the matching details for duplicate events. For Events API web events, the event source ID also matters. When the source is web, that ID is the Pixel Code connected to the website.
- Same event name: the browser and server copies must describe the same standard event, such as
PurchaseorAddToCart. - Same event_id: both copies must carry the same unique identifier for that one action.
- Same event source: the server event must use the correct Pixel Code as its web event source ID.
TikTok says it deduplicates identical Pixel events and identical Events API events when they arrive within a 48-hour window from the first event. For an overlapping Pixel and Events API event, its help article describes merging or deduplication when the matching copy arrives after five minutes and within 48 hours of the first event. TikTok records the first event received for measurement and reporting, and may enrich it with the matching copy.
Do not treat the time window as a reason to delay events. Send events promptly. The matching fields should be correct before launch, not fixed after duplicate conversions appear in reports.
Plan your TikTok standard events before setup
Choose events that represent real steps in the customer journey. TikTok supports standard web events across Pixel and Events API. For an ecommerce store, a useful starting map is:
- ViewContent: a visitor views an important product or content page. Include product identifiers and relevant item details where appropriate.
- AddToCart: a visitor adds an item to the cart. Send the content ID, quantity, currency and value when available.
- InitiateCheckout: a visitor starts checkout. Fire it when the checkout process actually begins, not on every click to a cart page.
- Purchase: an order is successfully placed according to the conversion definition your business has chosen. Send the correct value and currency.
- CompleteRegistration or SubmitForm: use the appropriate standard event when a visitor completes a registration or lead form.
Keep event names consistent across browser and server. Use the parameters that describe the event, such as currency, value, content_ids, content_type, quantity and item details. Do not send sensitive personal information in event names or properties.
Set up TikTok Pixel and Events API on Shopify or WooCommerce
Start in TikTok Ads Manager and open Events Manager. Choose Connect Data Source, select Web, enter your website address and choose either a supported partner integration or a manual setup. TikTok lists Shopify and WooCommerce among the ecommerce partners that support Pixel and Events API. The exact screens depend on the integration and the version of the partner app.
For a partner integration, create or select the Pixel connected to the correct website and follow the partner's steps for enabling browser and server events. For a manual implementation, install the Pixel base code, configure the standard events and connect the server-side Events API integration. Events API 2.0 is the recommended endpoint for new integrations.
Check for duplicate browser installations before turning on the server connection. A Shopify app, theme code and Google Tag Manager container can all send the same browser event if they are configured independently. Keep one intentional browser implementation for each event, then add the server route and deduplication fields.
If you use WordPress, check the capabilities of the exact plugin or integration you plan to install. TikTok's partner list does not mean every WordPress plugin supports both Pixel and Events API. A server-side integration may need a separate supported connector or custom implementation.
Design event IDs that match on both sides
The event ID must identify one occurrence, not just a product or page. For a Purchase event, a unique order reference is often a practical source. For an AddToCart action, use a unique action ID because the same visitor can add the same product more than once. A product SKU alone is not unique enough to identify an individual cart action.
The browser and server must share the same value. If the browser creates one random ID and the server creates another, TikTok sees two different events. Generate the identifier once and pass it through the integration that handles the matching event. For a completed order, use the same order reference in the browser event and server event.
TikTok's API parameter documentation says the event ID can be hashed or unhashed. That does not make an email address or phone number a good event ID. Use a non-sensitive, opaque identifier that is unique to the action, and follow TikTok's data terms for any user matching information sent separately.
Test the integration before scaling campaign spend
Use TikTok Pixel Helper to check browser events. In Events Manager, use Test Events and the Diagnostics tab to review the data connection. Test the full path rather than only checking whether the base Pixel code appears on the homepage.
- Open a product page and confirm the expected ViewContent event fires once.
- Add a product to the cart and confirm AddToCart uses the correct item ID, value and currency.
- Start checkout and verify InitiateCheckout fires at the correct point.
- Place a test order and confirm the browser and server Purchase copies use the same event name and event_id.
- Refresh the confirmation page and check that the website does not create a second order event for the same order.
- Review Diagnostics for missing parameters, rejected events or other setup warnings.
Keep a simple test record with the order reference, event name, event ID, browser result and server result. If the event is missing, check the trigger and consent path. If it is duplicated, compare the IDs and event names before changing campaign settings.
Common TikTok tracking mistakes that create bad reports
- Different event IDs: the browser and server independently generate identifiers for the same order.
- Different event names: one route sends Purchase while another sends a different event name for the same conversion.
- Multiple Pixel installs: a partner app, theme code and tag manager all send the same browser event.
- Wrong Pixel Code: the server event is sent to a different source from the browser Pixel.
- Click-based purchases: the event fires when someone clicks a button, even if the order fails or payment is not completed.
- Missing item data: event names arrive, but product IDs, currency or value are missing or inconsistent.
Do not fix a measurement issue by changing bids or budgets first. Confirm the event implementation, then assess campaign performance with the corrected conversion data. For a broader paid social comparison, see the guide to TikTok Ads vs Meta Reels. The same discipline applies to other browser and server measurement systems, including the checks in our Meta Pixel measurement guide.
Pakistan ecommerce checks: COD, refunds and order quality
For a cash-on-delivery store, decide what the Purchase event represents. It might represent an order submitted successfully, not an order delivered and paid for. Those are different business outcomes. Do not quietly change the meaning of Purchase between campaigns or stores because the reports will no longer be comparable.
If the business needs to measure confirmed or fulfilled orders, keep that downstream status separate in the CRM or order system and use an appropriate supported offline or CRM event design. Do not send the same order as two separate Purchase conversions simply because its status changed. Document the event definition, currency, value and order status so the marketing team and sales or fulfilment team read the same numbers.
For more checks across store revenue and analytics, use the GA4 ecommerce tracking audit alongside TikTok Events Manager. One platform's event report should not be treated as a complete accounting record for orders, cancellations or refunds.
Sources and further reading
Frequently asked questions
Do I need event deduplication if I use only TikTok Pixel?
No. TikTok says deduplication is required when the same event is sent through both Pixel and Events API. If each connection sends different event types and there is no overlap, cross-channel deduplication is not required.
What should I use as the TikTok event_id for a Purchase?
Use a stable, unique order reference or another opaque identifier for that specific purchase. The browser Pixel and server event must receive the same value. Do not create separate random IDs in each system or use a customer's email or phone number as the event ID.
How can I check whether TikTok is deduplicating events?
Use Test Events and Diagnostics in TikTok Events Manager, and use TikTok Pixel Helper for browser events. Trigger one test order and confirm the browser and server copies use the same event name and event_id, then review the received and deduplicated event details.
Need help checking your TikTok conversion tracking?
I can review your Pixel, Events API, event IDs and ecommerce conversion flow before you scale campaign spend.