SEO Tools

UTM Naming Conventions That Keep Your Analytics Clean

A simple naming scheme for utm_source, utm_medium and utm_campaign, with a worked Diwali-sale example, the mistakes that split your reports, and what a basic UTM builder cannot do.

2026-11-236 min readBy ToolHive Team

UTM tags are easy to add and surprisingly easy to ruin. Nothing stops one person tagging a link with Email, another with email and a third with e-mail. Months later your report shows three rows for one channel and nobody trusts the numbers. This guide gives you a small naming scheme you can adopt today, shows exactly what the UTM builder on this site produces, and lists what it leaves for you to handle.

What the three core parameters are for

A UTM link is your normal URL with a query string added. Three parameters do most of the work:

  • utm_source: where the click came from. Examples: newsletter, instagram, whatsapp, partner-site.
  • utm_medium: the type of channel. Examples: email, social, cpc, referral.
  • utm_campaign: the initiative the link belongs to. Examples: diwali-sale-2026, launch-webinar.

Source answers "which one", medium answers "what kind", campaign answers "why". Keeping those three jobs separate is the heart of a clean scheme. A common slip is putting the channel type in the source field (utm_source=email) and the sender in the medium field, which makes reports impossible to group.

Five rules that prevent most problems

  1. Lowercase everything. Analytics tools generally treat values as text labels, so Newsletter and newsletter can show up as separate rows depending on the report. You do not need to learn which reports do this. If every value is lowercase, the question never comes up.
  2. Use hyphens, not spaces. Pick hyphens or underscores and never mix them. Spaces turn into %20 in a URL and look messy in reports.
  3. Keep a closed list of mediums. Five or six is plenty: email, social, cpc, referral, affiliate, display. Analytics tools group traffic into channels partly by looking at the medium, so familiar values such as email and cpc are the safest. A made-up medium like mailer may not land in the channel you expect. Check the current channel definitions in your analytics tool before inventing new ones.
  4. Name campaigns with what and when. diwali-sale-2026 still makes sense in two years. sale does not, and neither does campaign1.
  5. Write the scheme down. One shared sheet with the allowed sources, mediums and campaign names beats any amount of good intentions. Anyone adding a link checks the sheet first.

Worked example: a Diwali sale across three channels

Suppose a small online shop is running a sale and sends traffic to https://example.com/offer from an email, an Instagram bio link and a WhatsApp broadcast. The campaign is diwali-sale-2026. The builder takes one line of four comma-separated values: URL, source, medium, campaign.

ChannelInput lineResulting link
Emailhttps://example.com/offer, newsletter, email, diwali-sale-2026https://example.com/offer?utm_source=newsletter&utm_medium=email&utm_campaign=diwali-sale-2026
Instagramhttps://example.com/offer, instagram, social, diwali-sale-2026https://example.com/offer?utm_source=instagram&utm_medium=social&utm_campaign=diwali-sale-2026
WhatsApphttps://example.com/offer, whatsapp, social, diwali-sale-2026https://example.com/offer?utm_source=whatsapp&utm_medium=social&utm_campaign=diwali-sale-2026

Because the campaign name is identical on all three, your report can show the whole sale as one campaign and then break it down by source. Instagram and WhatsApp share the social medium, so you can also compare "social" against "email" in one view. That is the payoff of a closed medium list.

If the page URL already has a query string, for example https://example.com/shop?ref=home, the builder adds the UTM values with & instead of ?, giving https://example.com/shop?ref=home&utm_source=whatsapp&utm_medium=social&utm_campaign=diwali-sale-2026.

What the builder does with messy input

The builder is deliberately simple, and it does exactly what you type. Three behaviours matter:

  • It does not change case. Typing Newsletter, Email, Diwali Sale produces utm_source=Newsletter&utm_medium=Email&utm_campaign=Diwali Sale, capitals and space included. A link with a space in it may be altered or broken when pasted into some apps. Type lowercase values with hyphens yourself.
  • Blank fields get defaults. If you leave out the medium or campaign, the builder fills in cpc or campaign, and a missing source becomes google. Entering only https://example.com/offer, instagram, social gives utm_campaign=campaign. Reports then show a generic campaign name, or a source and medium you never meant. Always fill all four fields.
  • Commas split fields. A fifth value is ignored, so a campaign written as sale, 50% off is cut to sale. Avoid commas inside any value.

Generating clean campaign names

If your campaign names start life as marketing titles, the slug generator turns them into URL-safe text. For example, Diwali Sale: Flat 20% Off (Email #2) becomes diwali-sale-flat-20-off-email-2. It lowercases the text, replaces every run of other characters with a single hyphen and cuts the result at 60 characters. Two cautions: it drops non-English characters, so a Hindi campaign title needs a hand-written English name, and a long name is a sign the name is trying to carry too much. Campaign names work best when short.

If you really need a special character inside a value, such as an ampersand, encode it with the URL encoder before putting it in the builder. The builder does not encode anything for you. For instance, diwali sale & more encodes to diwali%20sale%20%26%20more. Encode the value only, not the whole link. In practice, avoiding special characters altogether is simpler.

Where not to use UTM tags

  • Links between pages of your own site. A visitor who arrives from search and then clicks a tagged internal link can have their visit attributed to your internal tag instead of the real origin. Use UTMs on links that bring people in from outside.
  • Links you cannot keep stable. Every distinct UTM combination is a separate URL. Do not generate a new campaign name for every post unless you will actually report on it.
  • Private or sensitive data. UTM values sit in the visible URL. Never put names, phone numbers or email addresses in them.

Limits: what this does not cover

  • The builder produces only utm_source, utm_medium and utm_campaign. It has no field for utm_term (paid keywords) or utm_content (to tell two links in the same email apart). You can add those to the link by hand.
  • If the URL contains a # section anchor, the builder appends the UTM values after it. For https://example.com/offer#plans the output is https://example.com/offer#plans?utm_source=..., which browsers treat as part of the anchor, so the tracking is lost. Remove the anchor before building, or move the UTM string in front of the # by hand.
  • It does not shorten links, store a history, check that the page loads or enforce your naming list. Keeping a shared sheet is your job.
  • It cannot tell you how your own analytics software groups a given medium or whether it treats case differences as separate values. Check your tool's documentation for the current rules, and keep to lowercase so the question does not matter.
  • UTM tags only describe clicks that carry the tag. Visitors who copy the link without its query string, or apps that strip it, will appear as direct or referral traffic.

A quick checklist before you publish a link

  1. Is every value lowercase, with hyphens and no spaces?
  2. Is the medium on your approved list?
  3. Does the campaign name say what and when?
  4. Did you fill all four fields, so no defaults crept in?
  5. Is the link going to an external placement, not an internal page?
  6. Did you open the finished link once to confirm the page loads?

Spend ten minutes writing your list of sources, mediums and campaign names, then build every link from it. That small discipline is what keeps a report readable a year from now.

Tools used in this article

  • UTM Builder — Build a UTM-tagged tracking URL by entering the destination URL, source, medium, and campaign as a comma-separated line — useful for quickly tagging links for Google Analytics.
  • Slug Generator — Convert any page title or phrase into a clean, lowercase, hyphenated URL slug — lowercased, stripped of special characters, and capped at 60 characters.
  • URL Encoder — Percent-encode text for safe use in URLs, or decode it back, using the native encodeURIComponent/decodeURIComponent functions.
  • Character Counter — Count the total characters in your text, shown both with and without spaces.
#utm#campaign tracking#analytics#naming conventions