TikTok Pixel Implementation Guide for Marketers
TikTok Pixel setup, events, and the TikTok Events API — everything you need to track conversions from your TikTok ad campaigns.
AttriModel Team
AttriModel Team
Why TikTok Tracking Is Different
TikTok advertising operates in a unique ecosystem. The platform's audience skews younger, the content format is distinct, and the attribution window works differently from Meta or Google. Accurate tracking is essential because TikTok's algorithm optimizes based on the conversion signals you send.
Installing the TikTok Pixel
Via TikTok Business Center:
- Go to TikTok Ads Manager → Assets → Events
- Click "Web Events" → "Set up web pixel"
- Select "TikTok Pixel" and choose manual install
Via GTM (Recommended):
- Download the TikTok Pixel GTM template from the community gallery
- Or create a Custom HTML tag with the pixel base code
- Trigger: All Pages
Standard Events to Track
TikTok uses standardized event names. Map your site events to these:
| Your Event | TikTok Event Name |
|------------|------------------|
| Page view | PageView |
| View product | ViewContent |
| Add to cart | AddToCart |
| Start checkout | InitiateCheckout |
| Purchase | CompletePayment |
| Lead form submit | SubmitForm |
| Sign up | CompleteRegistration |
Event Parameters
For e-commerce events, include:
`javascript
ttq.track('CompletePayment', {
content_type: 'product',
contents: [{
content_id: 'SKU_001',
content_name: 'Running Shoes',
quantity: 1,
price: 59.99
}],
value: 59.99,
currency: 'USD'
});
`
TikTok Events API (Server-Side)
Like Meta CAPI, TikTok offers a server-side API to supplement browser pixel data:
`javascript
const response = await fetch('https://business-api.tiktok.com/open_api/v1.3/event/track/', {
method: 'POST',
headers: {'Access-Token': ACCESS_TOKEN, 'Content-Type': 'application/json'},
body: JSON.stringify({
event_source: 'web',
event_source_id: PIXEL_ID,
data: [{
event: 'CompletePayment',
event_time: Math.floor(Date.now() / 1000),
user: {email: hashedEmail},
properties: {value: 59.99, currency: 'USD'}
}]
})
});
`
Testing Your Pixel
Use TikTok's Pixel Helper browser extension to verify events are firing. In Events Manager, use the Test Events tool to confirm server-side events are received.