WebmasterID logoWebmasterID
UTM tracking

UTM parameters explained: the five tags and how to use them

UTM parameters are query-string tags you add to a link so analytics can attribute the visit to a campaign even when the referrer is missing. This page explains the five tags, a consistent naming convention, and the hard rule that UTM values are public — so they must never contain personal data or secrets.

Verified against primary sources

The five UTM parameters

There are five standard tags. Three are essential and two are optional:

A naming convention that survives reporting

Pick one convention and never deviate: lowercase, hyphen-separated, no spaces. utm_source=Reddit and utm_source=reddit are two different rows in most tools. Keep a short documented list of allowed sources and mediums so links built by different people still aggregate.

What never belongs in a UTM

Because the URL is public and logged everywhere, UTM values must be safe to expose. Never encode a person's name, email, account ID, or any secret. Use stable, generic campaign labels — not per-user strings.

How it appears in analytics and logs

A visit carrying utm_* parameters tells you exactly which campaign, source, and medium drove it — independent of the referrer. Inconsistent casing or naming fragments the same campaign across multiple rows in reports.

Diagnostic use case

Build campaign links that attribute reliably, with a naming convention your reports can group cleanly.

What WebmasterID can help detect

WebmasterID reads utm_* parameters at ingest and attributes the visit to a campaign, giving you a reliable source even when the browser sends no referrer. It is strict about utm_* only — no gclid/fbclid-style identifiers.

Common mistakes

Privacy and accuracy notes

UTM parameters are visible in the URL, browser history, and logs. Never put names, emails, user IDs, or secret tokens in them. WebmasterID stores only utm_* campaign fields and rejects PII-shaped campaign data by convention.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.