How to Set Up UTM Tracking Parameters in Google Analytics 4: A Step-by-Step Guide

by | Jul 24, 2026 | Uncategorized

If your GA4 reports show Facebook, facebook, and FB as three different sources, your campaign attribution is silently broken. UTM tracking is simple to start but easy to mess up, and most teams only notice the damage months later when reporting season hits.

This guide walks you through how to set up UTM tracking the right way: building consistent parameters, applying them across campaigns, and verifying them inside GA4 before they pollute your data.

What Are UTM Parameters?

UTM (Urchin Tracking Module) parameters are small tags added to the end of a URL that tell Google Analytics 4 where your traffic is coming from. When a user clicks a tagged link, GA4 reads those parameters and assigns the session to the correct source, medium, and campaign.

There are five standard UTM parameters:

Parameter Purpose Example
utm_source Where the traffic comes from newsletter, facebook, google
utm_medium The marketing channel type email, cpc, social
utm_campaign The specific campaign name summer_sale_2026
utm_content Differentiates ads or links inside the same campaign banner_top, cta_blue
utm_term Keywords for paid search running_shoes

Only utm_source, utm_medium, and utm_campaign are required for GA4 to properly categorize traffic. The other two are optional but useful for granular reporting.

analytics dashboard laptop

Why Most UTM Setups Fail (And How to Avoid It)

Before touching a URL builder, you need a naming convention. This is where 90% of teams lose data quality. GA4 is case-sensitive, so Email and email show up as two separate mediums. Spaces, typos, and abbreviations create the same problem.

Here are the rules to lock in before building a single link:

  • Use lowercase only for every parameter value
  • Replace spaces with underscores or hyphens (pick one and stick with it)
  • Standardize medium values using GA4’s default channel groupings (email, cpc, social, referral, affiliate, display)
  • Never use UTMs on internal links, they overwrite the original source and destroy attribution
  • Document everything in a shared spreadsheet so the whole team uses the same vocabulary
analytics dashboard laptop

How to Set Up UTM Tracking: Step by Step

Step 1: Create Your UTM Naming Convention Document

Open a Google Sheet and create columns for each parameter. List the approved values your team can use. Anyone launching a campaign must pull values from this sheet rather than inventing new ones.

A minimal template looks like this:

Field Approved Values
Source facebook, instagram, linkedin, newsletter, partner_x
Medium cpc, email, social, display, affiliate, referral
Campaign [product]_[goal]_[month_year]

Step 2: Build the URL With Google’s Campaign URL Builder

Go to Google’s Campaign URL Builder (ga-dev-tools.google/campaign-url-builder). Fill in the fields:

  1. Paste your destination URL (the landing page on your site)
  2. Enter utm_source (e.g., newsletter)
  3. Enter utm_medium (e.g., email)
  4. Enter utm_campaign (e.g., spring_collection_2026)
  5. Optionally add utm_content and utm_term
  6. Copy the generated URL

The output will look like:
https://lovecamels.com/collections/new?utm_source=newsletter&utm_medium=email&utm_campaign=spring_collection_2026

Step 3: Shorten Long URLs (Optional but Recommended)

For social posts, SMS, or printed material, long tagged URLs look ugly and reduce trust. Run them through a shortener like Bitly or Rebrandly. The UTM parameters still work because they are preserved when the short link redirects.

Step 4: Apply UTMs Across Your Channels

Different platforms handle UTMs differently:

  • Google Ads: Skip manual UTMs. Enable auto-tagging (GCLID) and link Google Ads to GA4 instead
  • Meta Ads: Add the UTMs in the URL parameters field at the ad level
  • Email tools: Most platforms (Mailchimp, Klaviyo, HubSpot) have built-in UTM fields in campaign settings
  • Social posts: Paste the full UTM URL directly or use a scheduler with built-in tagging
  • Influencer partnerships: Provide the partner with the exact tagged URL, never let them build their own

Step 5: Verify the Data in GA4

This is the step most marketers skip. Always test before launching the campaign at scale.

  1. Click your tagged URL from a private browser window
  2. Open GA4 and go to Reports > Realtime
  3. Scroll to the Users by First user source / medium card
  4. Confirm your source and medium values appear exactly as you wrote them

For longer-term verification, head to Reports > Acquisition > Traffic acquisition. Change the dimension to Session campaign, Session source, or Session medium to see how your UTMs are clustering.

Step 6: Build a Custom GA4 Exploration for Campaign Review

For deeper analysis, create an Exploration in GA4:

  1. Go to Explore and create a blank exploration
  2. Add dimensions: Session campaign, Session source, Session medium, Session content
  3. Add metrics: Sessions, Engaged sessions, Conversions, Total revenue
  4. Drag them into the Free Form report to see performance by campaign

Common UTM Mistakes That Break Attribution

Even with good intentions, these errors creep in:

  • Inconsistent casing: Facebook vs facebook creates duplicate rows in reports
  • Mixing separators: summer-sale in one campaign and summer_sale in another
  • Using UTMs on internal navigation: Clicking an internally tagged link resets the user’s original source to your own UTM
  • Forgetting utm_medium: Without it, GA4 may classify the traffic as (not set) or referral
  • Tagging Google Ads manually: This conflicts with auto-tagging and can break GCLID-based conversion tracking
  • Not documenting: When the marketer who created the convention leaves, chaos returns within weeks
analytics dashboard laptop

UTM Best Practices for 2026

To keep your tracking clean as your campaigns scale:

  • Audit your Traffic acquisition report monthly and look for duplicates or odd values
  • Use a centralized UTM builder tool (or a locked Google Sheet) so values are picked from a dropdown, not typed manually
  • Train every new marketer on the convention before they touch a campaign
  • Set up data filters in GA4 admin to lowercase incoming UTM values automatically
  • Review GA4’s default channel groupings to make sure your medium values map correctly

FAQ

Is UTM tracking free?

Yes. UTM parameters are free to create, and Google Analytics 4 reads them at no cost. The only paid tools are optional URL shorteners or third-party UTM management platforms.

Do UTM parameters affect SEO?

No, as long as you only use them on inbound links from external sources. Google ignores tagged versions for ranking, and canonical tags on your pages prevent duplicate content issues.

How long do UTM parameters stay attached to a user in GA4?

GA4 captures the source, medium, and campaign at the moment of acquisition. The first user attribution stays with the user permanently, while session-level attribution refreshes with each new session source.

Should I use UTMs on every link?

Only on external campaign links where you need to measure performance. Never use them on internal site links or on organic SEO pages, since they overwrite the real acquisition source.

What is the difference between utm_content and utm_term?

utm_content distinguishes creative variations (button A vs button B, banner top vs banner bottom). utm_term is reserved for paid search keywords. Most non-search campaigns only need utm_content.

Can I change UTMs after a campaign launches?

You can edit the URL, but data already collected with the old UTMs will stay under the old labels. To consolidate, you would need to rename values in BigQuery or use lookup tables in Looker Studio.

Final Thoughts

Setting up UTM tracking is less about the technical steps and more about discipline. A perfectly tagged URL is useless if your team uses three different spellings of linkedin across campaigns. Lock the convention, document it, verify every new tag in GA4 Realtime, and your attribution will stay reliable as your marketing grows.

The marketers who win with GA4 are not the ones who build the fanciest reports. They are the ones whose data is clean enough to trust.

Search Aricles

Latest Articles

Subscribe Now!