Back to blog
Guides

UTM parameters explained: a simple guide to tracking every campaign

Zayd
Nov 19, 2026·4 min read

If you've ever seen something like ?utm_source=newsletter&utm_medium=email trailing off the end of a link, you've met UTM parameters. They look like clutter, and in a way they are. But that clutter is how analytics tools find out where a visitor really came from. Without it, a lot of your marketing ends up in one big, unhelpful bucket labelled direct.

This guide covers what each tag does, how to name them so your reports still make sense a year from now, and the mistakes we see most often.

What a UTM parameter actually is

A UTM parameter is a label added to the end of a URL. It doesn't change the page the visitor sees. It rides along in the address, and when the page loads, tools like Google Analytics read it and file the visit under the source and campaign you named.

The name comes from Urchin, the analytics company Google bought in 2005, which became Google Analytics. UTM stands for Urchin Tracking Module. The tags have outlived the company by two decades.

The five tags and what goes in each

  • utm_source: who sent the traffic. The specific site, app or list, such as newsletter, instagram, google or partner-blog.
  • utm_medium: the type of channel. Keep this to a short, fixed list: email, social, cpc, referral, affiliate, qr, print.
  • utm_campaign: why the link exists. The promotion or project, such as spring-sale, launch-2026 or webinar-oct.
  • utm_term: the keyword, for paid search. Most links can leave it out.
  • utm_content: which version was clicked. Handy when one email has two buttons, or one campaign runs several ads: header-button, footer-link, video-ad-b.

For most links you only need the first three. The other two are for comparing variations inside a single campaign.

Put together, a link in a spring sale email might be example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale. The person who clicks lands on the normal sale page. Your analytics, meanwhile, knows they came from the newsletter.

Why utm_medium matters more than it looks

Google Analytics 4 sorts traffic into channels such as Email, Organic Social, Paid Search and Referral, and it decides which channel a visit belongs to largely by reading utm_medium. Tag an email link with utm_medium=newsletter instead of email and GA4 won't recognise it as email at all. The visit lands in a pile called Unassigned, where nobody looks.

So pick your mediums once, write them down and stick to them. Boring consistency beats clever naming every time.

Naming rules that keep reports clean

  • Use lowercase, always. Analytics treats Facebook and facebook as two different sources, and your report splits in half.
  • Use hyphens instead of spaces. Spaces become %20 in a URL and make the tags hard to read.
  • Be specific in the source and general in the medium. The source is instagram; the medium is social.
  • Keep personal data out. Email addresses or names in a URL end up in server logs and analytics where they don't belong.
  • Keep a shared list. A spreadsheet or saved template means everyone on the team tags links the same way.

The mistakes that quietly break attribution

Most UTM problems don't cause errors. They just make your data a little wrong, which is worse, because nobody notices.

  • Tagging links inside your own website. A UTM on an internal link, say a homepage banner pointing to your pricing page, can overwrite where the visit really came from. Use UTMs only on links that bring people to your site from somewhere else.
  • Doubling up on paid ads. Google Ads adds its own gclid tag automatically. Manual UTMs on top are allowed, but check which one your analytics settings prefer, or the same click gets labelled two ways.
  • Forgetting the QR code. A QR code on a flyer is a link like any other. Leave it untagged and every scan shows up as direct traffic.
  • Renaming mid-campaign. If week one says spring-sale and week two says springsale, you now have two campaigns that should be one.

Where short links help

UTM tags make URLs long and messy, and long, messy URLs get fewer clicks wherever people can see them: a printed poster, a podcast mention, a social bio. A short link hides the tags. The reader sees trims.app/spring, and your analytics sees the full tagged address.

Short links also make tags fixable. Print a QR code, notice a typo in the campaign name a week later, and you can correct the destination behind the short link so every future scan carries the right tags. With a raw tagged URL on paper, the typo is permanent.

In TRIMS, the UTM builder sits inside the link form on every plan, Free included. You can save templates for the channels you use most, so your team picks newsletter from a list instead of typing Newsletter, newsletter and NewsLetter on three different days.

A quick checklist before you share

  • Does the link have a source, a medium and a campaign?
  • Is everything lowercase, with hyphens instead of spaces?
  • Is the medium one of your standard values?
  • Is it an external link, not one inside your own site?
  • Have you tapped it once yourself to check the page loads?

Thirty seconds per link. Months from now, your reports will tell you something true.

Zayd
Founder & Engineer, TRIMS

Building TRIMS — a fast, honest link platform with analytics that actually help you decide.

Next up
How to track QR code scans: static vs dynamic QR codes explained