What are UTM parameters?
UTM parameters, also called UTM codes or UTM tags, are short pieces of text appended to a link. When someone clicks the link, your analytics tool reads the tags and records which source, medium and campaign sent the visit. Without them, visits from email, apps and documents are often recorded with no source at all.
What does UTM mean?
UTM stands for Urchin Tracking Module. The name comes from Urchin, the predecessor of Google Analytics, which introduced the tags.
What are the five UTM parameters?
| Parameter | What it records | Example values |
|---|---|---|
| utm_source | Who sent the traffic | linkedin, newsletter, google |
| utm_medium | The type of channel | email, cpc, paid-social |
| utm_campaign | The campaign name | q1-launch |
| utm_term | The paid keyword | payroll-software |
| utm_content | Which ad or link was clicked | header-button |
Google's documentation says you should always use source, medium and campaign, and that a missing one shows as "(not set)" in reports. Google Analytics also reads a few newer parameters, such as utm_id for a campaign ID. A tagged link looks like this:
https://example.com/pricing/?utm_source=linkedin&utm_medium=paid-social&utm_campaign=q1-launch
The first parameter follows a question mark and the rest are joined with ampersands.
How to set up UTM tracking
- Write a naming convention before tagging anything: allowed sources, allowed mediums and a format for campaign names.
- Use lowercase only, and hyphens instead of spaces. Values are case sensitive, so Google Analytics treats "Google" and "google" as two sources.
- Use medium values that match your analytics tool's channel definitions, so visits land in the right channel group.
- Build links with a tool such as the UTM builder instead of typing them.
- Keep a shared sheet of every tagged link, so names stay consistent across people and campaigns.
- Test each link, then check the campaign report after launch.
What should you not tag?
Do not put UTM parameters on links between pages of your own site. A tagged internal link can replace the visitor's original source, so a visit that began with a paid ad is credited to your own banner. Keep names, email addresses and other personal information out of UTM values too, because they are stored in analytics and visible in the URL.