When someone clicks a link to your site, Google Analytics records where they came from — Google, Facebook, a newsletter. But for links you share yourself, the attribution can be vague: "direct" traffic is often actually email clicks, and "social" traffic doesn't tell you which campaign or post it came from. UTM parameters solve this by tagging the URL with specific information about the source.
The Five UTM Parameters
| Parameter | Required? | What it tracks |
|---|---|---|
utm_source | Yes | Where the traffic comes from (newsletter, twitter, facebook) |
utm_medium | Yes | The marketing channel (email, social, cpc, banner) |
utm_campaign | Yes | The specific campaign (eid-sale-2026, product-launch) |
utm_content | Optional | Which specific link or creative (button-top, image-link) |
utm_term | Optional | Paid search keyword (usually auto-filled by ad platforms) |
A URL with UTM parameters looks like: `` https://mentormakers.pk/tools/compress-pdf?utm_source=newsletter&utm_medium=email&utm_campaign=june-tips ``
How to Build UTM Links
- Open UTM Builder.
- Enter the destination URL.
- Fill in source, medium and campaign (and optionally content).
- Copy the generated URL with parameters appended.
- Use this link wherever you're sharing it.
Naming Conventions That Matter
In Google Analytics, UTM values are case-sensitive and appear exactly as written. Inconsistency creates fragmented data:
| Bad (inconsistent) | Good (consistent) |
|---|---|
| Facebook, facebook, FB | |
| Email Newsletter, email, newsletter | |
| June 2026, june_2026, june-2026 | june-2026 |
Pick lowercase with hyphens as a standard — it reads clearly in reports and avoids accidental case mismatches. For tracking social campaigns specifically, see how to track social media traffic with UTM links.
UTM Parameters in Email Campaigns
Email marketing is the most important use case for UTM parameters because email traffic often appears as "direct" in analytics by default. Without UTMs, you can't tell whether a visitor came from your newsletter, a cold outreach email, or a transactional message. Add UTMs to every link in every email campaign — the investment is one extra step per link, and the return is knowing exactly which campaigns drive which traffic.
For tracking social media specifically, see how to track social media traffic with UTM links. For reading the results once you have data, see Google Analytics 4 basics for small websites.
Use UTM Builder to generate correctly formatted UTM links for any campaign. The tool ensures parameters are properly encoded and no formatting errors creep into the final URL — a common issue when constructing UTM links manually.