UTM Parameters: The Right Way to Tag Every Link You Share

Emily RedmondData Analyst, EmilyticsApril 18, 2026

UTM Parameters: The Right Way to Tag Every Link You Share

By Emily Redmond, Data Analyst at Emilytics · April 2026

TL;DR: UTM parameters tell GA4 where a link came from. Without them, email clicks, social posts, and ad links get misattributed as "direct." Tag every non-organic link with utm_source, utm_medium, and utm_campaign.


What Are UTM Parameters?

UTM parameters are tags you add to a URL that tell GA4 where a link came from.

Format: ?utm_source=SOURCE&utm_medium=MEDIUM&utm_campaign=CAMPAIGN

Example:

https://yoursite.com/article?utm_source=linkedin&utm_medium=social&utm_campaign=product-launch

GA4 reads these parameters and attributes the traffic to:

  • Source: LinkedIn
  • Medium: Social
  • Campaign: Product launch

The Five UTM Parameters

1. utm_source (Required)

Where the click came from.

Examples: email, facebook, linkedin, newsletter, blog

Rules:

  • Use lowercase
  • No spaces (use hyphens or underscores)
  • Be specific: linkedin (not social, network, platform)

2. utm_medium (Required)

The type of channel.

Examples: email, social, cpc (cost per click), organic

Rules:

  • Standard values: email, social, cpc, display, organic, referral
  • Custom values: paid_social, owned_media, affiliate
  • Use lowercase and consistent naming

3. utm_campaign (Required)

The specific campaign or promotion.

Examples: black-friday, product-launch, summer-sale

Rules:

  • Use hyphens to separate words: black-friday (not blackfriday or black_friday)
  • Make it descriptive: q4-2026-promo (not campaign1)
  • Avoid generic names: email-blast (not email)

4. utm_content (Optional)

Differentiates ads or content within a campaign.

Use for A/B testing or tracking different versions.

Examples: ad-v1, button-blue, hero-image

Link A: utm_campaign=sale&utm_content=email-v1
Link B: utm_campaign=sale&utm_content=email-v2

GA4 shows which version got more clicks.

5. utm_term (Optional)

Tracks keywords (mainly for paid search).

Example: utm_term=best-crm-software

Google Ads auto-fills this. Manual use is rare.


UTM Naming Conventions

Consistency matters. GA4 treats facebook and Facebook as different sources.

Standardized Convention

Use this across all links:

ParameterFormatExample
utm_sourcelowercaseemail, facebook, linkedin
utm_mediumlowercaseemail, social, cpc
utm_campaignlowercase-with-hyphensblack-friday, product-launch
utm_contentlowercase-with-hyphensbutton-blue, ad-v1

Example URLs

Email newsletter:

https://yoursite.com/blog?utm_source=email&utm_medium=email&utm_campaign=weekly-digest

LinkedIn post:

https://yoursite.com/guide?utm_source=linkedin&utm_medium=social&utm_campaign=b2b-webinar

Facebook ad:

https://yoursite.com/offer?utm_source=facebook&utm_medium=paid_social&utm_campaign=summer-sale&utm_content=carousel-ad

Affiliate partner link:

https://yoursite.com?utm_source=partner-name&utm_medium=affiliate&utm_campaign=referral-program

Where to Add UTM Parameters

1. Email Links

Every link in every email.

Weekly newsletter: utm_campaign=weekly-digest
Promotional email: utm_campaign=flash-sale
Welcome series: utm_campaign=welcome-day1, welcome-day3, etc.

2. Social Media Posts

Posts where you link to your site.

LinkedIn: utm_source=linkedin&utm_campaign=product-update
Twitter: utm_source=twitter&utm_campaign=blog-post
TikTok: utm_source=tiktok&utm_campaign=viral-video

Note: GA4 auto-detects major platforms (you don't need UTMs), but they give you more control.

3. Paid Ads

Google Ads auto-fills some UTMs, but add your own for clarity:

Google Ads: utm_source=google&utm_medium=cpc&utm_campaign=branded-keywords
Facebook Ads: utm_source=facebook&utm_medium=paid_social&utm_campaign=lead-gen-q2

4. Affiliate/Partner Links

Affiliate partners sharing your link:

Partner A: utm_source=partner-a&utm_medium=affiliate&utm_campaign=referral
Partner B: utm_source=partner-b&utm_medium=affiliate&utm_campaign=referral

5. Guest Posts / Backlinks

When you publish a guest post on another blog:

https://yoursite.com/case-study?utm_source=partner-blog&utm_medium=referral&utm_campaign=guest-post

(This helps you track traffic from that specific guest post.)


Tools for Creating UTM Parameters

Manually adding UTMs to every link is tedious. Use tools:

1. Google Analytics Campaign URL Builder (Free)

  1. Go https://ga-dev-tools.web.app/campaign-url-builder/
  2. Enter base URL
  3. Fill in source, medium, campaign
  4. Tool generates full URL with UTMs

2. URL Builder (Bitly, Urchin, etc.)

Many link shorteners (Bitly, TinyURL) let you add UTMs while shortening.

3. Email Platform Built-in

Most email platforms (Mailchimp, ConvertKit, ActiveCampaign) let you add UTMs directly in the link editor.


Common UTM Mistakes

Mistake 1: Inconsistent Naming

Some links: utm_campaign=black-friday
Other links: utm_campaign=blackfriday
Other links: utm_campaign=Black Friday

GA4 treats these as 3 different campaigns. Data is fragmented.

Fix: Document your naming convention. Stick to it.

Mistake 2: Adding UTMs to Organic Links

Linking to another blog post on your site: 
https://yoursite.com/blog?utm_source=internal&utm_medium=internal&utm_campaign=related-post

This marks internal traffic as external. Your organic/internal metrics are wrong.

Fix: Only add UTMs to links from outside your site.

Mistake 3: Generic Campaign Names

utm_campaign=email
utm_campaign=social
utm_campaign=ads

You can't tell which specific email or which social post drove traffic.

Fix: Be specific: utm_campaign=weekly-digest-may, utm_campaign=linkedin-product-announcement

Mistake 4: Forgetting utm_medium

utm_source=email (but no utm_medium)

GA4 won't know if this is "email" or some other medium from that source.

Fix: Always include both source and medium.


Frequently Asked Questions

Q: Do I need UTM parameters if GA4 auto-detects platforms? A: GA4 detects Facebook, Instagram, LinkedIn, etc. But UTMs give you more control and data. Recommended: add UTMs anyway.

Q: What happens if I use spaces or capital letters in UTMs? A: GA4 still reads them, but they're treated as separate values. "Black Friday" ≠ "black-friday". Stay consistent.

Q: Can I use special characters in UTMs? A: No. Stick to: lowercase letters, numbers, hyphens, underscores. No spaces, no special characters.

Q: Should I update UTM names if I realize I made a mistake? A: No, you can't retroactively change past data. But going forward, use correct names. Past data stays under old names.

Q: How long can a UTM parameter be? A: No strict limit, but keep them short and readable. Under 50 characters is good.


The Bottom Line

UTM parameters are how you tell GA4 where traffic comes from.

Tag everything that isn't organic search. Email, social, ads, affiliate links—all need UTMs.

Be consistent. Document your naming convention. Then you'll have clean, accurate data about where your traffic actually comes from.


Emily Redmond is a data analyst at Emilytics — AI analytics agent watching your data around the clock. 8 years experience. Say hi →