A UTM link is a regular URL with short text tags added to the end that tell your analytics platform exactly where your traffic came from. Creating one takes about 30 seconds: you add parameters like utm_source and utm_campaign to any URL, either manually or with a free tool, and every click on that link gets tracked in Google Analytics or whatever platform you use. Here’s how to build them correctly so your data stays clean.
What UTM Parameters Do
UTM stands for Urchin Tracking Module, a holdover name from pre-Google Analytics days. The system uses five parameters that you attach to the end of a URL. Each one captures a different piece of information about how someone arrived at your site.
- utm_source identifies where the traffic comes from: a specific website, newsletter, or platform (examples: facebook, google, mailchimp).
- utm_medium describes the marketing channel or type of link: email, cpc (cost per click), social, banner, referral.
- utm_campaign names the specific promotion or initiative driving the traffic: summer_sale, product_launch, weekly_digest.
- utm_content differentiates between multiple links within the same campaign. If your email has two buttons pointing to the same page, you might tag one “header_button” and the other “footer_button” to see which gets more clicks.
- utm_term captures the keyword associated with a paid search ad. If you’re bidding on “running shoes” in Google Ads, that phrase goes here.
The first three (source, medium, campaign) are the ones you’ll use on nearly every link. Content and term are optional and mainly useful for A/B testing creative or tracking paid search keywords.
Building a UTM Link Manually
You don’t need any special tool. A UTM link is just your destination URL followed by a question mark and a series of parameter-value pairs joined by ampersands. The structure looks like this:
https://www.example.com/?utm_source=email_campaign&utm_medium=email&utm_campaign=summer-sale
To build one from scratch, start with the full URL of the page you want to send people to. Add a question mark at the end if the URL doesn’t already have one. Then type each parameter, an equals sign, and the value you want to assign. Separate each pair with an ampersand (&). The parameters can appear in any order.
If your URL already contains a question mark (because it has existing query strings), use an ampersand instead of a second question mark to append your UTM parameters.
Using Google’s Campaign URL Builder
Google offers a free Campaign URL Builder that does the formatting for you. You fill in a form with your website URL and the values for each parameter, and it generates the tagged link automatically. Search for “Google Campaign URL Builder” and you’ll find it on Google’s analytics support site.
The builder won’t validate your naming choices, though. It simply assembles whatever you type into the correct URL format. The real work is deciding on consistent names for your sources, mediums, and campaigns before you start generating links.
Naming Conventions That Keep Data Clean
The single biggest mistake with UTM tracking is inconsistent naming. Parameter values are case sensitive, which means “Facebook,” “facebook,” and “FACEBOOK” show up as three separate sources in your reports. That fragments your data and makes it harder to see what’s actually working.
Use all lowercase letters for every value. Use underscores or hyphens to separate words instead of spaces (spaces get converted to “%20” in URLs, which makes them hard to read). Pick a format and stick with it. If your first email campaign uses utm_source=mailchimp, don’t switch to utm_source=email_newsletter next month.
Keep a shared spreadsheet that logs every UTM link your team creates. Record the full tagged URL, the date it was created, and what campaign it belongs to. This serves two purposes: it prevents duplicate or conflicting tags, and it gives you a reference when you’re reviewing analytics months later and can’t remember what “spring_promo_v2” referred to. A simple Google Sheet with columns for URL, source, medium, campaign, content, and notes works well.
Where UTM Data Shows Up in Google Analytics
Once someone clicks a UTM-tagged link, the parameter values flow into Google Analytics automatically. In GA4, you can find this data through the Explore section. Create a new free-form exploration, add “Session source/medium” as a dimension in the rows, and select metrics like Users, Sessions, or Conversions. This lets you see exactly how many visitors and conversions each tagged link generated.
If you set utm_source, utm_medium, and utm_campaign but leave other parameters blank, Google strongly recommends setting all relevant parameters together. Missing values show up as “(not set)” in your reports, which makes the data harder to interpret.
Shortening UTM Links
UTM-tagged URLs get long fast. A link with all five parameters can stretch past 200 characters, which looks messy in social media posts, text messages, or anywhere the full URL is visible. URL shorteners like Bitly solve this by redirecting a short link (something like bit.ly/3xYz) to your full tagged URL. The UTM parameters travel through the redirect and still get captured by your analytics.
Most shorteners are free for basic use. Paste your full UTM link into the shortener, and it generates a compact version you can share. Some social media management tools, like Sprout Social, let you shorten links directly inside the post composer, so you don’t need to switch between platforms.
Shortening is most useful for social media and anywhere the audience sees the raw URL. For email links behind button text or hyperlinked words, the length of the URL doesn’t matter to the reader since they never see it.
Practical Examples
Here’s how UTM tagging works across a few common scenarios:
You’re promoting a webinar through your email newsletter. The link to the registration page might look like: https://www.example.com/webinar?utm_source=mailchimp&utm_medium=email&utm_campaign=june_webinar&utm_content=hero_image
You’re running a paid Facebook ad for a product launch. The tagged link could be: https://www.example.com/new-product?utm_source=facebook&utm_medium=paid_social&utm_campaign=product_launch_2025
You’re sharing a blog post on LinkedIn organically. A simple version works: https://www.example.com/blog-post?utm_source=linkedin&utm_medium=social&utm_campaign=blog_distribution
Notice that each link uses a different source and medium combination, which lets you compare performance across channels in your analytics. The campaign name ties everything back to the same initiative, so you can also see total results for “product_launch_2025” regardless of which channel delivered the traffic.
When To Use UTM Links
Tag any link where you’re driving traffic from an external source to your website and want to measure the results. That includes email campaigns, social media posts (both organic and paid), partner websites, QR codes on printed materials, influencer promotions, and digital ads on platforms that don’t automatically pass tracking data.
Don’t use UTM parameters on internal links within your own website. If someone clicks a UTM-tagged link on your homepage that goes to another page on your site, Google Analytics starts a new session attributed to that source, which overwrites the original source data and distorts your reports. UTM tags are strictly for traffic coming from outside your domain.

