Blog/TikTok Ads
How to set up TikTok Ads conversion tracking — pixel, events, and verification.
TikTok conversion tracking requires four components: the browser pixel (base code on every page), individual event tags for key actions (CompletePayment, Lead), the Events API for server-side signal, and event deduplication between both sources. Without this in place, TikTok's algorithm optimises for clicks and video views — not purchases or leads. Install it before spending a single dollar on campaigns.

Ahmed Ashraf
Founder, Traffiy · April 2026 · Google Premier Partner
“The TikTok pixel is the foundation. Without it, TikTok's algorithm is flying blind — it can only optimise for clicks and video views, not purchases or leads. Install it before you spend a single dollar.”
— Ahmed Ashraf · $100M+ in budgets managed
Setup process
Five steps to complete TikTok tracking setup.
Create the pixel in TikTok Ads Manager
Go to Assets → Events → Web Events → Manage. Click Create Pixel. Name it clearly (e.g., 'traffiy.com - main'). Choose your installation method — Web SDK (manual or GTM) or Events API. One pixel per domain is the standard configuration.
Install via GTM (recommended)
In GTM, create a new tag → Community Template Gallery → TikTok Pixel. Enter your Pixel ID. Set the trigger to All Pages for the base code. Then create separate tags for each event (AddToCart, CompletePayment, Lead) with specific triggers matching your site's conversion actions.
Configure your key events
In TikTok Ads Manager → Events → select your pixel → Add Events. Map each event to the correct trigger. For eCommerce: ViewContent, AddToCart, InitiateCheckout, CompletePayment. For lead gen: Lead (form submit), ViewContent (service page). Pass value and currency parameters on CompletePayment for revenue reporting.
Set up the Events API (server-side)
Under Assets → Events → Web Events → your pixel → Set Up Events API. Generate an Access Token. Implement server-to-server calls using TikTok's Events API documentation. Your server sends the same events the browser pixel fires, deduplicated using an event_id parameter that matches between both sources.
Verify with Pixel Helper and Events Manager
Install the TikTok Pixel Helper Chrome extension. Visit your website and walk through the conversion flow. The extension shows which events fire on each page. Cross-check in Ads Manager → Events → your pixel → Test Events — fire test events and confirm they appear in real time within 5 minutes.
Why the Events API matters
Browser pixels miss approximately 20–35% of conversions due to ad blockers, iOS privacy restrictions, and browser-level cookie limitations. The Events API sends conversion data server-to-server, bypassing these restrictions entirely. When you run both together with deduplication enabled via a shared event_id, TikTok sees the full picture — not just the conversions the browser happened to capture.
Event deduplication
When both browser pixel and Events API fire for the same conversion, TikTok will double-count unless you implement deduplication. Pass an identical event_id in both the browser pixel and Events API payload for each event. TikTok uses this to recognise and discard duplicates. Without this, your conversion data will be inflated and Smart Bidding will optimise on inaccurate signals.
Attribution window
TikTok's default attribution window is 7-day click, 1-day view. This means a conversion is credited to a TikTok ad if the user clicked the ad within 7 days before converting, or viewed the ad within 1 day before converting. For most eCommerce businesses this is appropriate. For lead gen with longer sales cycles (B2B, high-ticket), consider extending to 14-day click. To change: Ads Manager → Assets → Events → select pixel → Attribution Settings.
Event reference
| Event | Where to fire | Priority | Use case |
|---|---|---|---|
| ViewContent | Product/service page load | Medium | eCommerce & lead gen |
| AddToCart | Add to cart button click | High | eCommerce |
| InitiateCheckout | Checkout page load | High | eCommerce |
| CompletePayment | Order confirmation page | Critical | eCommerce |
| Lead | Form submission / thank you page | Critical | Lead gen |
| Subscribe | Email signup confirmation | Medium | Lead gen / SaaS |
7-day click
Default TikTok attribution window — conversions credited within 7 days of ad click
2 methods
Browser pixel + Events API together deliver the most complete conversion signal
100+
Monthly conversions needed for TikTok Smart Bidding to exit learning phase reliably
FAQ
Common questions about TikTok conversion tracking.
What is the TikTok Pixel and how does it work?+
The TikTok Pixel is a JavaScript snippet you install on your website that fires events back to TikTok Ads Manager when visitors take actions (view a product, add to cart, complete a purchase). It works similarly to the Meta Pixel. The pixel creates a bridge between your website activity and TikTok's ad optimisation — without it, TikTok can only optimise for clicks and video views, not actual business outcomes.
Should I use GTM or manual installation for the TikTok Pixel?+
GTM (Google Tag Manager) is recommended for most setups. It gives you a single tag management interface, makes testing easier, and lets you deploy event triggers without modifying site code. Manual installation is fine for simple sites where you have direct code access and only need a few events. If you're already using GTM for Google Ads or Meta, adding TikTok via GTM is the most consistent approach.
What is the TikTok Events API and do I need it?+
The TikTok Events API (server-side tracking) sends conversion data directly from your server to TikTok, bypassing browser limitations like ad blockers and iOS restrictions. It is TikTok's equivalent of Meta's Conversions API (CAPI). If you're spending $5K+ per month on TikTok, the Events API is worth implementing — it recovers signal that the browser pixel misses and improves optimisation accuracy. Use both together with deduplication enabled.
How do I change the TikTok Ads attribution window?+
Go to TikTok Ads Manager → Assets → Events. Find the pixel event you want to modify and click the attribution window setting. The default is 7-day click, 1-day view. For most eCommerce accounts, 7-day click / 1-day view is appropriate. For lead gen with longer consideration cycles, you may want to extend to 14-day click. Attribution window changes affect how conversions are reported — they do not retroactively change historical data.

Ahmed Ashraf — Founder, Traffiy
10+ years in paid media. $100M+ in budgets managed across Meta, Google, and TikTok. Google Premier Partner — top 3% globally. Every article on this blog is written from direct experience managing real campaigns.
Want your TikTok tracking set up correctly from day one?
Traffiy handles pixel implementation, Events API, and full tracking verification as part of every TikTok campaign setup. No guesswork.