TikTok Events API
Connect TrackFlow to TikTok Events API to send conversion events directly from your server, improving attribution accuracy and bypassing browser limitations.
Why Use TikTok Events API?
- Better matching: Server-side events provide more reliable user matching
- iOS 14+ compatible: Events aren't affected by ATT prompts
- Ad blocker resistant: Server-to-server communication bypasses ad blockers
- Improved optimization: More conversion data leads to better ad delivery
Step 1: Get Your Pixel ID
- Go to TikTok Ads Manager
- Click Assets → Events
- Select Web Events
- If you don't have a pixel, click Create Pixel
- Copy your Pixel ID (a numeric string)
Step 2: Generate Access Token
- In Events Manager, click on your pixel
- Go to Settings tab
- Scroll to Events API section
- Click Generate Access Token
- Copy the token and save it securely
Important
The access token is shown only once. Make sure to copy and save it before closing the dialog.
Step 3: Add Pixel to TrackFlow
- Go to your store in TrackFlow
- Click Pixels tab
- Click Add Pixel
- Select TikTok Ads
- Enter your Pixel ID and Access Token
- Click Save Pixel
Step 4: Test Your Integration
- Click Test next to your TikTok pixel in TrackFlow
- Go to TikTok Events Manager → Test Events
- You should see a test event appear within a few minutes
Events Sent to TikTok
| TrackFlow Event | TikTok Event | Parameters |
|---|---|---|
| PageView | ViewContent | url, referrer |
| ViewContent | ViewContent | content_id, content_type, value, currency |
| AddToCart | AddToCart | content_id, content_type, value, currency, quantity |
| InitiateCheckout | InitiateCheckout | content_id, value, currency |
| Purchase | CompletePayment | content_id, value, currency, order_id |
User Data for Matching
TrackFlow automatically sends hashed user data for improved matching:
- email: SHA256 hashed email address
- phone: SHA256 hashed phone number
- ttclid: TikTok click ID (from URL parameter)
- ip: Customer IP address
- user_agent: Browser user agent
Troubleshooting
Events Not Appearing
- Verify your Pixel ID is correct
- Check that your Access Token hasn't expired
- Allow up to 20 minutes for events to appear in Events Manager
Low Event Match Quality
- Ensure customer email is captured at checkout
- Make sure ttclid parameter is preserved in your landing page URLs
- Verify phone numbers include country code