Toolsy

UTM parameters: a naming convention that keeps your reports clean

UTM tags are free text, which is the whole problem. A short convention, written down once, keeps every campaign in one row. Here is one, and the mistakes it prevents.

What the tags are for

A UTM tag is a small piece of text added to a link so that your analytics can tell where a visit came from. Without it, a click from an email, a post and an ad all arrive as “direct” or as a vague referral. With it, each one lands in its own row, under the name you gave it.

The catch is that you choose the names. Analytics does not validate them, correct them or merge near-misses. Whatever you type is what appears in the report, so the quality of the report is decided at the moment the link is written.

A tagged link is the ordinary page address plus a query string. Each parameter answers one question.

The parts of a tagged linkA page address followed by four tags: source says where the click came from, medium says what kind of traffic it is, campaign says which push is being measured, content says which link or creative it was.https://example.com/pricingthe pageutm_source=newsletterwhere it came fromutm_medium=emailwhat kind of trafficutm_campaign=spring-sale-2026which push to measureutm_content=header-buttonwhich link or creativejoined with ? before the first tag and & between tags
Source, medium and campaign are the three Google says to always set; content tells two links in one campaign apart.
Parameter Question it answers Example value
utm_source Where did the click come from? newsletter
utm_medium What kind of traffic is it? email
utm_campaign Which push are we measuring? spring-sale-2026
utm_content Which link or creative was it? header-button
utm_term Which keyword or audience? running-shoes
utm_id Which campaign ID does this match? c-2026-014

Google’s help page for campaign URLs says to always use utm_source, utm_medium and utm_campaign, and to set the others that apply, especially utm_id and utm_source_platform, when you set one. It also warns that missing parameters produce (not set) values in reports.

The rule that matters most

Google’s page states it directly: parameter values are case sensitive, so utm_source=google is different from utm_source=Google. Its best-practice section tells you to use lowercase as a standard and gives a second example of the same trap: SpringSale and Spring_Sale are distinct.

In practice, one newsletter tagged by three people becomes several rows that all mean the same thing:

Source Medium What happened
newsletter email the version you intended
Newsletter email someone capitalised the source
newsletter Email someone capitalised the medium
newsletter e-mail someone spelled the medium differently
newsletter newsletter the format was typed into the medium field

Nothing is wrong with any single row. The damage is that the campaign total is now spread across five of them, and you only notice weeks later, when the links are already out in emails and posts that cannot be edited.

A convention to write down once

The parameters are free text, so the convention has to be your own. This one is short enough to remember and strict enough to enforce.

  • Everything lowercase. No exceptions, so there is nothing to remember.
  • Hyphens between words, no spaces. spring-sale-2026, not Spring Sale 2026. Use one separator everywhere; the second one you introduce becomes a second row.
  • Source is the platform, never the format. google, facebook, newsletter, the name of the partner site.
  • Medium comes from a short fixed list. For example cpc, email, paid_social, social, affiliate, referral. A new campaign never invents a new medium.
  • Campaign is what you measure plus when. spring-sale-2026 and webinar-may stay unique across years; sale does not.
  • Content separates links inside one campaign. header-button, footer-text-link, hero-a, hero-b.
  • Nothing private, ever. Links are visible in the address bar, get forwarded, and appear in other sites’ logs. No email addresses, names or order numbers.

Keep the list of allowed mediums somewhere visible, because it is the part that drifts. If your reporting groups traffic into channels by medium, check that each value on your list maps to the channel you expect before the campaign starts.

From typed-by-hand to clean

Here is the same newsletter link as three different people might write it, and the version your convention produces.

Typed by hand After the convention
Newsletter newsletter
E-mail email
Spring Sale 2026 spring-sale-2026
Header Button header-button

The cleaned link is:

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale-2026&utm_content=header-button

If spaces are left in a value, they are encoded when the link is built, usually as + or %20, and the value no longer matches the one you typed in your plan. Another reason to remove them first.

A single launch is rarely a single link. A landing page, three blog posts and a pricing page, each sent to five placements, is twenty-five links, and the typo rate of hand-edited links grows with the count. Two habits keep it manageable:

  • Keep the plan in one spreadsheet: one row per link, with a column for each parameter. The tagged URL is then built from the cells, not typed.
  • Apply the same convention in a tool, not by eye. By default the UTM builder lowercases and hyphenates every value as it builds, and its many-links mode applies one set of parameters to a whole list of URLs and exports the result as CSV. It also strips UTM tags already present on a link, so re-tagging a link does not leave two sets side by side.

Things that go wrong

  • Parameters after the #. In a URL, everything after # is the fragment, not the query string. Tags placed after it are not part of the query, so analytics may not see them. Put the ?utm_… part before any #section.
  • Tags on Google Ads links. Google’s help page for auto-tagging says that in Google Analytics 4, auto-tagging is prioritised over manual tagging because there is no override option. Some third-party guides describe a setting that reverses this; Google’s page says it does not exist, so do not build on it. For Google Ads links the tags mostly matter to other tools, and the keyword, campaign and cost detail comes from the auto-tagging.
  • Printing a tag you cannot change. A QR code on a poster or a link in a printed leaflet cannot be re-tagged later. Decide the tag before printing; the QR code generator puts the tagged address in the code itself, so what you encode is what gets recorded.
  • Reusing a campaign name. black-friday in 2025 and 2026 is one row. Add the year.
  • Letting a medium multiply. paid_social, paid-social and paidsocial are three rows. Choose one separator and keep it.
  • Re-tagging over old tags. A link that already carries UTM parameters and gets a second set has two values for each parameter. Remove the old ones first.

For naming things generally, the same rules apply to page addresses: the slug generator lowercases, hyphenates and transliterates a phrase in one go, which is also a handy way to turn a campaign title into a clean utm_campaign value.

Checklist

  • Source, medium and campaign are always present.
  • All values are lowercase, with one separator and no spaces.
  • The medium comes from a written list.
  • Campaign names include the year or date.
  • Tags sit before any # fragment.
  • Nothing private is in any value.
  • The plan lives in one sheet, and links are generated from it.

The UTM builder applies this convention for you, one link at a time or for a whole list. If your plan starts life in a spreadsheet, the CSV to JSON converter is a quick way to turn it into a format you can feed to other tools.