How to build a UTM-tagged link
Take the normal address of the page, add a question mark, then the parameters as key=value pairs joined by &:
https://www.example.com/collections/summer?utm_source=newsletter&utm_medium=email&utm_campaign=summer-sale-2026&utm_content=hero-button
- utm_source: where the visitors come from, such as google, instagram or newsletter.
- utm_medium: how they come, such as cpc, paid-social or email.
- utm_campaign: the campaign's name.
- utm_id: the campaign's ID, if you want IDs in reports too.
- utm_term: the paid keyword, or on social platforms often the ad set.
- utm_content: which ad or link, to tell creatives apart.
Google Analytics asks for utm_source, utm_medium and utm_campaign on every tagged link and treats values as case-sensitive: Meta and meta are two different sources. It also reads three newer parameters, utm_source_platform, utm_creative_format and utm_marketing_tactic, though it does not report the last two yet.
Our view: the convention the builder applies
Most broken UTM reports we see are not missing tags but inconsistent ones. So the builder applies our naming convention to every value you type, unless you switch it off, and names each value it changed:
- Capitals, spaces and separators. “Spring/Summer 2026” becomes
spring-summer-2026: lowercase, with a hyphen for every space, slash or other separator. - Umlauts and accents. “Black Week Österreich” becomes
black-week-oesterreich: umlauts are spelled out and accents dropped. - Underscores between the parts of a name. “2026-06_DE_Summer Sale” becomes
2026-06_de_summer-sale: the underscores stay, so a rule can still read each part. - Platform macros.
{{campaign.name}}or__CAMPAIGN_NAME__stay as they are, for the platform to fill at the click.
What it cannot rewrite, it warns about: a missing utm_source, utm_medium or utm_campaign, an ID in a name field, a click ID in one of the fields, or a medium such as social-ads that sounds paid but does not count as paid in GA4's default channel groups. Two rules no builder can check: give every partner a link of its own, so influencers and affiliates can be told apart even when a discount code is shared, and put no UTMs on links inside your own shop, where they credit the visit to the internal link instead of the channel the visitor came from.
The UTM parameter entry has the convention with the reasons for each rule, the customer question behind it, and what a second spelling of one source does to a report.
Dynamic parameters by platform
Ad platforms replace these placeholders when someone clicks the ad, so one parameter string tags every ad of an account. Each was checked against the platform's own documentation:
| Meta Ads | Google Ads | TikTok Ads | |
|---|---|---|---|
| Campaign name | {{campaign.name}} | none: a custom parameter such as {_campaign} | __CAMPAIGN_NAME__ |
| Campaign ID | {{campaign.id}} | {campaignid} | __CAMPAIGN_ID__ |
| Ad set / ad group | {{adset.name}}, {{adset.id}} | {adgroupid} | __AID_NAME__, __AID__ |
| Ad | {{ad.name}}, {{ad.id}} | {creative} (the ad's ID) | __CID_NAME__, __CID__ (creative) |
| Placement | {{placement}}, {{site_source_name}} | {placement}, {network}, {device} | __PLACEMENT__ |
| Keyword | none | {keyword} | none |
Where to paste them: in Meta, the URL parameters field under Tracking at the ad level. In Google Ads, the Final URL suffix, for the whole account under Admin, Account settings, Tracking template. In TikTok, Build URL parameters in the ad's details, or the destination URL itself.
adtribute's URL parameters next to your UTMs
UTMs are for every tool that reads a link: GA4, your shop, your email tool. adtribute reads them too, and it adds parameters of its own, all starting with adb_: adb_ad_source names the ad platform, and adb_campaign_id, adb_adgroup_id and adb_ad_id carry the IDs the platform fills in at the click. adtribute matches each click to its campaign, ad set and ad by those IDs, which stay the same when a campaign is renamed. For Meta Ads the string reads:
adb_ad_source=facebook&adb_ad_id={{ad.id}}&adb_adgroup_id={{adset.id}}&adb_campaign_id={{campaign.id}}&adb_placement={{placement}}
- Both go into the same link. UTMs in it don't change the match, so you keep your naming convention for everyone else.
- IDs come from the platform's macros, never typed by hand. A click whose IDs match no ad of your connection shows under a campaign named Wrong adtribute Matching Parameters.
- Where they go depends on the platform. Google Ads and Microsoft Ads take them once in the account's tracking template, Meta at the ad level, TikTok and Pinterest at the end of each ad's destination URL. Switch the builder to adtribute parameters to get each platform's string with where to paste it.
The strings come from the setup pages of the ad platforms in the adtribute docs, starting with Meta Ads, which also cover connecting each ad account.
Traps with UTM parameters
- Meta keeps the first name. Name parameters such as {{campaign.name}} carry the name the campaign, ad set or ad had when it was first published. Rename later and reports keep the old name, so name campaigns by your convention before they go live.
- Edits restart learning. Meta warns that changing URL parameters after publishing can send the ad set back into the learning phase. Set the template before launch.
- Google has no name parameters. {campaignid} and {creative} are IDs. Use a custom parameter for the campaign name, and expect fewer supported parameters in Performance Max, where {creative} is not among them.
- TikTok macros are exact. Write them as TikTok lists them, in capitals with two underscores on each side. TikTok's Auto-attach can add its own UTM parameters, and anything after a # in the URL is dropped.
- Codes and links disagree. A discount code shared beyond its influencer credits orders the link never saw. Tag every partner link and read both.
Related glossary entries and tools
- UTM parameter and click ID: what the platforms add on their own
- Campaign naming convention: the names your UTMs carry
- Attribution: what happens with the tagged visits
- Attribution model simulator: how models credit the journeys your links create
- Tracking Checker: whether your shop's tracking sees those visits at all
UTM builder: frequently asked questions
How do I add UTM parameters to Facebook and Instagram ads?
In Ads Manager, at the ad level, paste the parameters into the URL parameters field under Tracking. Meta fills its dynamic parameters at the click: {{campaign.name}}, {{adset.name}}, {{ad.name}}, their IDs, {{placement}} and {{site_source_name}}. Our template: utm_source={{site_source_name}}&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}.
How do I add UTM parameters to Google Ads?
Put them into the Final URL suffix, for the whole account under Admin, Account settings, Tracking template. Google fills ValueTrack parameters such as {campaignid}, {keyword} and {creative} at the click, but it has no parameter for the campaign name: define a custom parameter, for example {_campaign}, in each campaign with its name as value.
How do I add UTM parameters to TikTok ads?
In TikTok Ads Manager, open the ad's Ad details, click Edit under the preview and then Build URL parameters, or add the parameters to the destination URL. TikTok fills macros such as __CAMPAIGN_NAME__, __AID_NAME__ (ad group) and __CID_NAME__ (creative) at the click. Everything after a # in the destination URL is dropped.
Should the campaign ID or the campaign name go into utm_campaign?
The name. Reports, channel rules and everyone reading them work with names, so utm_campaign carries the campaign name and utm_id the campaign ID. How an ID ends up in utm_campaign anyway, and where to fix it, is the UTM parameter entry's section on why IDs end up in the wrong field.