Sub topic 9
Tagging campaign links with UTM parameters
This chapter assumes you know what a URL is, which traffic channels feed a website (search ads, social, email, referrals), and that a web analytics tool reports where visits come from. No programming is needed.
Why tag links at all
Analytics tools guess a visit's source from the referrer, the page that sent the visitor. That guess fails often. Email clients usually send no referrer, so those visits land in "direct." Two different social posts both show up as the same social site. You cannot tell which campaign earned a visit.
A UTM parameter is a labeled piece of text added to the end of a link. The name comes from Urchin Tracking Module, an early analytics product. When someone clicks the link, the analytics tool on your site reads the labels and records them with the visit. This is what lets the hub attribute each visit to a specific spoke.
The five parameters
Each parameter is a name and a value, written as name=value. The first one follows a ?, and later ones are joined with &.
| Parameter | Answers | Example value |
|---|---|---|
| `utm_source` | Where did the link live? | `newsletter` |
| `utm_medium` | What type of channel was it? | `email` |
| `utm_campaign` | Which campaign was it part of? | `spring_sale` |
| `utm_term` | Which paid keyword? (optional) | `garden_tools` |
| `utm_content` | Which variant or placement? (optional) | `header_button` |
Source, medium and campaign are the core three. Use term for paid search keywords. Use content to compare two links in the same message.
A worked example
Here is a link in an email newsletter promoting a spring sale.
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleThe part before ? is the normal page address. After it come three labels. When a visitor clicks, analytics records the visit as source newsletter, medium email, campaign spring_sale. You can then compare this campaign's visits, goal completions and leads with those from other campaigns.
Naming conventions
Analytics treats values as exact text. Email, email and e-mail become three separate rows in your reports. Agree on rules before anyone builds links:
- Use lowercase only.
- Use underscores or hyphens instead of spaces, and pick one.
- Keep a fixed list of medium values, such as
email,cpc,socialandreferral. - Name campaigns consistently, for example
spring_saleor2026_spring_sale. - Record every tagged link in a shared spreadsheet with its purpose and owner.
Common errors
- Tagging internal links. If a link on your own site carries UTM values, a new session starts and overwrites the real source. Use UTMs only on links from outside your site.
- Tagging links that analytics already tracks. Many ad platforms offer automatic tagging for paid search. Check the platform's setting so manual tags do not conflict with it.
- Inconsistent spelling. This splits one campaign across several rows.
- Putting private data in values. UTM values appear in URLs, browser history and reports. Never include names or email addresses.
- Very long or messy links. Long URLs look untrustworthy in posts. A link shortener can hide the length, but test that the tags survive the redirect.
Putting it together
Before launching a campaign, tag each outside link, test one by clicking it, and confirm the visit appears in your analytics tool's real-time report with the right source, medium and campaign. After launch, report results by campaign. This gives the later measurement chapters clean data to work with.
Exercise
Your team sends one email with two buttons that go to the same page: one at the top and one at the bottom. Which UTM parameters would you set so you can tell which button earned each visit, and what values would you use?
Show answer
Keep the core three the same on both links, for example utmsource=newsletter, utmmedium=email, utmcampaign=springsale. Add utmcontent with a different value on each link, such as utmcontent=topbutton and utmcontent=bottom_button. Analytics then reports the two buttons separately within the same campaign.
Exercise
A report lists "Email", "email" and "e-mail" as three separate mediums. What caused this, and how do you prevent it?
Show answer
Analytics treats parameter values as exact text, so different spellings and capitalization count as different values. Prevent it with a naming convention (lowercase, a fixed list of medium values), a shared link log, and a template or builder for creating links.