Analytics

UTM Parameters 2026: Complete Guide to Campaign Tracking

Matt
Matt
8 min read

TL;DR - Quick Answer

14 min read

Tips you can use today. What works and what doesn't.

UTM Parameters: Complete Guide to Campaign Tracking

UTM parameters are tags you add to URLs to track where your traffic comes from.

Without them, Google Analytics shows "direct" or "social" with no details. With them, you know exactly which post, email, or ad drove each visit.

Create content, post everywhere

Create posts, images, and carousels with AI. Schedule to 9 platforms in seconds.

Start your free trial

Quick Answer: What Are UTM Parameters?

UTM parameters (Urchin Tracking Module) are text codes added to the end of URLs that tell analytics tools where traffic originated.

Example:

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

When someone clicks this link, Google Analytics records:

  • Source: linkedin
  • Medium: social
  • Campaign: product-launch

The 5 UTM Fields Explained

UTM ParameterRequiredPurposeExample
utm_sourceYesWhere traffic comes fromlinkedin, newsletter, google
utm_mediumYesMarketing channel typesocial, email, cpc, organic
utm_campaignYesCampaign namespring-sale, product-launch
utm_termNoPaid search keywordsrunning+shoes
utm_contentNoDifferentiate similar linksheader-cta, footer-link

utm_source (Required)

What it tracks: The specific platform or website sending traffic.

Examples:

  • utm_source=facebook
  • utm_source=newsletter
  • utm_source=google
  • utm_source=twitter
  • utm_source=partner-site

Best practice: Use lowercase, consistent naming. "Facebook" and "facebook" create separate entries.


utm_medium (Required)

What it tracks: The type of marketing channel.

Standard values:

MediumWhen to Use
socialOrganic social media posts
emailEmail campaigns
cpcPaid clicks (ads)
organicOrganic search
referralLinks from other sites
displayDisplay/banner ads
affiliateAffiliate links

Best practice: Stick to Google's standard mediums for accurate default channel grouping.


utm_campaign (Required)

What it tracks: The specific campaign or promotion.

Examples:

  • utm_campaign=black-friday-2026
  • utm_campaign=product-launch
  • utm_campaign=weekly-newsletter
  • utm_campaign=q1-webinar-series

Best practice: Use descriptive, consistent naming. Include dates if running multiple versions.


Quick Knowledge Check
Test your understanding

You're running a paid Facebook ad for your summer sale. What should utm_medium be?

💡
Hint: Use 'cpc' for paid ads, 'social' for organic posts. This keeps your channel groupings clean in GA4.

utm_term (Optional)

What it tracks: Keywords for paid search campaigns.

When to use:

  • Google Ads manual tagging
  • Bing Ads campaigns
  • Any keyword-targeted advertising

Example:

utm_term=social+media+management+software

Note: Google Ads auto-tags with gclid, so utm_term is often redundant for Google campaigns.


utm_content (Optional)

What it tracks: Differentiates links in the same campaign.

Use cases:

  • A/B testing ad creatives
  • Multiple links in one email
  • Different CTAs on the same page

Examples:

  • utm_content=blue-button vs utm_content=red-button
  • utm_content=header-link vs utm_content=footer-link
  • utm_content=image-ad vs utm_content=text-ad

How to Build UTM URLs

Option 1: Google's Campaign URL Builder

Free tool: Google Campaign URL Builder

  1. Enter your website URL
  2. Fill in UTM parameters
  3. Copy the generated URL
  4. Use a URL shortener if needed

Option 2: Spreadsheet Template

Create a spreadsheet with columns:

  • Base URL
  • Source
  • Medium
  • Campaign
  • Content
  • Full URL (formula)

Formula:

=A2&"?utm_source="&B2&"&utm_medium="&C2&"&utm_campaign="&D2&IF(E2<>"","&utm_content="&E2,"")

Option 3: UTM Builder Tools

Many social media tools include UTM builders:

  • SocialRails (built-in)
  • Hootsuite
  • Sprout Social
  • Buffer

UTM Best Practices

Naming Conventions

DO:

  • Use lowercase only (facebook not Facebook)
  • Use hyphens for spaces (spring-sale not spring sale)
  • Be consistent across campaigns
  • Document your naming conventions

DON'T:

  • Mix cases (Facebook, FACEBOOK, facebook)
  • Use spaces (breaks URLs)
  • Use special characters
  • Create one-off names

Standardize Your Values

Create a reference document:

Sources:

Platformutm_source Value
LinkedInlinkedin
Facebookfacebook
Twitter/Xtwitter
Instagraminstagram
Emailnewsletter or email
Google Adsgoogle

Mediums:

Channel Typeutm_medium Value
Organic socialsocial
Paid socialcpc or paid-social
Email marketingemail
Paid searchcpc
Display adsdisplay
Affiliateaffiliate

Quick Knowledge Check
Test your understanding

Your analytics shows traffic from 'Facebook', 'facebook', and 'fb'. What went wrong?

💡
Hint: Create a UTM naming guide and share it with everyone who creates links.

UTM Parameters by Channel

Social Media UTMs

LinkedIn organic post:

?utm_source=linkedin&utm_medium=social&utm_campaign=thought-leadership

Facebook paid ad:

?utm_source=facebook&utm_medium=cpc&utm_campaign=spring-sale&utm_content=carousel-ad

Twitter/X bio link:

?utm_source=twitter&utm_medium=social&utm_campaign=bio-link

Email UTMs

Newsletter:

?utm_source=newsletter&utm_medium=email&utm_campaign=weekly-digest-jan-20

Promotional email:

?utm_source=email-list&utm_medium=email&utm_campaign=flash-sale&utm_content=hero-button

Google Ads:

?utm_source=google&utm_medium=cpc&utm_campaign=brand-keywords&utm_term={keyword}

Display ads:

?utm_source=gdn&utm_medium=display&utm_campaign=retargeting&utm_content=300x250

Viewing UTM Data in Google Analytics

GA4 Reports

Traffic Acquisition Report:

  1. Go to Reports → Acquisition → Traffic Acquisition
  2. Change dimension to "Session source/medium"
  3. Add secondary dimension for "Session campaign"

Explore (Custom Reports):

  1. Go to Explore → Blank
  2. Add dimensions: Source, Medium, Campaign
  3. Add metrics: Sessions, Conversions, Revenue

Key Metrics to Track

MetricWhy It Matters
SessionsVolume from each source
Engagement rateQuality of traffic
ConversionsBusiness results
RevenueROI by campaign

Common UTM Mistakes

Mistake 1: Inconsistent Naming

Problem: "facebook", "Facebook", "FB" all create separate entries.

Fix: Document standards. Use lowercase. Audit regularly.

Problem: UTM on internal links resets session attribution.

Fix: Only use UTMs for external traffic. Never tag links within your own site.

Mistake 3: Forgetting UTMs

Problem: Traffic shows as "direct" or "referral" with no campaign data.

Fix: Build UTMs into your workflow. Use templates. Check before publishing.

Mistake 4: Overly Complex Parameters

Problem: utm_campaign=q1-2026-spring-launch-phase-2-variant-b-test-3

Fix: Keep it readable. You'll analyze this data. utm_campaign=spring-launch-2026 is fine.

Mistake 5: Not Shortening URLs

Problem: Long UTM URLs look spammy in social posts.

Fix: Use URL shorteners (Bitly, Rebrandly) or your own short domain.


Quick Knowledge Check
Test your understanding

Should you add UTM parameters to links in your website's navigation menu?

💡
Hint: UTMs are for external sources only. For internal click tracking, use GA4 events.

UTM Tracking Checklist

Before Every Campaign

  • Define source, medium, and campaign values
  • Check against your naming conventions
  • Build URLs with a UTM tool
  • Test links before publishing
  • Shorten URLs if needed

Monthly Maintenance

  • Audit analytics for naming inconsistencies
  • Update documentation with new campaigns
  • Review top campaigns by conversions
  • Archive old campaign data

UTM Parameter FAQ

Do UTMs affect SEO? No. Google ignores UTM parameters when indexing. They don't help or hurt rankings.

Do I need UTMs if I use Google Ads auto-tagging? Auto-tagging (gclid) handles Google Ads. UTMs are redundant there. Use them for other channels.

How long should UTM parameters be? As short as possible while being descriptive. GA4 has no hard limit, but shorter is cleaner.

Can I use UTMs with link shorteners? Yes. Add UTMs to your full URL, then shorten. The UTMs travel with the shortened link.

What if someone removes my UTM parameters? Traffic shows as direct or referral. You can't force UTMs to stay, but most users don't edit URLs.


Quick Reference

Standard UTM Template

https://yoursite.com/page?utm_source=SOURCE&utm_medium=MEDIUM&utm_campaign=CAMPAIGN

Social Media Template

?utm_source=[platform]&utm_medium=social&utm_campaign=[campaign-name]

Email Template

?utm_source=newsletter&utm_medium=email&utm_campaign=[email-name]&utm_content=[link-location]
?utm_source=[platform]&utm_medium=cpc&utm_campaign=[campaign-name]&utm_content=[ad-variant]

Analytics Guides:

Tracking Tools:

Campaign Strategy:

Was this article helpful?

Let us know what you think!

#SocialMedia#ContentStrategy#DigitalMarketing

📚 Continue Learning

More articles to boost your social media expertise