TikTok Pixel and Events API Setup for Accurate Attribution
How to make TikTok see the leads and sales its ads produce, and how to judge its numbers honestly.
Key Takeaways
- The TikTok Pixel tracks actions in the browser, while the Events API sends the same actions from your server and recovers the events browsers block.
- Use both, with deduplication, so each conversion counts once.
- TikTok reports view-through conversions, which can make it look stronger than click-based channels.
- Judge TikTok against your own sales and branded search trends as well as its own reporting.
On This Page
To track TikTok ads properly, install the TikTok Pixel on your site, connect the Events API through your platform or server, deduplicate the two and confirm events in TikTok's Events Manager. Then read TikTok's results with care. Its default reporting includes conversions from people who only viewed an ad, so check it against your own sales and branded search trends before you decide how much credit TikTok deserves.
Pixel and Events API Roles
The TikTok Pixel is code on your website that reports actions such as purchases, leads and sign-ups from the browser. The Events API sends the same actions from your server or platform, which helps when a browser or privacy setting blocks the Pixel. Shopify, WooCommerce and many other platforms have built-in TikTok connections that set up both. Our guide to TikTok tracking and measurement covers the wider picture, from attribution to comparing TikTok fairly with your other channels.
Two ways the same conversion reaches TikTok
Both paths send the same event. A shared event_id tells Events Manager they are one conversion, not two. Browser tracking is blocked more often, so the server path fills the gaps.
Events to Track
| Business type | Events |
|---|---|
| Online store | View content, add to cart, initiate checkout, complete payment |
| Lead generation | Submit form, contact, schedule |
| App | Install, registration, purchase |
Optimize your campaigns for the event closest to revenue that still happens often enough for TikTok to learn from.
Deduplication
When the Pixel and Events API both send the same event, include a matching event ID with each so TikTok counts it once. After setup, check the Events Manager diagnostics for duplicate warnings.
Attribution Windows
TikTok credits conversions that happen within a set window after someone clicks or views an ad. View-through credit matters more on TikTok than on search, since plenty of people see a video, don't tap and buy later. That influence is real, though view-through numbers also include people who would have bought anyway.
Comparing Channels Fairly
- Use each platform's settings consistently month to month.
- Track your total new customers and total spend across all channels.
- Watch branded search impressions in Google Search Console during TikTok campaigns, which often rise when TikTok drives interest.
- Ask new customers where they heard about you.
- For larger budgets, run a holdout or geographic test.
Frequently Asked Questions
Do I need both the TikTok Pixel and Events API?
Using both, deduplicated, gives TikTok the most complete data.
Why does TikTok report more sales than I see?
View-through conversions, attribution windows and missing deduplication are the usual reasons.
How do I know if TikTok is working?
Look for rising total sales, more branded searches and customers mentioning TikTok while campaigns run, alongside TikTok's own numbers.
Sources
- branded search impressions in Google Search Console developers.google.com
Track TikTok Results You Can Trust
Request a free proposal and we'll review your setup with you.