Guide

What Is a UTM Parameter and How Do You Use Them?

If you’ve ever clicked a link and noticed a long string of text after the main web address — something like ?utm_source=newsletter&utm_medium=email — you’ve seen a UTM parameter in action. They look messy, but they’re incredibly useful.

UTM parameters are small pieces of tracking code you add to URLs so that analytics tools like Google Analytics 4 can tell you exactly where a visitor came from. Without them, a lot of your traffic just shows up as ‘direct’, leaving you guessing which campaigns actually worked.

The Five UTM Parameters Explained

There are five standard UTM parameters, and three of them are essential. ‘utm_source’ identifies where the traffic originates — for example, ‘google’, ‘facebook’, or ‘newsletter’. ‘utm_medium’ describes the marketing channel, such as ‘email’, ‘cpc’ (cost-per-click), or ‘social’. ‘utm_campaign’ names the specific campaign, like ‘summer-sale-2025’ or ‘product-launch’.

The other two are optional but handy. ‘utm_term’ is used for paid search campaigns to record which keyword triggered the ad. ‘utm_content’ lets you differentiate between two versions of the same link — useful when A/B testing ad creatives or email layouts where you want to know which button or banner got the click.

A fully tagged URL might look like: https://example.com/sale?utm_source=facebook&utm_medium=social&utm_campaign=summer-sale. That single link tells Google Analytics exactly where the visitor came from, through what channel, and for which campaign.

How to Build UTM Links

Google offers a free ‘Campaign URL Builder’ tool at ga-dev-tools.google which lets you fill in a form and generates the tagged URL automatically. There’s no coding required — just paste in your destination URL and fill in the relevant fields.

For bigger campaigns, it’s worth building a UTM tracking spreadsheet. Record every tagged link you create with its source, medium, campaign, and destination. This prevents duplication and makes it easier to compare results across campaigns months later. Consistent naming matters — ‘Email’ and ‘email’ are treated as two different values in GA4, so pick a format and stick to it.

Where to Use UTM Parameters

UTMs are most valuable on links you share outside your own website: email newsletters, social media posts, paid adverts, links in PDF documents, and QR codes. Anywhere a visitor clicks a link and arrives at your site is an opportunity to tag the URL.

Don’t add UTMs to internal links — links that go from one page of your site to another. Doing so resets the attribution, making GA4 think the user started a new session and obscuring where they originally came from. UTMs are for external traffic only.

FAQs

Common questions.

Do UTM parameters affect SEO?
UTM parameters don’t directly harm SEO, but it’s good practice to use canonical tags on pages if you share many variations of the same URL. Google is generally good at recognising UTM-tagged URLs as tracking parameters and not treating them as separate pages.
Can I shorten URLs that contain UTM parameters?
Yes. Tools like Bitly or Rebrandly let you shorten a long UTM-tagged URL into a tidy link. The tracking still works because the short URL redirects to the full tagged URL, which GA4 reads correctly.
What if I forget to add a UTM parameter?
If you share a link without UTM tags, the traffic will likely appear in GA4 as ‘direct’ or ‘(not set)’. You can’t add UTMs to a link after people have already clicked it, so the best approach is to build tagging into your campaign workflow from the start.
Related guides

More on web design & ux.

Want a hand putting this into practice?

Book a free, no-obligation consultation with a Norwich-based specialist.

Book a free consultation
Get started

Let's put your business in a better light.

Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.

  1. 01
    Tell us a bitFill in the form — two minutes, tops.
  2. 02
    We'll call you backWithin one working day, no pressure.
  3. 03
    Get a clear planHonest advice and a fixed quote.

Free · No obligation · We reply within one working day

Book a free consultation