Home › Blog · Attribution · 5 November 2026 · 5 min read

UTM parameters that map to your campaigns

How utm_source, medium, campaign and content work, with ready-to-paste templates for Meta, Google Ads and TikTok that fill in campaign IDs.

UTM parameters are short labels added to the end of a link that tell your site which source, campaign and ad a visitor came from. They map cleanly to your campaigns when the platform fills in campaign and ad IDs automatically, using the templates below, so nobody types names by hand.

How UTM parameters work

A UTM parameter is a name and a value placed after the question mark in a web address. Here is a landing page link with four of them:

https://example.com/product?utm_source=facebook&utm_medium=paid&utm_campaign=120211234567890&utm_content=120219876543210

The page loads exactly as it would without them. Your analytics or tracking tool reads the values from the address and stores them with the visit. When the visitor later buys, the order can be traced to the campaign and the ad.

The ad platform does not need UTMs for its own reporting. It uses its own click ID. UTMs are for you. They give you a record that you own, in plain text, that works the same way across every platform.

The four parameters

ParameterQuestion it answersExample values
utm_sourceWhich platform or site sent the visitor?facebook, google, tiktok, newsletter
utm_mediumWhat kind of traffic is it?paid, cpc, email, social
utm_campaignWhich campaign?A campaign ID or a campaign name
utm_contentWhich ad or link within the campaign?An ad ID

A fifth parameter, utm_term, is sometimes used for the search keyword. The four above are enough for most accounts.

Why IDs work better than names

It is tempting to put the campaign name in utm_campaign, because a name is easy to read. Names cause trouble over time. Someone renames a campaign halfway through the month and its visits split across two labels. Two people type the same name with different capital letters. A name contains a space or an ampersand and the link breaks.

An ID never changes and is never typed. It is also the key that lets a report join your site's orders to the platform's spend. Spend is reported per campaign ID and per ad ID. If your orders carry the same IDs, calculating return for each ad is a simple match. You can always look up the name from the ID afterwards.

Templates to paste

Each platform offers placeholders that it replaces with real values at the moment of the click. Paste these templates as they are, including the braces and underscores.

Meta

In Ads Manager, edit the ad and find the URL parameters field in the tracking section.

utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.id}}&utm_content={{ad.id}}

Google Ads

Use the final URL suffix. Setting it at account level applies it to every campaign, including ones you create later.

utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={creative}

Here {creative} is Google's placeholder for the ad ID.

TikTok

Add the parameters to the ad's destination URL, after a question mark.

utm_source=tiktok&utm_medium=paid&utm_campaign=__CAMPAIGN_ID__&utm_content=__CID__

Here __CID__ is TikTok's placeholder for the ad's creative ID.

Common mistakes

  • Mixed spelling and capitals. Facebook, facebook and fb are three different sources to a report. Choose one lowercase value per platform and keep it.
  • UTMs on internal links. A banner on your home page that links to a product with UTM parameters overwrites where the visitor really came from. Use UTMs only on links that point to your site from somewhere else.
  • Two question marks. If the landing page address already has a question mark, the UTM block must join with &. The platform fields above handle this for you. Hand-built links often get it wrong.
  • Redirects that drop the parameters. A link shortener or a redirect from http to https, or from one domain to another, can discard everything after the question mark. Click the ad preview and check the address bar on the final page.
  • Typed campaign names. Hand-typed values drift within weeks. Let the placeholders fill them in.
  • Ads without parameters. A new ad created in a hurry, with the field left empty, shows up later as unattributed traffic. Account-level settings and saved templates prevent this.
  • Medium used loosely. If paid posts and unpaid posts both use social, you cannot separate them. Keep one value for paid traffic.
  • Personal data in a link. Never put an e-mail address, a name or a phone number in a UTM value. Addresses end up in browser histories, logs and other tools.

UTMs and click IDs

Platforms also add their own click ID to the link, such as fbclid, gclid or ttclid. The click ID and the UTMs do different jobs and you should keep both.

The click ID is for the platform. It lets Meta, Google or TikTok connect a conversion to the exact click when your tag reports the sale. Only that platform can read it.

The UTMs are for you. They let you build your own view of first-touch and last-touch attribution across all platforms with one consistent set of labels.

How to test your links

  1. Open the ad preview and click through to your site, or paste the destination link with sample values into a browser.
  2. Look at the address bar once the page has finished loading. All four parameters should be there, after any redirects.
  3. For a live ad, check that the placeholders were replaced by numbers. If you see {{campaign.id}} written out in the address, the template was pasted in the wrong field.
  4. Open your analytics or tracking tool and confirm that the visit appears with the expected source and campaign.
  5. Repeat once for each platform, and again whenever you change your landing page setup.

Where Tagbreeze fits

Tagbreeze reads the UTM parameters on each visit and stores them with the purchase or lead as its first and last touch. It reads ad spend from Meta, so campaign and ad IDs in your UTMs line up with spend, and its reports show return on ad spend and cost per result by channel, campaign and ad.

In short

  • UTM parameters label each visit with its source, medium, campaign and ad.
  • Use platform placeholders so IDs are filled in automatically. IDs stay stable when names change, and they match the platform's spend data.
  • Keep values lowercase and consistent, never tag internal links, and check that redirects keep the parameters.
  • Click IDs serve the platform. UTMs serve you. Keep both.

Know what your ads really bring in.

It takes a few minutes. Nothing is changed on your site until you install the tag.

Add your site
Hands on a laptop beside parcels ready to ship