TikTok setup guide
Track TikTok ads and see profit by campaign, ad group and creative.
What it is
This guide shows how to connect TikTok ads to TrafficTaps so each click is recorded with its campaign, ad and placement details.
Why it matters
With the right macros, TrafficTaps can show profit and ROI for each campaign, ad and placement, not only for the whole TikTok account. That tells you what to scale and what to switch off.
Step by step
Add the traffic source in TrafficTaps
Go to Traffic Sources > New and choose TikTok from the templates. The parameters below are filled in for you. Check that they match the table in this guide.
[SCREENSHOT: New traffic source form with TikTok selected]Create a campaign
Go to Campaigns > New, choose this traffic source, add your lander and offer, and save.
Copy the tracking link
Open the campaign's Tracking tab and copy the link. It uses double underscores for macros.
Tracking link (TikTok example)https://trk.traffictaps.com/c/AbC123?clickid=__CLICKID__&campaign_id=__CAMPAIGN_ID__&adgroup_id=__AID__&creative_id=__CID__Use the
__CLICKID__macro to pass TikTok's click ID.Paste it in TikTok Ads Manager
In TikTok Ads Manager, paste the link as the ad's Website URL. TikTok replaces its macros when the ad is shown. [VERIFY: TikTok menu labels and field names can change, so check them in the TikTok dashboard]
Test
Click your own ad or preview link in a normal browser (not through a VPN). In Reports, a visit should appear, and the values you sent (campaign, ad and so on) should be filled in, not shown as raw macros.
Example
A finished TikTok ad link, with the campaign code AbC123:
https://trk.traffictaps.com/c/AbC123?clickid=__CLICKID__&campaign_id=__CAMPAIGN_ID__&adgroup_id=__AID__&creative_id=__CID__TikTok macros
These placeholders are replaced by TikTok when someone clicks your ad. Write them exactly as shown, using double underscores, like __CAMPAIGN_ID__.
| Macro | What it gives you |
|---|---|
__CLICKID__ | TikTok click ID |
__CAMPAIGN_ID__ | Campaign ID |
__CAMPAIGN_NAME__ | Campaign name |
__AID__ | Ad group ID |
__AID_NAME__ | Ad group name |
__CID__ | Creative ID |
__CID_NAME__ | Creative name |
__PLACEMENT__ | Placement of the ad |
Sending conversions back to TikTok
[VERIFY: conversion postback URL format for TikTok; it is not listed in the verified facts] See Postbacks to traffic sources for how it works in general.
Coming soon: Ad cost sync for TikTok is coming soon.
Common mistakes
- Wrong brackets. TikTok uses double underscores, like
__CAMPAIGN_ID__. Anything else is sent as plain text. - Editing the macros. Do not add spaces or change the capital letters.
- Testing in the ad platform preview only. Some previews do not replace macros. Click a real ad or test link.
- Using the offer URL in the ad. The ad must point to the TrafficTaps tracking link.
Related pages
Stuck? Write to support@traffictaps.com with your campaign name and a sample click ID.