UTM Tracking 11 min read

How to Build UTM Links: Step-by-Step Guide for Campaign Tracking

Master UTM link building with this practical guide. Learn to create, test, and manage UTM-tagged URLs that give you accurate campaign attribution data.

Maxim Baeten
Maxim Baeten

Performance Marketing

UTM links are the foundation of campaign tracking. Without them, you're guessing which marketing efforts drive results. This guide walks you through building UTM links correctly—no prior experience required.

What Are UTM Links?

UTM links are regular URLs with extra tracking information added to the end. When someone clicks a UTM link, that tracking information travels with them to your website and gets recorded in Google Analytics.

UTM stands for "Urchin Tracking Module"—a reference to Urchin Software, which Google acquired and turned into Google Analytics. The name stuck, even though Urchin hasn't existed since 2005.

What UTM links tell you:

  • Where traffic came from (which platform or website)
  • How it arrived (which marketing channel)
  • Which campaign sent it (your campaign identifier)
  • Which variation was clicked (for A/B testing)

Without UTM links, traffic from email newsletters, social media posts, and paid ads often gets lumped together as "direct" or "referral" traffic—making it impossible to know what's working.

Anatomy of a UTM Link

A UTM link has two parts: your base URL and the UTM parameters. Let's break down an example:

https://www.example.com/landing-page?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q1_lead_gen
  • Base URL: https://www.example.com/landing-page
  • Question mark (?): Separates the URL from parameters
  • Ampersand (&): Separates each parameter
  • Parameter format: parameter_name=value

The Five UTM Parameters

Parameter Required Purpose Example
utm_source Yes Traffic origin (platform/site) google, facebook
utm_medium Yes Marketing channel type cpc, email, social
utm_campaign Yes Campaign identifier spring_sale_2026
utm_content No Ad/link variation banner_a, cta_button
utm_term No Paid search keyword running+shoes

Step-by-Step: Building a UTM Link

Step 1: Start With Your Destination URL

Begin with the clean URL of the page you want to send traffic to. Remove any existing parameters to start fresh.

https://www.yoursite.com/product-page

Step 2: Add utm_source

Identify where the traffic will come from. Use the platform name, lowercase.

https://www.yoursite.com/product-page?utm_source=facebook

Common sources: google, facebook, instagram, linkedin, twitter, newsletter

Step 3: Add utm_medium

Specify the marketing channel type. Use standard values for GA4 channel grouping.

https://www.yoursite.com/product-page?utm_source=facebook&utm_medium=paidsocial

Common mediums: cpc, paidsocial, email, social, display, affiliate

Step 4: Add utm_campaign

Name your campaign. Include date, objective, and audience for easy identification.

https://www.yoursite.com/product-page?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q1_promo_newcustomers

Step 5: Add Optional Parameters (If Needed)

Use utm_content to differentiate ad variations or link placements.

https://www.yoursite.com/product-page?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q1_promo_newcustomers&utm_content=carousel_ad

Step 6: Test Your Link

Before deploying, verify the link works and tracks correctly in Google Analytics.

  • Click the link and confirm the page loads
  • Check GA4 Real-Time reports for your visit
  • Verify source, medium, and campaign appear correctly

UTM Builder Tools

You can build UTM links manually, but tools reduce errors and save time.

Free UTM Builders

  • Google Campaign URL Builder: Basic, official tool from Google
  • UTM.io: Free tier with team features
  • Bitly: Creates short URLs with UTM tracking

What to Look For

A good UTM builder should:

  • Enforce naming conventions (lowercase, no spaces)
  • Store frequently used values
  • Validate URLs before generating
  • Track which UTMs have been created
  • Allow team collaboration

marketingOS UTM Tag Organizer

Build UTM links with enforced naming conventions, stored templates, and team-wide consistency. Part of the marketingOS suite for performance marketers.

Learn more →

Testing Your UTM Links

Never deploy UTM links without testing. Here's the verification process:

Quick Test Method

  1. Open Google Analytics 4
  2. Navigate to Reports → Realtime
  3. Open an incognito/private browser window
  4. Click your UTM link
  5. Return to GA4 within 30 seconds
  6. Look for your visit in Real-Time with correct source/medium

What to Verify

  • Page loads without errors (no broken redirect)
  • Source shows your utm_source value
  • Medium shows your utm_medium value
  • Campaign appears correctly
  • No duplicate parameters or encoding issues

Tip: Use incognito mode to avoid cached session data affecting your test. Your browser may have cookies that interfere with clean testing.

UTM Examples by Platform

Facebook/Meta Ads

https://yoursite.com/landing?utm_source=facebook&utm_medium=paidsocial&utm_campaign=2026q1_conversions_lookalike&utm_content=video_testimonial

Email Newsletter

https://yoursite.com/blog-post?utm_source=newsletter&utm_medium=email&utm_campaign=weekly_digest_202601&utm_content=featured_article

LinkedIn Ads

https://yoursite.com/demo?utm_source=linkedin&utm_medium=paidsocial&utm_campaign=2026q1_demo_enterprise&utm_content=sponsored_content

Twitter/X Organic

https://yoursite.com/announcement?utm_source=twitter&utm_medium=social&utm_campaign=product_launch_2026&utm_content=launch_thread

Partner/Affiliate Link

https://yoursite.com/pricing?utm_source=partner_acme&utm_medium=affiliate&utm_campaign=q1_partner_program

Managing UTM Links at Scale

Once you're running multiple campaigns, UTM management becomes critical. Here's how to stay organized:

Create a UTM Tracking Spreadsheet

Track every UTM link you create with these columns:

  • Full UTM URL
  • Short URL (if using a shortener)
  • Source, Medium, Campaign, Content values
  • Date created
  • Campaign end date
  • Owner/Creator
  • Where it's used (email, ad, post)

Establish Naming Conventions

Document and enforce consistent naming across your team. See our UTM naming conventions guide for a complete framework.

Review and Clean Regularly

Schedule monthly reviews to:

  • Archive expired campaign UTMs
  • Identify and fix naming inconsistencies
  • Update conventions based on new channels
  • Remove broken or redirected destination URLs

Common UTM Mistakes to Avoid

Using UTMs on Internal Links

UTM parameters on internal links (links within your own site) override the original traffic source. If someone arrives from Facebook, clicks an internal UTM link, and converts—the conversion gets attributed to your internal link instead of Facebook.

Fix: Only use UTMs on links from external sources pointing to your site.

Duplicate Question Marks

If your URL already has parameters (like ?ref=homepage), adding another ? for UTMs breaks the link.

site.com/page?ref=home?utm_source=google

Fix: Use & instead of ? when the URL already has parameters.

site.com/page?ref=home&utm_source=google

Not URL-Encoding Special Characters

Spaces and special characters break URLs. A space becomes %20, which can cause issues.

Fix: Use underscores or hyphens instead of spaces. Avoid &, =, ?, and # in parameter values.

Inconsistent Capitalization

"Facebook" and "facebook" appear as separate sources in your reports.

Fix: Always use lowercase for all UTM parameter values.

Not Testing Before Launch

Discovering broken UTMs after a campaign launches means lost tracking data you can't recover.

Fix: Always test in GA4 Real-Time before deploying any UTM link.

Frequently Asked Questions

What is a UTM link?

A UTM link is a URL with special tracking parameters (UTM parameters) added to it. These parameters tell analytics tools where traffic came from, how it arrived, and which campaign sent it. When someone clicks a UTM link, this data appears in your Google Analytics reports.

Which UTM parameters are required?

Three UTM parameters are required: utm_source (where traffic comes from), utm_medium (the marketing channel type), and utm_campaign (the specific campaign name). Two parameters are optional: utm_content (for A/B testing) and utm_term (for paid search keywords).

How do I test if my UTM link is working?

Open Google Analytics, go to the Real-Time reports, then click your UTM link in a new browser tab (preferably incognito). Within seconds, you should see your visit appear with the correct source, medium, and campaign data.

Can I use UTM parameters on internal links?

You should avoid using UTM parameters on internal links (links within your own website). UTM parameters override the original traffic source, so internal UTMs will incorrectly attribute conversions to internal pages instead of the actual external source that brought the visitor.

Do UTM links work with Google Ads auto-tagging?

Yes, but they serve different purposes. Google Ads auto-tagging (gclid) provides detailed Google Ads data in linked Google Analytics accounts. UTM parameters provide consistent tracking across all platforms. For Google Ads, auto-tagging is usually sufficient; UTMs are essential for other channels.

Related Resources

Build Better UTM Links

marketingOS UTM Tag Organizer helps you create consistent, error-free UTM links. Enforce naming conventions, store templates, and keep your team aligned on tracking standards.

Join the Waitlist