Home › Blog · Tracking basics · 24 November 2026 · 6 min read

TikTok conversion tracking: the pixel and the Events API

How TikTok measures the sales your ads bring: the pixel, the Events API, the ttclid and deduplication. Setting it up, testing it, and the mistakes that lose conversions.

TikTok measures the sales your ads bring the way Meta does: a pixel in the browser, and an API that receives the same events from a server, the Events API. Together they give the algorithm enough conversions to optimise, even when the browser blocks part of the pixel. On TikTok, where many visits happen inside the app’s own browser, sending from both sides matters even more.

The three pieces of TikTok tracking

  • The TikTok pixel, a script in your pages that sends events from the browser and sets the _ttp cookie.
  • The Events API, which receives the same events from a server. It depends neither on blockers nor on browser cookies.
  • The ttclid, the ID added to the address when someone clicks a TikTok ad. Kept until the purchase, it lets TikTok tie the sale to the click.

The events to send

TikTok has its standard events, close to Meta’s: ViewContent, AddToCart, InitiateCheckout, AddPaymentInfo, Purchase (formerly CompletePayment), Lead, CompleteRegistration, Search and Contact. The purchase must carry its value and currency, or TikTok cannot compute the return. Our article on Meta standard events describes when each one should fire: the rules are the same.

Deduplication

When a purchase leaves from the pixel and from the Events API, TikTok has to understand it is one sale. For that, both sends carry the same event ID (event_id). Without it, every sale counts twice, and your campaigns look twice as profitable as they are.

Setting it up

  1. In TikTok Events Manager (TikTok Ads Manager › Tools › Events), create a web pixel for your site.
  2. Install the pixel and choose the events to track.
  3. Generate an access token for the Events API and connect server-side sending.
  4. Check that the browser and the server send the same event_id.

Testing

Events Manager has a Test events tab: open your site from the link it gives, go through it like a customer, and each event shows with its source (browser or server). The Diagnostics tab then reports missing parameters and duplicates.

Common mistakes

  • A lost ttclid after a redirect or a URL clean-up: the sale is no longer tied to the click.
  • A purchase without value: TikTok counts a conversion, but no revenue.
  • Two TikTok pixels, one installed by a shop app, the other by hand: every event leaves twice.
  • Consent ignored: in the European Economic Area, the pixel must only load after the visitor agrees. See Consent Mode v2, in Europe and elsewhere.

What Tagbreeze does

Once TikTok is connected, Tagbreeze sends each conversion from the browser through the pixel, and from its servers through the Events API, with the same event ID. It keeps the ttclid for 90 days and, with the visitor’s advertising consent, attaches the hashed e-mail and phone, the _ttp ID, the IP address and the browser. The steps are in our TikTok Events API guides.

Know what your ads really bring in.

It takes a few minutes. Nothing is changed on your site until you install the tag.

Add your site
Hands on a laptop beside parcels ready to ship