Black Friday: 30% off all subscriptions until 30 November See pricing

TikTok-style advertising

TikTok pixel, Events API and attribution: measuring TikTok conversions

How TikTok measures what happens after an ad: pixel, Events API, deduplication, optimization events, attribution windows (click, 6-second engaged view, view) and consent.

· 4 min read

A TikTok sales or leads campaign cannot work well without measurement. Measurement tells TikTok which people buy or sign up, and it is what lets you calculate a reliable cost per result. This article explains the three building blocks to know: the data source (pixel and Events API), events, and attribution.

Pixel and Events API

Tool Where the data comes from Strength Limit
TikTok pixel The visitor’s browser, through code placed on the website Easy to install, often through an extension of the e-commerce platform Some data is lost (blockers, refused cookies, restrictive browsers)
Events API The website’s server More reliable, can send events that happen off the site (confirmed sale, sales call) Requires a technical integration or a partner

Both are managed in Events Manager. The recommended approach combines them: the pixel for speed, the API for reliability.

Advanced matching also lets you send hashed information (email, phone) to help TikTok link an event to an account, which improves measurement.

Deduplication

If the same purchase is sent by the pixel and the API, it must only be counted once. TikTok deduplicates events that share:

  • the same event name (for example a purchase);
  • the same event ID (event_id), sent through both channels.

According to TikTok’s help, duplicates are discarded when they arrive within 48 hours of the first event; TikTok keeps the first one received. If you send different events through each channel (add to cart via the pixel, purchase via the API), deduplication is not needed.

Events: what to measure, what to optimize for

An event is a useful action: viewing a product page, adding to cart, starting checkout, buying, submitting a form, signing up. In the ad group, you choose the optimization event, the one TikTok should look for.

  • Too rare (a few purchases a week), it does not provide enough signals to learn.
  • Too easy (a click), it steers delivery towards people who click but do not buy.

The practical rule: choose the event closest to the sale that is still frequent enough. A new store can optimize for add to cart, then switch to purchase when volumes allow. The same logic applies at Meta, see The learning phase.

Attribution: when does a conversion count?

Attribution decides whether a conversion is credited to an ad. TikTok distinguishes three cases:

Type Definition Windows offered
Click-through The person clicked the ad, then converted 1 day or 7 days
Engaged view-through The person watched at least 6 seconds of the video (or the whole video if shorter), without clicking, then converted Off, 1 day, 7 days, sometimes 28 days
View-through The person saw the ad without watching 6 seconds, then converted Off or 1 day

Engaged view is specific to TikTok: on a platform where people watch videos without necessarily clicking, it avoids ignoring the effect of ads that were watched attentively. It applies in particular to sales, leads and app promotion objectives.

Two practical consequences:

  • Two campaigns set with different windows cannot be compared.
  • TikTok’s figures and those of your analytics tool never quite match, because they do not attribute in the same way. UTM parameters help bridge the gap.

Consent in Europe

The pixel stores and reads information in the browser: in Europe, it should only fire after the visitor’s agreement through the cookie banner. Data sent through the Events API must also comply with the GDPR. A poorly configured banner skews measurement both ways: too much data without consent, or no data at all.

Common mistakes

  1. Launching a sales campaign with no data source: optimizing for conversions is impossible.
  2. Installing the pixel twice: every purchase counts double.
  3. Sending the same event through the pixel and the API with no shared ID.
  4. Comparing campaigns with different attribution windows.
  5. Never checking in Events Manager that events are arriving.

Frequently asked questions

Is the pixel enough to start with? Yes, for learning and for a small website. The Events API becomes useful once volumes grow or many visitors refuse cookies.

Why does TikTok show more sales than my website? Because it also counts conversions after an engaged view, which your analytics tool often credits to another source.

Which window should I choose? The one that matches your usual decision time, and above all the same one for every campaign you compare.

Practice it

In TRIALO, create a Sales campaign, go to the ad group and choose Conversion as the optimization goal: the simulator asks you to connect a data source before publishing. Then compare two optimization events. Try it for free.

From reading to practice

Build fictional campaigns, read simulated results and export your work. Free trial, no credit card needed.

Try for free

Related guides

Keep reading

This article is educational. Platform tools change: always check labels and steps in the real tool. TRIALO results are fictional and do not predict those of a real campaign. TRIALO is not affiliated with, endorsed or sponsored by Meta, TikTok or Google.

← All articles