If you've ever clicked a link and noticed a string of text after a question mark in the URL — something like ?utm_source=facebook&utm_medium=cpc&utm_campaign=summer_sale — you've encountered a UTM parameter. These small tags are one of the most powerful, and most underused, tools for understanding exactly where your traffic and conversions come from.
This guide explains what they are, how to build them, and how to avoid the common mistakes that make campaign data messy.
Key takeaways:
- UTM parameters tell Google Analytics exactly where a visitor came from, instead of GA4 guessing based on referrer data
- The three required parameters are source, medium, and campaign—term and content are optional, mainly for paid search and A/B testing
- Inconsistent naming (like
- Never UTM-tag internal links on your own site—it resets session attribution and skews your data
- A documented naming convention prevents fragmentation as more people on your team start creating campaign links
What Are UTM Parameters?
UTM (Urchin Tracking Module) parameters are short pieces of text added to the end of a URL that tell Google Analytics exactly where a visitor came from. Without them, GA4 can only guess at traffic sources based on referrer data and platform defaults — which is often accurate for organic search, but frequently vague or wrong for social media, email, and other campaigns.
Without UTM tagging, a link shared in an email newsletter, a Facebook post, and an Instagram story might all get lumped together as generic "social" or "referral" traffic — making it impossible to tell which specific campaign actually drove results.
The Five UTM Parameters
| Parameter | Required? | Purpose | Example Value |
|---|---|---|---|
| utm_source | Yes | Identifies the platform or publisher | facebook, newsletter, google |
| utm_medium | Yes | Identifies the marketing medium | cpc, email, social, referral |
| utm_campaign | Yes | Identifies the specific campaign | summer_sale, spring_launch_2026 |
| utm_term | Optional | Identifies paid search keywords | web+design+services |
| utm_content | Optional | Differentiates similar ads or links | banner_ad, text_link, cta_button |
You don't need all five for every link. Most campaigns only need source, medium, and campaign — term and content are mainly useful for paid search and A/B testing between multiple versions of the same ad.
Building Your First UTM Link
Let's say you're promoting a blog post through an email newsletter. Your base URL is: