Best way to set up utm links for every campaign so signups show the right source
Tag every link with lowercase source, medium and campaign values from one shared sheet, and use medium values Google Analytics recognises.
Smalt AI team ·
Put utm_source, utm_medium and utm_campaign on every link, write the values in lowercase, and take them from one shared list so each platform, channel and campaign has exactly one spelling. Use medium values that Google Analytics already maps to a channel, such as email or social. Signups then land under one source instead of being split across variants or filed as “(not set)”.
Which parameters to include
Google’s URL builder guidance lists the parameters Google Analytics reads. The Google pages cited in this post describe GA4. Three are required in practice: utm_source (the site, newsletter or placement), utm_medium (the channel, for example email or paid search) and utm_campaign (the campaign name). The University of Minnesota’s UTM guidelines make the same split, with term and content optional. Leave a required one out and the missing value shows as “(not set)”.
- utm_id is a campaign ID that can match campaign data you upload.
- utm_term holds the paid keyword.
- utm_content tells apart creatives or links inside the same campaign, such as two buttons in one email.
Google says utm_creative_format and utm_marketing_tactic are not currently reported in Google Analytics, so there is no reason to add them.
The parameters go after a ? and are joined with &:
https://example.com/signup?utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch&utm_content=header-button
Pick one spelling and keep it
Values are case sensitive. Google states that utm_source=Google and utm_source=google are different values, so three people tagging the same newsletter as Newsletter, newsletter and news-letter split your signups three ways. Minnesota gives the same reason for its lowercase-only rule, and the University of Manchester’s campaign tracking page says the same, adding no spaces or special characters.
Google’s recommendations add that you should name things identically across platforms, use one unique source per platform and one medium per channel, and make the campaign name match the exact name in the platform.
Two universities show how far a convention can go. Each is one university’s guidance, not a universal standard:
- Manchester: keep campaign names short and understandable, reuse the same name across every channel of a campaign, and add a date suffix such as nov23, especially for recurring campaigns.
- Minnesota: use underscores within values, order the parameters source, medium, campaign, term, content so the most important data comes first (some platforms truncate long URLs), and build campaign names as unit_topic_name_two-digit-year, for example umm_fall_welcome_24.
Copy the idea, then write your own pattern down.
Use medium values Google Analytics recognises
The medium decides which default channel a session lands in. Google’s default channel group definitions set the rules, and they ignore case. A medium you invent, such as “newsletter”, matches no rule and the traffic goes to Unassigned.
| utm_medium value | Default channel group |
|---|---|
| affiliate | Affiliates |
| referral | Referral |
| banner | Display |
| social, sm or social-media | Organic Social |
| organic | Organic Search |
| cpc or ppc, with a source on Google’s list of search or social sites | Paid Search or Paid Social |
| newsletter (not recognised) | Unassigned |
The paid rows depend on the source as well. A paid medium with a source that is not on Google’s list falls into Paid Other, so check the definitions page for the full list before you settle on values.
Keep one tagging sheet
Minnesota recommends recording every UTM in a shared URL-builder spreadsheet to avoid duplicates, and giving each marketing piece its own unique UTM. The columns below are our own suggestion:
- Campaign name, as it appears in the ad platform or email tool (column A).
- Base URL, the page the link points to (column B).
- utm_source, the platform in lowercase (column C).
- utm_medium, chosen from the recognised list above (column D).
- utm_campaign, lowercase with one separator (column E).
- utm_content, the creative or call to action (column F).
- Final URL, built by a formula (column G).
- utm_id, the campaign ID, optional (column H).
Add a dropdown to the source and medium columns so only approved values can be entered. With the base URL in B2 and source, medium, campaign and content in C2, D2, E2 and F2, the final URL in G2 is:
=B2&"?utm_source="&LOWER(TRIM(C2))&"&utm_medium="&LOWER(TRIM(D2))&"&utm_campaign="&LOWER(TRIM(E2))&"&utm_content="&LOWER(TRIM(F2))
If the base URL already contains a ?, join the first parameter with & instead.
Make sure the tags survive and show up
Three behaviours in Google’s traffic-source documentation are three behaviours that commonly cause “the source is wrong” reports.
First, auto-tagging wins. When a Google Ads click carries a GCLID and you have manual UTMs on the same link, the click ID takes precedence for source and medium. Second, a partial set is a problem. If the click ID cannot be used and any UTM is present, Google Analytics derives every value from the UTMs alone, so a link with only utm_campaign comes out as “(not set)” for source and medium. Third, changes are not retroactive. Fixing a bad tag corrects future sessions only.
Signups raise one more choice. A report scoped to a user’s first visit and a report scoped to the session can credit different sources. We could not confirm from a Google page which scope fits a signup event, so check which one matches your question. Google publishes a comparison of the two.
Doing it with an AI coworker
If your links or campaign names are in Google Sheets or Excel, you can hand Smalt the spreadsheet and ask it to build or tidy a tagging sheet. Checking that signups land under the right source in your analytics is still your job.
What to check before you rely on it
Minnesota suggests including “test” in the values of test links so those hits can be filtered out later. Click one link of each type before launch and confirm that source, medium and campaign read as you intended.
After the first few days, look for “(not set)” and Unassigned. Either one points to a missing parameter or a medium outside the recognised list.
Minnesota advises tagging only traffic that comes from outside your own site, because UTMs on internal links inflate sessions and distort metrics. For print, QR codes and text messages, it puts the UTM on the destination of a vanity link rather than on the short link itself.
Smalt is an AI coworker that takes jobs like this end to end and hands back the finished file.