In this guide: UTM parameters explained: what they are, the 5 parameters, building UTM links, naming conventions, and reporting in Google Analytics 4 to track every…
You share a link in your newsletter, on Instagram, and in a Facebook ad. Traffic arrives — but which campaign actually brought the visitors who signed up or bought? UTM parameters answer that question.
UTM parameters are tags you add to the end of a URL. When someone clicks the link, analytics tools like Google Analytics 4 read the tags and record exactly where the visitor came from.
Example:
https://hostreta.com/speed-up-wordpress/?utm_source=newsletter&utm_medium=email&utm_campaign=oct_speed_week
Without UTMs, many clicks show up as “direct” or vague “referral” traffic — especially from email apps, messaging apps, and some social platforms.
| Parameter | Purpose | Example |
|---|---|---|
utm_source (required) |
Where the traffic comes from | newsletter, instagram, facebook, google |
utm_medium (required) |
The marketing channel/type | email, social, cpc, referral, paid_social |
utm_campaign (required) |
The specific campaign | oct_speed_week, black_friday_2026 |
utm_content (optional) |
Differentiates links/creatives | header_button, reel_1, carousel_v2 |
utm_term (optional) |
Paid search keywords or extra detail | wordpress_hosting |
GA4 also supports additional parameters like utm_id (campaign ID), and it uses source and medium values to group traffic into default channel groups (Email, Organic Social, Paid Social, etc.). Using standard medium values (like email, social, cpc) helps GA4 classify traffic correctly.
Tools:
Steps:
Important: don’t use UTMs on internal links within your own website (e.g., from your homepage to a blog post). This overwrites the visitor’s original source and breaks your data.
Consistency is everything. Facebook, facebook, and fb appear as three different sources in reports.
Rules:
Example convention:
| Parameter | Allowed values |
|---|---|
| source | newsletter, facebook, instagram, linkedin, x, youtube, whatsapp, partner_name |
| medium | email, social, paid_social, cpc, referral, affiliate, qr |
| campaign | yyyy_mm_theme e.g., 2026_10_security_week |
| content | post_type_variant e.g., reel_hook_a, carousel_1 |
Keep a UTM log spreadsheet: date, link, source, medium, campaign, content, and notes.
Questions to answer:
Use insights to plan future content — for example, repurposing formats that convert best — see Social Media Scheduling Tools and How to Track Affiliate Links.
Further reading: OWASP Top 10 web security risks
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.