> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Events API

> Send conversion events to TikTok via the Events API for campaign optimization, audience building, and attribution — powered by Upstack Signal.

> [!NOTE]
>
> **Data direction:** This is a **destination** — Upstack sends event and conversion data **out** to this platform via server-side APIs.

## What it does

TikTok's Events API is the server-side counterpart to the TikTok Pixel. Upstack Signal forwards storefront events — page views, product views, add-to-carts, checkouts, and purchases — directly to TikTok's servers, bypassing browser restrictions like ad blockers, ITP, and cookie limits.

Server-side delivery gives TikTok's algorithm a fuller picture of the conversions your ads actually drove, which improves campaign optimization, audience modeling, and attribution accuracy. Match rates from server-side events are consistently higher than browser-only tracking because each event carries hashed customer data and the `ttclid` click identifier when available.

> [!NOTE]
>
> Unlike Meta and Google Ads, TikTok uses **token-based auth** instead of OAuth. You'll paste a Pixel ID and an Events API access token into the Upstack destination — there is no OAuth handshake to step through.

## How it works

Upstack runs as a dual-tracking layer alongside the TikTok Pixel. The Upstack Pixel captures events in the browser and forwards each event to Upstack's edge infrastructure, where it is hashed, enriched with identity and click-ID data, and sent to the TikTok Events API as a server-side event with a shared `event_id`.

TikTok deduplicates server events against matching browser Pixel events using that `event_id`, so you do not double-count conversions as long as both sources use the same Pixel ID. PII (`email`, `phone`, `external_id`) is hashed with SHA-256 before delivery, as required by the Events API.

## Setup guides

> [card] [Onboarding guide](https://docs.upstackdata.com/destinations/catalog/tiktok/complete-how-to-guide-for-onboarding-tiktok-ads-in-upstack-data.md)
>
> End-to-end walkthrough for connecting TikTok to Upstack Data.

> [card] [Configure pixel destination](https://docs.upstackdata.com/destinations/catalog/tiktok/how-to-configure-tiktok-ads-pixel-destination-in-upstack-data.md)
>
> Configure the TikTok Pixel destination inside Upstack Data.

> [card] [Find Pixel ID](https://docs.upstackdata.com/destinations/catalog/tiktok/how-to-find-your-tiktok-ads-pixel-id.md)
>
> Locate your existing TikTok Pixel ID in Events Manager.

> [card] [Create Pixel ID](https://docs.upstackdata.com/destinations/catalog/tiktok/how-to-create-new-tiktok-ads-pixel-id.md)
>
> Create a new TikTok Pixel for your store.

> [card] [Generate API token](https://docs.upstackdata.com/destinations/catalog/tiktok/how-to-generate-your-tiktok-api-access-token.md)
>
> Generate the Events API access token Upstack uses to send events.

> [card] [Disable Shopify TikTok data sharing](https://docs.upstackdata.com/destinations/catalog/tiktok/how-to-disable-tiktok-data-sharing-in-shopify.md)
>
> Turn off Shopify's native TikTok integration to prevent duplicate events.

## Event mapping

Upstack maps storefront events to TikTok standard events automatically:

| Upstack event | TikTok event | Key parameters | Notes |
| - | - | - | - |
| `PageView` | `Pageview` | `url`, `referrer` | Every page load |
| `ViewContent` | `ViewContent` | `content_id`, `content_type`, `value`, `currency` | Product page views |
| `AddToCart` | `AddToCart` | `content_id`, `content_type`, `value`, `currency` | Cart additions with product details |
| `InitiateCheckout` | `InitiateCheckout` | `value`, `currency`, `quantity` | Checkout started |
| `Purchase` | `Purchase` | `content_id`, `value`, `currency`, `order_id` | Completed orders with revenue |

Every event includes user data parameters (`email`, `phone`, `external_id`) when available, hashed with SHA-256. TikTok click IDs (`ttclid`) captured by the Upstack Pixel are included for deterministic matching.

## FAQ

> [accordion] How do I know events are reaching TikTok?
>
> Open TikTok Events Manager, select your Pixel, and check the **Overview** and **Test Events** tabs. Server-side events appear with a "Server" source badge. Upstack starts sending events as soon as you save the destination; TikTok may take a little longer to show them in its own reporting. Upstack also surfaces delivery status inside the destination settings.

> [accordion] Will I see duplicate conversions if I run both the TikTok Pixel and the Events API?
>
> No — as long as the Pixel ID in Upstack matches the Pixel ID firing in your storefront's TikTok browser Pixel (`ttq.load`). Upstack sends a shared `event_id` on every server-side event, and TikTok's deduplication logic matches events by `event_id` and keeps only one. If you see duplicates, the Pixel IDs almost always differ between the two sources.

> [accordion] What if my event match rate is low?
>
> TikTok's match rate depends on how much identity data each event carries. Common causes of low match quality:
>
> * **Missing `ttclid`** — TikTok ads should link directly to your storefront so the click ID lands in the URL and is captured by the Upstack Pixel.
> * **Anonymous visitors** — events from visitors without email or phone have fewer keys to match against. Match rates improve as more identified customers convert.
> * **Missing checkout fields** — make sure your Shopify checkout collects email and phone; both are strong server-side match keys.

> [accordion] Do I need to disable Shopify's native TikTok integration?
>
> Yes — if Shopify is also sending events to the same TikTok Pixel, you'll see duplicates that TikTok cannot deduplicate (Shopify does not emit a matching `event_id`). Follow the guide above to disable TikTok data sharing in Shopify before activating Upstack's TikTok destination.

> [accordion] Can I send only specific event types to TikTok?
>
> Yes. Each destination supports event filtering — you can choose to forward only purchases, only standard events, or any custom subset. Excluded events are dropped at the Upstack level and are not retried.

## Advanced configuration

> [accordion] TikTok Shop orders
>
> If you sell through TikTok Shop, those orders flow into Shopify as fulfilled orders. Upstack processes them like any other Shopify order, which means they get sent to all your active destinations — including Meta.
>
> **Should you exclude TikTok Shop orders from other destinations?**
>
> Upstack gives you the option via **Settings → Order Source Exclusions**, where you can block orders by source. However, sending TikTok Shop orders to Meta is generally beneficial — more conversion data helps Meta's algorithm find similar high-value customers, regardless of where the original purchase happened.
>
> If you still want to exclude them:
>
> 1. Go to **Upstack → Settings → Order Source Exclusions**.
> 2. Add TikTok Shop as a blocked source.
> 3. Orders originating from TikTok Shop will no longer fire to other destinations.

## Troubleshooting

> [accordion] Events not appearing in TikTok Events Manager
>
> If events aren't appearing after 10 minutes of confirmed store traffic, check the basics first.
>
> **Steps to fix:**
>
> 1. Go to **Integrations → Destinations → TikTok**
> 2. Verify the **Pixel ID** and **Access Token** are correct (no extra spaces or truncated characters)
> 3. Confirm the destination status is **Healthy**
> 4. If the token was revoked or expired, generate a new one in TikTok Business Center and update the destination

> [accordion] Duplicate conversions in TikTok
>
> If you see inflated conversion counts, another TikTok event source is likely still active.
>
> **Steps to fix:**
>
> 1. Check for the TikTok Shopify sales channel — disable its data sharing / pixel component
> 2. Look for third-party pixel apps (Omega, Mega TikTok Pixel) and uninstall them
> 3. Inspect your theme code for manual TikTok pixel snippets in the `<head>` section
> 4. After removing duplicate sources, monitor TikTok Events Manager for 24 hours to confirm counts normalize

> [accordion] Low match quality scores
>
> TikTok's match quality measures how well server events match to TikTok users.
>
> **Common causes:**
>
> * **High anonymous traffic** — Events from visitors who haven't logged in or provided contact info have fewer matching parameters. Match quality improves as more identified customers generate events.
> * **Incorrect pixel ID** — If the pixel ID doesn't match the one associated with your ad account, events arrive but can't be matched to campaign data.
>
> Match quality improves over time as Upstack's identity resolution builds visitor profiles.

> [!NOTE]
>
> For additional troubleshooting beyond TikTok-specific issues, see [Troubleshooting: Events Not Reaching Destination](https://docs.upstackdata.com/troubleshooting/destination-token-expired-or-auth-error.md).

## Related

> [card] [Identity resolution](https://docs.upstackdata.com/pixel/identity-resolution.md)
>
> How Upstack matches anonymous visitors to known customers for higher match rates.

> [card] [Meta CAPI destination](https://docs.upstackdata.com/destinations/catalog/meta-capi.md)
>
> Set up Meta's Conversions API as another server-side destination alongside TikTok.

> [card] [Events not reaching destination](https://docs.upstackdata.com/troubleshooting/destination-token-expired-or-auth-error.md)
>
> End-to-end diagnostic guide when events aren't arriving at any destination.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.