Developer ToolsBy Sam Holloway··6 min read

UTM Parameters Explained: How to Track Campaign Traffic in Google Analytics

UTM parameters show which campaigns and links drive traffic. Here is how to build them correctly and avoid the mistakes that pollute your analytics data.

UTM parameters are query string tags appended to URLs that tell Google Analytics (and other analytics platforms) where a visitor came from, which campaign sent them, and which specific link they clicked. Without them, traffic from email campaigns, social posts, and paid ads arrives in your analytics as direct or referral: making it impossible to measure what is working.

The five UTM parameters

  • utm_source: the platform or publisher sending traffic. Examples: newsletter, twitter, google, partner-site.
  • utm_medium: the marketing channel type. Examples: email, cpc (cost-per-click), social, organic, banner.
  • utm_campaign: the specific campaign name. Examples: spring-sale-2026, product-launch, welcome-series.
  • utm_term: the keyword that triggered a paid ad (mainly for Google Ads). Examples: pdf+merger+free.
  • utm_content: differentiates between multiple links in the same campaign. Examples: header-link, footer-cta, blue-button.

Which parameters are required

Only utm_source and utm_medium are technically required for meaningful data, but utm_campaign is essential for campaign analysis. utm_term and utm_content are optional and used for more granular tracking. A minimal UTM tag for an email campaign might look like: ?utm_source=newsletter&utm_medium=email&utm_campaign=june-product-update

Naming conventions that do not break your reports

  • Use lowercase consistently. 'Email' and 'email' appear as separate sources in analytics.
  • Use hyphens, not spaces or underscores, as word separators. Spaces become %20 in URLs and underscores are easy to confuse with adjacent characters.
  • Be consistent across campaigns. If you use 'newsletter' as the source for email this month, do not use 'email-newsletter' next month.
  • Avoid special characters except hyphens. Parentheses, slashes, and ampersands in UTM values cause URL encoding issues.
  • Use a shared naming document. Inconsistent naming by different team members produces fragmented data.

Where UTM parameters appear in analytics

In Google Analytics 4, UTM-tagged traffic appears in Traffic Acquisition reports. The source, medium, and campaign values become dimensions you can filter by, compare, and use in custom reports. This is what makes UTM parameters valuable: instead of seeing that 5,000 people visited your site, you can see that 2,000 came from the Tuesday email campaign, 1,500 from a specific social post, and 1,500 from a partner newsletter.

Common mistakes to avoid

  • UTM-tagging your own internal links: this overwrites the original source in analytics, making all traffic appear to come from yourself.
  • Using UTM parameters on links to other sites: UTM parameters are for tracking traffic coming to your site, not going from it.
  • Different teams using different naming for the same channel: creates split data that cannot be merged in reports.
  • Not using UTM tags in email campaigns: email traffic without tags shows as direct, hiding campaign performance entirely.

AlteredIdea's UTM Builder lets you fill in source, medium, campaign, term, and content, then copies the full tagged URL. All generated locally: your URLs are never sent anywhere.

S

Sam Holloway

Sam is a technical writer and developer who has spent over a decade building web tools and writing about software, security, and the web platform. He focuses on making complex topics genuinely useful for working developers and non-technical users alike.

Try it yourself

UTM Builder

Free, browser-based: your files never leave your device.

Open tool