DEV Community

Quicklity
Quicklity

Posted on

Stop Guessing Your UTMs: A Practical Guide to Clean Campaign Links

Campaign links fail quietly. A typo in utm_source, an inconsistent medium name, or a space in a campaign name can split one campaign into five different reports in Google Analytics — and you only notice weeks later, when the data is already messy.

This guide covers a simple, repeatable way to build UTM links that stay clean, plus the mistakes I see most often.

What each UTM parameter actually does

  • utm_source: where the traffic comes from, e.g. google, newsletter, instagram.
  • utm_medium: the type of traffic, e.g. cpc, email, social, referral.
  • utm_campaign: the name of the campaign, e.g. spring_sale_2026.
  • utm_term and utm_content: optional, useful for paid keywords and for telling apart two links in the same email or ad set.

You do not need all five on every link. Source, medium, and campaign are the core trio. Add term and content only when they genuinely help you compare things.

A naming rule that saves you later

Pick lowercase, no spaces, and one separator, then stick to it. For example: use underscores inside names (spring_sale) and keep a short list of allowed sources and mediums. If one person writes "Facebook", another writes "facebook", and a third writes "fb", Analytics treats them as three different sources.

Write your convention down somewhere your whole team can see it. A shared doc with ten lines beats a perfect system nobody follows.

Build the link in the right order

  1. Start with the final landing page URL, including any existing path — do not add UTMs to a redirect or a shortened link you cannot control.
  2. Add source, medium, and campaign.
  3. Add term or content only if you need them.
  4. Check the full URL before you copy it: one stray ampersand or unencoded character can break the whole string.
  5. Test it once in a browser and confirm the landing page loads and the parameters stay intact.

A free browser tool can handle the encoding and ordering for you. Quicklity's UTM Builder (https://quicklitytools.com/utm-builder) builds the link from your inputs and keeps the format consistent, which removes the most common copy-paste errors.

Mistakes that quietly ruin UTM data

  • Using UTMs on internal links. They overwrite the original source, so do not tag links inside your own site.
  • Changing naming mid-campaign. A rename halfway through splits your reporting in two.
  • Tagging every link differently "just in case". Extra parameters do not add insight; they add noise.
  • Forgetting to check the link after shortening it. Some shorteners strip parameters unless you configure them not to.
  • Using spaces or capital letters inconsistently. Both create duplicate rows in reports.

A quick checklist before you share any UTM link

  • Lowercase source, medium, and campaign?
  • No spaces, one separator style?
  • Landing page correct and loading?
  • Parameters still present after any shortener?
  • Same naming as the rest of the campaign?

If all five are yes, share it. If not, fix it now — it takes seconds today and saves hours of report cleanup later.

Clean UTMs are not about being fancy. They are about being consistent, so that when a campaign works, you can actually prove which channel, post, or email did the work.

Top comments (0)