The Shift to TikTok Server-Side Tracking
TikTok is currently one of the fastest-growing traffic sources for affiliate marketers, particularly in niches like e-commerce, beauty, and health.
However, TikTok's standard browser Pixel is highly vulnerable to browser tracking restrictions. Because mobile browser checkouts on TikTok's in-app browser are often sandboxed, browser cookies get wiped quickly, leading to under-reported sales.
To combat this, TikTok developed the Events API (formerly Developer Pixel).
By integrating the TikTok Events API with PostbackFlow, you ensure that every checkout, lead, or subscription is reported directly from server to server, bypassing all browser tracking blocks.
---
Step 1: Generate TikTok Pixel ID and Access Token
To send server events to TikTok, you need an Access Token from the TikTok Ads Manager.
1. Log in to your TikTok Ads Manager.
2. Go to Tools -> Events.
3. Click Manage under the "Web Events" section.
4. Select your active TikTok Pixel or click Set Up Web Events to create a new one.
5. In the Pixel settings, go to the Settings tab.
6. Scroll down to the Events API section and click Generate Access Token.
7. Copy the token (starts with tt_...) and your Pixel ID.
---
Step 2: Configure TikTok Events API in PostbackFlow
Now, connect your TikTok Pixel credentials to PostbackFlow.
1. Open your PostbackFlow Console and go to Ad Platforms.
2. Click Configure on the TikTok Events API card.
3. Fill in the parameters:
* Pixel ID: The ID from TikTok Ads Manager.
* Access Token: The tt_... token you generated.
4. Click Save and toggle the switch to Active.
---
Step 3: Configure tracking click parameter
When running ads on TikTok, TikTok automatically appends a click identifier called ttclid (TikTok Click ID) to your ad links.
To track this:
1. Ensure your TikTok campaign URL points to your landing page or tracking link, with auto-tagging or tracking params enabled.
2. When the user lands, PostbackFlow automatically captures the ttclid value and registers it under the visitor session.
3. When the user redirects to the affiliate offer (e.g. ClickBank or MaxBounty), PostbackFlow passes the click ID.
4. Once the conversion occurs, the affiliate network fires the postback back to PostbackFlow.
5. PostbackFlow extracts the stored ttclid, formats the event payload according to TikTok's Web Events API specs, and sends it to TikTok's servers.
---
Step 4: Verify the integration
You can monitor the status of the events:
- Inside TikTok Ads Manager, go to Tools -> Events -> Web Events.
- Under the event chart, look at the Connection Type column.
- You should see events labeled as Server alongside browser events, indicating that TikTok is receiving server-to-server data.