How to Use UTM Parameters to Track Campaigns in Google Analytics

What each UTM parameter means, how analytics tools read them, a naming convention that keeps reports clean, and the mistakes that split your campaign data.

Updated September 29, 2026 5 min read

Use the free UTM BuilderTag campaign links with UTM parameters, one at a time or in bulk

You send a newsletter, post on LinkedIn, run a paid ad and hand out flyers with a QR code, all pointing to the same pricing page. A week later your analytics shows a spike in visits, but most of it is labelled "direct" or lumped together under a generic referrer. Which effort actually worked?

UTM parameters solve that. They are small tags added to the end of a link that tell your analytics tool where a visit came from. This guide explains what each parameter does, how to design a naming convention that keeps reports readable, and the common mistakes that quietly ruin campaign data.

What UTM parameters are

UTM parameters are query-string values added to a URL:

https://www.example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026

The page ignores them. Analytics tools such as Google Analytics read them when the visit starts and record the values against that session. The name comes from Urchin, the analytics product Google acquired before building Google Analytics.

The parameters and what they mean

Parameter Question it answers Examples
utm_source Who sent the visitor? google, newsletter, linkedin, partner_blog
utm_medium Through which kind of channel? cpc, email, social, paid_social, qr, referral
utm_campaign Which campaign or promotion? spring_sale_2026, webinar_march
utm_term Which paid keyword? (optional) standing desk
utm_content Which link or ad variant? (optional) hero_button, footer_link, video_ad_a
utm_id Campaign ID (optional) abc.123

Source, medium and campaign are the core three. GA4 also uses utm_id for importing cost data, and supports a few newer parameters for advanced set-ups; check the current GA4 documentation if you need them.

Why medium matters so much

GA4 sorts traffic into default channel groups (such as Email, Organic Social, Paid Search) mainly using source and medium. If you tag an email with utm_medium=newsletter instead of email, it may land in "Unassigned" instead of "Email". Stick to the conventional values for medium: email, cpc, social, paid_social, display, affiliate, referral. The GA4 help pages list the exact rules for each channel.

A naming convention that holds up

UTM values are case-sensitive in analytics reports. Email, email and E-mail become three separate rows. A written convention prevents this:

  1. Always lowercase.
  2. One separator for spaces - underscores or hyphens, not both.
  3. Fixed vocabulary for source and medium. Keep a shared list and do not improvise.
  4. Campaign names that sort well, such as 2026_spring_sale or spring_sale_2026, used consistently.
  5. Use content to tell links apart, not a new campaign name for each button.

Put the list in a shared document so everyone who creates links uses the same words.

The UTM Builder applies your convention automatically.

  1. Open the UTM Builder. Under Presets, click a channel such as Google Ads, Newsletter, LinkedIn post or QR code / print to fill in a standard source and medium.
  2. Complete Campaign name (utm_campaign), and if useful Campaign term (utm_term), Campaign content (utm_content) and Campaign ID (utm_id).
  3. Leave Force lowercase switched on, and choose what Spaces become: underscore, hyphen or %20.
  4. In the Single URL tab, paste the Website URL. Existing query parameters and #fragments are kept.
  5. Press Copy URL, or Save to history to keep the link in this browser's History tab for later.
  6. To tag many links at once, open the Bulk tab and paste one URL per line. The same UTM values are applied to every URL, and you can copy or download the list.

If source, medium or campaign is missing, the tool shows a reminder above the result.

Spreadsheets. A shared sheet with columns for base URL, source, medium and campaign, plus a formula that joins them, is a good choice for large teams because it doubles as a log of every link created. The risk is formulas that do not lowercase or encode values.

Ad platforms. Google Ads can add its own click identifier automatically when linked to Analytics, and most ad platforms support tracking templates with dynamic values. For paid campaigns, use the platform's features first and UTMs where they are not available.

Email and social tools. Many newsletter and scheduling tools can add UTM tags to every link automatically. Check their default values match your convention.

Link shorteners. Long tagged URLs look untidy in print or social posts. A shortener or a QR code made with a QR Code Generator hides the parameters while keeping them in the final URL.

Mistakes that break campaign data

Never put UTM parameters on links from one page of your site to another. In analytics, a new campaign value can overwrite the original source of the visit, so a visitor who came from a paid ad appears to have come from your own banner.

Inconsistent case and spelling

Facebook, facebook and fb are three sources. Lowercase everything and use the agreed list.

Links in your own social posts can be tagged. Links that other sites give you naturally are recorded as referrals without any tags; you do not need to ask partners to add them unless you are running a joint campaign.

Broken URLs

Parameters must come after a single ?, with & between them. Adding ?utm_source=... to a URL that already has a ? breaks it. A builder handles this; if you edit by hand, a URL Encoder helps with special characters.

Personal data in parameters

Never put email addresses or names in UTM values. Analytics tools prohibit sending personal information, and URLs end up in logs and browser histories.

Once your tags are consistent, comparing channels becomes simple arithmetic: the Conversion Rate Calculator and CTR Calculator turn the visits and sign-ups per campaign into rates you can compare fairly.

Frequently asked questions

Do UTM parameters affect SEO?

Not if used correctly. They are meant for external campaign links. Pages with parameters should have a canonical tag pointing to the clean URL, which most sites set by default.

What is the difference between utm_source and utm_medium?

Source is the specific sender, such as linkedin or newsletter. Medium is the type of channel, such as social or email. Several sources can share one medium.

Are UTM parameters case-sensitive?

Yes, in reports. Email and email appear as separate values, so always use lowercase.

If your Google Ads account is linked to Analytics with auto-tagging, you usually do not need them. Use UTMs for platforms that do not integrate automatically.

Can I shorten a URL with UTM tags?

Yes. Short links and QR codes redirect to the full tagged URL, so the parameters still reach your analytics.

Try it now: UTM Builder

Loading tool…