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.
Common questions.
Do UTM parameters affect SEO?
Can I shorten URLs that contain UTM parameters?
What if I forget to add a UTM parameter?
More on web design & ux.
Want a hand putting this into practice?
Book a free, no-obligation consultation with a Norwich-based specialist.
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.