TikTok Tips & Strategies

How to Add a Campaign Code on TikTok

By Spencer Lanoue
October 31, 2025

Adding a campaign code to your TikTok links is one of the most effective ways to understand exactly what content drives traffic and sales. While TikTok's built-in analytics are great for on-platform metrics like views and engagement, campaign codes tell you what happens after someone clicks your link. This article will show you step-by-step how to create these tracking links, where to use them on TikTok, and how to analyze the data to make smarter marketing decisions.

What Exactly Is a Campaign Code (and Why Should You Bother)?

A "campaign code" isn't a special TikTok feature. It’s a marketing staple more formally known as a UTM parameter (Urchin Tracking Module). Think of it as a small piece of code you add to the end of a URL. This code doesn't change where the link goes, but it gives your analytics software - like Google Analytics - specific information about where that click came from.

Imagine handing out flyers for a party. If you gave out the same flyer in three different neighborhoods, you'd never know which neighborhood sent the most guests. But if you put a unique code on the flyers for each neighborhood (A, B, C), you could greet people at the door, check their code, and know exactly which location was most effective. UTM parameters do the same thing for your digital links.

Here’s why it's worth the tiny bit of extra effort:

  • Pinpoint Winning Content: Know exactly which specific TikTok video, ad, or bio link iteration is sending the most traffic and conversions to your website. No more guessing.
  • Measure Campaign ROI: When you run a specific promotion, like a "Summer Sale," you can track all the traffic from all your TikTok content related to that campaign in one place.
  • A/B Test Your Calls to Action: Want to know if "Shop Now" in your video description works better than "Learn More"? Use a different campaign code for each and see which one drives more clicks.
  • Track Influencer Performance: Give each influencer you work with a unique tracked link. This allows you to measure their impact directly and identify your most valuable partners.

The Anatomy of a Campaign Code: Understanding the 5 UTM Parameters

A URL with UTM parameters looks a bit long and technical, but it’s actually made up of a few simple parts. Let's break down the five standard parameters.

Let's say your destination URL is: https://yourshop.com/products/summer-dress

Here's what a tracked link could look like:

https://yourshop.com/products/summer-dress?utm_source=tiktok&utm_medium=social&utm_campaign=summer-sale&utm_content=bio-link

1. Campaign Source (utm_source)

What it is: This identifies the platform or source that’s sending the traffic. It’s the broadest category.

How to use it for TikTok: Keep this simple and consistent. Always use utm_source=tiktok.

Example: `utm_source=tiktok`

2. Campaign Medium (utm_medium)

What it is: This explains the marketing channel or medium. Is it an organic social post, a paid ad, or something else?

How to use it for TikTok:

  • For organic posts (like your bio link): utm_medium=social
  • For paid ads: utm_medium=cpc (cost-per-click) or utm_medium=paid-social
  • For influencer collaborations: utm_medium=influencer

Example: `utm_medium=social`

3. Campaign Name (utm_campaign)

What it is: This is where you name your specific promotion or marketing campaign. It groups all your different links for one effort together.

How to use it for TikTok: Make it a clear, readable name that you'll recognize later.

  • Running a summer sale? utm_campaign=summer-sale-2024
  • Promoting a new product launch? utm_campaign=new-product-launch
  • Running an evergreen brand awareness campaign? utm_campaign=brand-awareness

Example: `utm_campaign=summer-sale`

4. Campaign Content (utm_content)

What it is: This is incredibly useful for differentiating between links that point to the same URL within the same campaign. It lets you get really granular with your tracking.

How to use it for TikTok:

  • For your main profile link: utm_content=link-in-bio
  • For a specific video's call-to-action: utm_content=video-xyz-cta
  • For an influencer named Jane Doe: utm_content=jane-doe-post1

This parameter helps you compare different placements or creatives against each other.

Example: `utm_content=bio-link`

5. Campaign Term (utm_term)

What it is: This is traditionally used to identify paid search keywords in Google Ads. For social media, it's less commonly used unless you're running sponsored ads focused on specific keywords or topics within TikTok’s ad platform.

How to use it for TikTok: For organic content, you can often leave this blank. For paid ads, you could use it to specify the target audience or ad group, like utm_term=fashion-lovers-25-34.

How to Create Your TikTok Campaign Link: Step-by-Step

You don't need to manually type out these long URLs. The easiest way to build a properly formatted campaign link is with a free tool.

Step 1: Get Your Destination URL

First, grab the normal URL of the webpage you want to send people to. For example, https://myshop.com/new-collection.

Step 2: Use Google's Campaign URL Builder

The most common and trusted tool is Google's Campaign URL Builder. It’s a simple form that does the hard work for you.

Step 3: Fill in Your Parameters

Let's pretend we're an online store running a 20% off promotion for our new summer collection, and we want to track clicks from our main TikTok bio link.

Fill out the fields in the URL builder as follows:

  • Website URL: https://myshop.com/new-collection
  • Campaign Source: tiktok
  • Campaign Medium: social
  • Campaign Name: summer-promo-20_percent
  • Campaign Content: profile-bio-link (You can leave Campaign Term blank)

As you type, the builder will generate the full campaign URL for you at the bottom of the page.

Step 4: Copy and Shorten Your New Link

The generated link will be long: https://myshop.com/new-collection?utm_source=tiktok&utm_medium=social&utm_campaign=summer-promo-20_percent&utm_content=profile-bio-link

This is technically ready to use, but long URLs can look messy and untrustworthy. It's a good practice to use a URL shortener like Bitly to create a cleaner, more clickable link before adding it to your TikTok profile.

Where to Add Your Campaign Code on TikTok

Once you have your tagged and shortened URL, it's time to put it to work.

In Your Profile Bio

This is the prime location for your campaign link. Edit your TikTok profile and paste your new tracked URL into the "Website" field. Any traffic coming from this link will now be specifically tagged, so you know it came from someone visiting your profile organically.

Pro Tip: You can regularly update this link to align with your current promotions or content focus. Mentioning "Link in bio to shop!" in your video captions is the best way to drive people here.

In Your TikTok Ads

If you're running ads through TikTok Ads Manager, you don't paste the full campaign URL into the main URL field. Instead, the Ads Manager has dedicated fields for tracking. When setting up your ad:

  1. Navigate to the "Ad details" section.
  2. Enter your clean destination URL (e.g., https://myshop.com/new-collection).
  3. Look for a section called "Tracking" or "URL parameters." Here, you can either build your parameters using their tool or paste the parameter string (everything after the '?').

This is the proper way to track paid campaigns and will give you the most detailed insights inside your TikTok Ads Manager and Google Analytics dashboards.

For Influencer Marketing Campaigns

Provide each influencer with their own unique link. Simply change the `utm_content` or `utm_campaign` to include the influencer's name. For example:

...utm_campaign=summer-promo-influencer&utm_content=sarahs-style

This lets you see exactly how much traffic and how many sales each creator is driving, making it easy to calculate ROI and identify your top-performing partners.

How to See Your Campaign Data in Google Analytics

All this setup pays off when you can see the results. In Google Analytics 4 (GA4), here’s how to find your TikTok campaign data:

  1. Log in to your GA4 account.
  2. On the left-hand navigation, go to Reports > Acquisition > Traffic acquisition.
  3. The default report shows traffic grouped by `Session default channel grouping`. Click the dropdown arrow and change the primary dimension to Session source / medium. Here, you'll see tiktok / social separating itself from other traffic.
  4. To see data from a specific campaign, click the '+' icon to add a secondary dimension and search for and select Session campaign.

Now you can see a clean report showing how many users, sessions, and conversions came from your specific TikTok campaigns. This is where you can prove that your TikTok strategy is directly contributing to your business goals.

Best Practices for Consistent Tracking

  • Stay Consistent with Naming. Always use lowercase (e.g., `tiktok`, not `TikTok`). Analytics tools are case-sensitive. Create a cheatsheet or spreadsheet for your team to ensure everyone uses the same naming conventions.
  • Keep It Simple and Clear. Use hyphens instead of spaces. Your campaign names should be easy for you to understand weeks or months from now. spring-launch-2024 is much clearer than promo1_v2_final.
  • Test Every Link. Before you post your campaign URL anywhere, click on it yourself. Make sure it goes to the right page and that you see the full URL with all the UTM parameters in your browser’s address bar.

Final Thoughts

Implementing campaign codes on TikTok transforms your marketing from a guessing game into a data-driven strategy. By tagging your links, you gain clear insight into which videos, bio links, and promotions resonate best with your audience and drive them to act. A few minutes of setup on the front end provides invaluable data that can shape your content for months to come.

Taking your tracked content strategy from plan to reality requires organizing and scheduling posts consistently. It turns out, that's a huge reason we built Postbase in the first place - to handle the chaos of modern social media. Because it's designed with short-form video in mind, you can plan all of your TikToks on a visual calendar, schedule them reliably, and know exactly what campaign content is going live when, without juggling spreadsheets and manual uploads.

Spencer's spent a decade building products at companies like Buffer, UserTesting, and Bump Health. He's spent years in the weeds of social media management—scheduling posts, analyzing performance, coordinating teams. At Postbase, he's building tools to automate the busywork so you can focus on creating great content.

Other posts you might like

How to Add Social Media Icons to an Email Signature

Enhance your email signature by adding social media icons. Discover step-by-step instructions to turn every email into a powerful marketing tool.

Read more

How to Add an Etsy Link to Pinterest

Learn how to add your Etsy link to Pinterest and drive traffic to your shop. Discover strategies to create converting pins and turn browsers into customers.

Read more

How to Grant Access to Facebook Business Manager

Grant access to your Facebook Business Manager securely. Follow our step-by-step guide to add users and assign permissions without sharing your password.

Read more

How to Record Audio for Instagram Reels

Record clear audio for Instagram Reels with this guide. Learn actionable steps to create professional-sounding audio, using just your phone or upgraded gear.

Read more

How to Add Translation in an Instagram Post

Add translations to Instagram posts and connect globally. Learn manual techniques and discover Instagram's automatic translation features in this guide.

Read more

How to Optimize Facebook for Business

Optimize your Facebook Business Page for growth and sales with strategic tweaks. Learn to engage your community, create captivating content, and refine strategies.

Read more

Stop wrestling with outdated social media tools

Wrestling with social media? It doesn’t have to be this hard. Plan your content, schedule posts, respond to comments, and analyze performance — all in one simple, easy-to-use tool.

Schedule your first post
The simplest way to manage your social media
Rating