Countnest

UTM parameters and macros for TikTok ads

By Countnest · Last updated

Build a TikTok link

Open the free builder with this page's values prefilled, then enter your own landing page and campaign name. Nothing saved.

Open the prefilled UTM builder

Copy the parameter template

utm_source=tiktok&utm_medium=paid&utm_campaign=__CAMPAIGN_NAME__&utm_content=__CID_NAME__&utm_id=__CAMPAIGN_ID__

Replace example names before publishing. Dynamic macros are expanded only by the ad platform, not by this builder.

Common TikTok macros

MacroValue TikTok can insert
__CAMPAIGN_NAME__ / __CAMPAIGN_ID__Campaign name or ID
__AID_NAME__ / __AID__Ad group name or ID
__CID_NAME__ / __CID__Creative name or ID
__PLACEMENT__Placement

Macros are uppercase with two underscores on each side. Check TikTok's current documentation if you use newer campaign structures.

Pick one tagging method

TikTok can help attach URL parameters while you create an ad. If you also enter tags manually, inspect the final URL so it doesn't contain two values for the same key.

Naming convention

  • utm_source: tiktok
  • utm_medium: paid or paid_social for ads; social for profile links
  • utm_campaign: a macro for campaign name, or a static campaign value
  • utm_content: creative name or ID

Check it before launch

Use TikTok's ad preview, open the landing page and confirm each macro was replaced by a real value. If you see __CAMPAIGN_NAME__ literally in your analytics, the macro was not supported in that position or was typed with the wrong number of underscores.

For links you post yourself, use static values: utm_source=tiktok&utm_medium=social&utm_campaign=bio. Macros only work in ads, so don't add them to organic links.

Reading the results

Ad platforms and web analytics count differently: TikTok reports clicks and attributed conversions, while analytics counts visits that loaded your page. Expect the numbers to differ and compare trends rather than exact totals.

Questions and answers

What is the TikTok campaign-name macro?

__CAMPAIGN_NAME__. Copy it exactly with two underscores on each side.

Which macro identifies a creative?

__CID_NAME__ inserts the creative name; __CID__ inserts its ID.

Which medium should I use?

For ads, use a paid medium such as paid or paid_social. For profile links, use social.

Can automatic and manual tags conflict?

Yes. Inspect the final click URL and avoid duplicated UTM keys.

How do I tag a TikTok profile link?

Use static values such as utm_source=tiktok&utm_medium=social&utm_campaign=profile.

Sources

Facts checked on 14 November 2026.

Related tools and guides

UTM presets by channel

All free Countnest tools · Plain-text summary for AI assistants

See your own numbers in minutes

30-day free trial, no card required. Then from $14 a month. Cancel anytime.

Start free for 30 days