UTM Mind
Tiktok Ads UTM Template

TikTok Ads Dynamic URL Parameters (Macros): The Ultimate Reference & UTM Guide

Stop manually typing UTMs for TikTok Ads. Learn how to use TikTok dynamic URL macros to automate tracking, get granular attribution, and scale your campaigns seamlessly with UTMMind

UTM Mind Team··5 min read
TikTok Ads Dynamic URL Parameters (Macros): The Ultimate Reference & UTM Guide

If you're scaling ads on TikTok right now, you already know the algorithm is incredible for driving traffic. But let's be honest: tracking that traffic accurately in Google Analytics or Shopify can be a massive headache. If you are still manually typing out utm_campaign=viral_video_1 for every single ad, you are wasting a ton of time and probably risking messy data.

To get granular insights into exactly which video, ad group, or audience is actually driving sales, you need to use TikTok Ads Dynamic URL Parameters (also known as macros).

In this guide, we will break down the essential TikTok macros and show you how to automate your UTM generation without breaking a sweat using utmmind.com.


What Are TikTok Ads Dynamic Parameters?

Just like Google and Meta, TikTok allows you to use dynamic placeholders in your ad URLs. When a user taps your TikTok ad, the platform automatically replaces these placeholders with the actual data (like your specific campaign name or ad ID) before sending the user to your website.

However, here is the catch that trips up a lot of media buyers: TikTok uses a completely different syntax than other platforms.

  • Google uses single brackets: {campaignid}

  • Meta uses double brackets: {{campaign.id}}

  • TikTok uses double underscores: __CAMPAIGN_ID__

If you accidentally use Meta's curly brackets in your TikTok ads, your tracking will break. You must use the double underscores!


The Ultimate TikTok Ads Macro Reference

Here are the most critical dynamic parameters you should be using in your TikTok Ads tracking templates to get crystal-clear attribution:

1. Campaign Data

Parameter

What it Tracks

Example Output

__CAMPAIGN_NAME__

The name of your TikTok campaign.

Summer_Sale_2026

__CAMPAIGN_ID__

The unique ID of your campaign.

1234567890

2. Ad Group Data (Audiences)

Parameter

What it Tracks

Example Output

__AID_NAME__

The name of your ad group (perfect for tracking audiences).

US_Broad_18_24

__AID__

The unique ID of your ad group.

0987654321

3. Ad Creative & Placement Data

Parameter

What it Tracks

Example Output

__CID_NAME__

The name of the specific video/creative clicked.

UGC_Testimonial_V3

__CID__

The unique ID of your ad creative.

1122334455

__PLACEMENT__

Where the ad was shown (e.g., TikTok vs. Pangle).

TikTok


How to Automate TikTok UTM Links with UTMMind.com

Manually typing out ?utm_source=tiktok&utm_medium=paid_social&utm_campaign=__CAMPAIGN_NAME__ is tedious, and missing a single underscore ruins the whole link.

This is exactly why we built UTMMind.com. It’s the easiest way to standardize and generate flawless UTM links across all your ad platforms. Here is the best practice workflow for TikTok:

Step 1: Open the UTM Builder

Head over to UTMMind.com and access the UTM builder tool.

Step 2: Create Your Tiktok Ads UTM Template

Create your Tiktok Ads UTM Template As the screenshot below which consistent of the fix value and Tiktok Ads marco

Step 3: Map Your TikTok Macros

Set up your core UTMs to capture that dynamic data perfectly:

  • Campaign Source: tiktok

  • Campaign Medium: paid_social or cpc

  • Campaign Name: __CAMPAIGN_NAME__

  • Campaign Term: __AID_NAME__ (This tells you exactly which ad group/audience drove the click).

  • Campaign Content: __CID_NAME__ (This isolates which specific video creative caused the conversion).

Step 4: Generate your link

Click generate! UTMMind will spit out a perfectly formatted URL based on the landing page your given.


OK If you think the above is a little bit complex to make it right and you could simply try the below the prompt with utmmind UTM Agent:

Help me generate a TikTok Ads UTM link template as and create a tracking link for my website https://www.utmmind.com/.

Amazing, right? That’s the UTMMind magic. We have also created a public TikTok Ads UTM template where you can quickly generate your links, but we highly recommend that you go and experience UTMMind for yourself right here:

UTM Mind
© 2026 UTM Mind. All rights reserved.