Analytics

UTM tagging done right so campaigns aren't a mess

TS Talha Shahzad··5 min read
The short version
  • UTM parameters must follow a strict, standardized naming convention to prevent fragmented campaign data.
  • Analytics platforms are case-sensitive: Facebook, facebook, and FB will appear as three separate traffic sources.
  • Never use UTM parameters on internal links, as they reset user sessions and wipe out original attribution data.
  • Document your UTM schema in a shared sheet to ensure the entire team uses the exact same spelling and formats.

If you are running digital marketing campaigns and pulling reports for your clients, you have probably asked: how should I set up UTM parameters? It is a simple question with a high stakes answer. Sloppy UTM tagging is the quickest way to turn your Google Analytics dashboard into an expensive, unreadable mess.

When multiple people on an agency team build URLs for campaigns without a strict agreement, consistency dies. One person tags a Facebook link with utm_source=Facebook, another uses utm_source=facebook, and a third uses utm_source=FB.

To you, these mean the exact same thing. To Google Analytics 4, they are three entirely separate traffic sources. When you try to pull a report on how much revenue social media generated, your data is split across multiple rows, forcing you to export the mess to a spreadsheet and spend hours merging rows manually.

Establishing a strict UTM tagging protocol is the only way to protect your conversion data and ensure your marketing reports make sense.

The anatomy of split rows: why spelling matters

Google Analytics is case-sensitive. It does not perform spell-checks or attempt to clean up your variables. It records exactly what it receives in the URL query parameters.

Consider what happens if a simple Meta campaign is launched with inconsistent UTM parameters:

  • utm_source=facebook&utm_medium=cpc
  • utm_source=Facebook&utm_medium=PaidSocial
  • utm_source=fb&utm_medium=paid-social
  • utm_source=facebook.com&utm_medium=cpc

In your acquisition reports, this single campaign will show up split across four different traffic sources and three different marketing mediums. The platform's Default Channel Grouping rules will break down. Traffic that should be categorized as "Paid Social" will get dumped into "Unassigned" or "Organic Social," making it look like your paid campaign is underperforming.

This fragmentation makes it impossible to automate client reports. If your dashboards rely on clean channel definitions, messy UTMs will break your charts and make it look like you are losing leads when you are simply miscategorizing them.

The rules of UTM hygiene

To keep your analytics reports clean, you must enforce a strict set of formatting rules across your entire team.

Rule 1: Always use lowercase

Make it a hard rule that all UTM parameters must be strictly lowercase. No exceptions.

Use email instead of Email, and cpc instead of CPC. If you use social ads, settle on facebook and linkedin as your source names, never capitalizing the first letter. This keeps all traffic from a platform bundled under a single, predictable label.

Rule 2: Replace spaces with hyphens

Never use spaces in your UTM parameters. Browsers translate spaces into %20 characters in the URL address bar.

If you name a campaign "Winter Sale 2026," GTM will read it as winter%20sale%202026. This looks amateurish in the URL and makes searching your reports difficult. Use hyphens instead: winter-sale-2026.

Rule 3: Use hyphens instead of underscores

While both hyphens and underscores work, hyphens are the standard for web URLs. They are easier to read and maintain consistency. Stick to one pattern across all campaigns.

Want a website that turns visitors into customers, not just compliments?

Book a 15-min intro

This is the most destructive analytics mistake a marketer can make. Never use UTM parameters on links that point from one page of your website to another.

For example, do not add utm_source=homepage_banner to a link pointing from your homepage to a landing page.

Here is why: when a user clicks a link containing UTM parameters, GA4 assumes the user has left the site and returned from a new marketing campaign. It immediately terminates the current user session and starts a new one.

This causes two severe reporting errors:

  1. Attribution loss: The original traffic source (e.g., Google Ads or Organic Search) is erased. The conversion will be attributed to your internal homepage banner instead of the channel that actually brought the visitor to your site.
  2. Session inflation: Your total session count will look inflated, while your average engagement time per session will drop, because you are artificially chopping single visits into multiple sessions.

If you want to track which banners or links on your own site are getting clicked, use GTM custom click events or element visibility triggers, not UTM parameters.

Standardizing your medium values

GA4 uses the utm_medium parameter to categorize traffic into Default Channel Groupings. If you use custom, non-standard medium names, GA4 will place your traffic in the "Unassigned" folder.

To ensure your traffic maps to the correct default channels, use these standard medium values:

  • Paid Search: Use cpc or ppc.
  • Paid Social: Use paid-social, paid_social, or social-ads.
  • Email: Use email.
  • Display Ads: Use display or banner.
  • Affiliates: Use affiliate.

If you use a newsletter link, do not use utm_medium=newsletter. Use utm_medium=email and set utm_source=newsletter or use utm_campaign to specify the issue. This keeps your channel groupings intact.

Enforcing consistency across your agency

You cannot trust people to remember these rules. You must build a system that prevents human error.

  1. Create a shared UTM Builder sheet: Build a simple spreadsheet where team members enter the landing page URL, source, medium, and campaign. Use dropdown menus for the source and medium columns to limit choices to your pre-approved list. Use Excel or Google Sheets formulas to automatically lowercase the input, replace spaces with hyphens, and concatenate the final URL.
  2. Document your naming taxonomy: Write down your naming schema. If your campaign taxonomy requires including the year and audience (e.g., brand-awareness-2026-founders), make sure everyone follows that exact structure.
  3. Audit your acquisition reports monthly: Go to GA4, navigate to Acquisition, select Traffic Acquisition, and search for uppercase letters or %20 characters in your source and medium dimensions. If you find them, trace who built the link and correct the error before the next campaign launch.

Clean marketing data is the baseline for budget adjustments. If you cannot identify which channel drove a sale, you cannot decide where to allocate your next advertising dollar. If you need help cleaning up your GA4 channel groupings or constructing a robust UTM spreadsheet template, a brief attribution and tracking setup project can get your team aligned. Stop guessing where your leads come from, and start tagging your links with discipline.

Prefer to hire through Upwork?
Top Rated Plus, 100% Job Success, 450+ projects shipped. See the reviews and start a contract.
Hire me on Upwork

FAQ

How should I set up UTM parameters?

Use five standard parameters: utm_source (where the traffic comes from), utm_medium (the marketing channel), utm_campaign (the specific campaign), utm_term (keywords), and utm_content (the specific ad or link clicked). Keep them lowercase and use hyphens for spaces.

What happens if I use UTM parameters on internal links?

Adding UTM parameters to links pointing from one page of your site to another breaks the user session in GA4. It forces the system to start a new session and attribute any conversions to the internal link instead of the original acquisition source.

Should I use spaces or hyphens in UTM campaign names?

Never use spaces. Spaces turn into '%20' characters in URLs, which make your reporting tables unreadable. Use hyphens (e.g., winter-sale-2026) or underscores to keep URLs clean and readable.

All posts
the next step is small

Want a site that does this for you?

15 minutes, no deck, no pressure. Worst case, you leave with a free plan.

keep reading

More notes