TikTok Pixel vs Events API: The Differences, ttclid, and Why to Run Both
TikTok gives you two ways to report conversions: the Pixel in the browser and the Events API from your server. This comparison explains what each one sees, why the ttclid click ID matters so much on TikTok, and how to combine them so every conversion is counted once.
In short
The TikTok Pixel is browser JavaScript that records events and sets the _ttp cookie, but ad blockers, consent choices and in-app browsers limit it. The Events API sends the same events from your server, so they arrive regardless. Run both, pass the ttclid click ID and _ttp to the server events, and share an event_id so TikTok deduplicates.
TikTok Ads Manager shows fewer purchases than your store, the cost per result keeps creeping up, and someone has told you to add the Events API. Before you do, it helps to understand what the TikTok Pixel and the Events API each see, where each one fails, and why the click ID ttclid matters more on TikTok than most people expect. This article compares the two. For the step-by-step build, see our TikTok Events API setup guide.
What the TikTok Pixel does
The Pixel is a JavaScript snippet on your site. It fires a page view when a page loads and the events you configure, such as ViewContent, AddToCart or CompletePayment, when they happen. With first-party cookies enabled it sets _ttp, a first-party cookie on your domain that TikTok describes as a unique identifier limited to the advertiser's domain. It also reads the ttclid from the landing URL. Because everything happens in the visitor's browser, it is easy to install and sees every click and scroll, but it only works when the script loads and is allowed to run.
What the Events API does
The Events API is an HTTP endpoint. Your server, or a service acting for it, sends each event as JSON with the event name, time, page URL, hashed customer data such as email and phone, the ttclid and _ttp values if you captured them, and properties like value and currency. Nothing in the browser can block that request. It also lets you send events the browser never sees, such as a subscription renewal or an order confirmed after a payment provider callback.
Side by side
| TikTok Pixel (browser) | Events API (server) | |
|---|---|---|
| Where it runs | Visitor's browser | Your server or a server-side service |
| Blocked by ad blockers | Often | No |
| Affected by consent choices | Yes, it should not fire without consent where consent is required | Yes, you must apply the same consent rules before sending |
| ttclid and _ttp | Read and set automatically | Only if you capture and forward them |
| Hashed email and phone | Through advanced matching | Sent with each event |
| Events after the visit | No | Yes |
| Setup effort | Minutes | Hours to days, depending on method |
Signs the Pixel alone is not enough
- TikTok reports noticeably fewer purchases or leads than your store or CRM for the same campaigns and dates, even after allowing for attribution window differences.
- Your audience skews towards iPhone users or privacy-conscious segments, where scripts and cookies are most often restricted.
- Important conversions happen after the visit: a lead qualified by sales, a payment confirmed by a provider callback, or a subscription that renews.
- Checkout runs on a separate domain or a hosted payment page where you cannot place the Pixel.
- Events Manager shows warnings about low match quality or missing customer information parameters.
If none of these apply and the numbers line up, the Pixel may be serving you well for now. If one or more do, the Events API is the fix, and TikTok's own deduplication guidance assumes you will run it alongside the Pixel rather than instead of it. Before you build anything, measure the gap for a fortnight: count orders or qualified leads in your own system that came from TikTok by UTM, and compare with what Ads Manager reports for the same dates. That baseline tells you later whether the server events made a difference.
Why ttclid matters so much on TikTok
TikTok's help centre describes ttclid as a tracking parameter added to the landing page URL when someone clicks a TikTok ad, and says TikTok matches the click ID to actions on TikTok. It is the most direct way to tie a conversion back to a specific ad click. TikTok also says the click ID follows the click-through attribution window set in Attribution Manager, so it stays useful for as long as your window allows.
The catch is that the ttclid is only on the first URL. If your site redirects without the query string, if the visitor lands on one page and buys on another, or if your server events do not include it, the strongest match signal is gone. Capturing it on arrival and keeping it with the visitor until conversion is the single most valuable thing you can do for TikTok measurement. Tag your links with UTMs as well, so your own analytics know the source; UTM parameters for TikTok ads explains TikTok's URL macros.
The in-app browser problem
Most TikTok ad clicks open in TikTok's own in-app browser. Cookies set there are separate from the visitor's main browser, so a person who browses in the app and later buys in Safari or Chrome looks like two different people to the Pixel. A server-side event that carries the hashed email from the purchase, plus the ttclid and _ttp stored from the original visit when they are the same session, gives TikTok far more to match on. Our guide to in-app browsers and tracking covers the wider issue across social platforms.
Why you should run both
Dropping the Pixel and going server-only is tempting, but you lose browser signals that improve matching and the engagement events that feed audiences and optimisation. Dropping the Events API leaves you exposed to everything that stops scripts in the browser, which how ad blockers work explains in detail. The robust setup is the same one Meta recommends for its Pixel and Conversions API, compared in Facebook Pixel vs Conversions API: both channels send the important events, and deduplication merges the overlap.
Deduplication in one paragraph
TikTok's help centre says deduplication requires the same event name and the same event_id from both the Pixel and the Events API. Events with matching values that arrive within a few minutes of each other are merged, and later duplicates are dropped within a 48-hour window from the first event, according to TikTok's documentation at the time of writing. Generate the event_id once, for example from the order ID, and use it in both places. If you send different events through each channel, such as AddToCart through the Pixel and CompletePayment only through the server, there is nothing to deduplicate.
A quick checklist
- 1Install the Pixel with first-party cookies enabled and confirm it fires on key pages.
- 2Read ttclid and _ttp on landing and store them with the visitor.
- 3Send purchases and leads through the Events API with hashed email and phone, ttclid, _ttp, IP address and user agent where your consent setup allows.
- 4Use the same event name and event_id in both channels for every event you send twice.
- 5In Events Manager, check that both browser and server events arrive and that no duplicate warnings appear.
How EndFrame handles TikTok
TikTok is one of EndFrame's native server-side destinations. The first-party tracker captures ttclid, UTMs and form data on your domain, stores them against the visitor, and sends each conversion to the TikTok Events API with SHA-256 hashed identifiers and a shared event ID for deduplication with your Pixel. You can check what a page's tags are actually sending with the free pixel inspector.
Frequently asked questions
Can I use the TikTok Events API without the Pixel?
Yes, the Events API works on its own and some advertisers run server-only setups. You lose the browser signals the Pixel collects, such as the _ttp cookie and page-level engagement events, so matching and audience building are usually weaker than with both running together.
Where does the ttclid come from?
TikTok appends ttclid to your landing page URL when someone clicks one of your ads. Your site has to read it on arrival and keep it, because it is not on the URL of later pages such as the checkout or thank-you page.
Why does TikTok report more conversions after adding the Events API?
Usually because conversions the Pixel could not record, for example from visitors with ad blockers, now reach TikTok from your server. If the jump is close to double, check deduplication first: mismatched event_id values make TikTok count the same purchase twice.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required