ttclid click identifier.
Capturing the TikTok Click ID
When a lead arrives from a TikTok ad, Pingtree automatically captures thettclid parameter from the URL and stores it on the lead record. This identifier links the conversion back to the specific ad click, improving match rates in TikTok Ads Manager.
Step 1: Generate an Access Token
- Log into TikTok Ads Manager.
- Open the Pixel you want to track with.
- Go to the Settings tab.
- Click Generate Access Token under Server-Side Tracking.
Step 2: Define Conversion Points
TikTok conversion events can be tied to any stage in the lead lifecycle. You can map any TikTok standard event or custom event to a Pingtree trigger:| Trigger | When It Fires | Configure At |
|---|---|---|
| Form Submission | User submits a form | Source > Postbacks > On Form Submit |
| Lead Sold | Lead is accepted by a buyer | Distribution > Posting API |
| Offer Wall Click | User clicks on an offer | Source > Postbacks > On Offer Click |
| Offer Wall Conversion | User completes a third-party offer | Source > Postbacks > Filter by Events |
| Custom Buyer-Based Events | Lead is routed to a specific buyer | Distribution > Routing Rules with event conditions |
Step 3: Send Events to TikTok
Endpoint:Tip: Confirm the exact endpoint version in your TikTok Events Manager, as TikTok may update the API version over time.
Payload Field Mapping
| Pingtree Field | TikTok Field | JSON Path | Notes |
|---|---|---|---|
email | email | data.0.user.email | SHA-256 hashed |
mobile | phone_number | data.0.user.phone | SHA-256 hashed |
transaction_id | event_id | data.0.event_id | Unique per event |
ip | ip | data.0.user.ip | Improves match rate |
user_agent | user_agent | data.0.user.user_agent | Recommended |
ttclid | ttclid | data.0.user.ttclid | TikTok click identifier |
utc_timestamp | timestamp | data.0.event_time | UNIX timestamp in UTC |
revenue | value | data.0.properties.value | Revenue or sale amount |
| (static) | event_source | event_source | Set to "web" |
| (custom) | event | data.0.event | e.g., CompleteRegistration, Purchase |
| (static) | currency | data.0.properties.currency | Usually "USD" |
| (static) | content_type | data.0.properties.content_type | Usually "product" |
Sample Payload
Attribution Tips
- Always include
ttclidwhen available — it is the strongest signal for TikTok attribution. - Hash
emailandphonewith SHA-256 before sending. Pingtree’s data transformer can handle this automatically. - Use real event timestamps in UTC to avoid time drift issues.
- Include
ipanduser_agentto improve match rates whenttclidis not available.
Troubleshooting
TikTok provides a Test Events tool in the Events Manager to validate your server-side events before going live:- In TikTok Events Manager, locate your pixel and find the Test Events section.
- Copy the test event code.
- In Pingtree, go to your postback configuration and add a static field with the test code.
- Fire a test event using the Test Postback tool in Pingtree.
- Check TikTok Events Manager to confirm the event was received and matched.