UTM parameters (UTM codes). What it means.

UTM parameters are tags added to the end of a URL that tell analytics tools where a visitor came from: the source, the medium, the campaign and optionally the keyword and the specific ad or link.

By Brady Heinrich · Updated

Definition

UTM parameters are tags added to the end of a URL that tell analytics tools where a visitor came from: the source, the medium, the campaign and optionally the keyword and the specific ad or link.

What are UTM parameters?

UTM parameters, also called UTM codes or UTM tags, are short pieces of text appended to a link. When someone clicks the link, your analytics tool reads the tags and records which source, medium and campaign sent the visit. Without them, visits from email, apps and documents are often recorded with no source at all.

What does UTM mean?

UTM stands for Urchin Tracking Module. The name comes from Urchin, the predecessor of Google Analytics, which introduced the tags.

What are the five UTM parameters?

ParameterWhat it recordsExample values
utm_sourceWho sent the trafficlinkedin, newsletter, google
utm_mediumThe type of channelemail, cpc, paid-social
utm_campaignThe campaign nameq1-launch
utm_termThe paid keywordpayroll-software
utm_contentWhich ad or link was clickedheader-button

Google's documentation says you should always use source, medium and campaign, and that a missing one shows as "(not set)" in reports. Google Analytics also reads a few newer parameters, such as utm_id for a campaign ID. A tagged link looks like this:

https://example.com/pricing/?utm_source=linkedin&utm_medium=paid-social&utm_campaign=q1-launch

The first parameter follows a question mark and the rest are joined with ampersands.

How to set up UTM tracking

  1. Write a naming convention before tagging anything: allowed sources, allowed mediums and a format for campaign names.
  2. Use lowercase only, and hyphens instead of spaces. Values are case sensitive, so Google Analytics treats "Google" and "google" as two sources.
  3. Use medium values that match your analytics tool's channel definitions, so visits land in the right channel group.
  4. Build links with a tool such as the UTM builder instead of typing them.
  5. Keep a shared sheet of every tagged link, so names stay consistent across people and campaigns.
  6. Test each link, then check the campaign report after launch.

What should you not tag?

Do not put UTM parameters on links between pages of your own site. A tagged internal link can replace the visitor's original source, so a visit that began with a paid ad is credited to your own banner. Keep names, email addresses and other personal information out of UTM values too, because they are stored in analytics and visible in the URL.

An example

A company promotes a webinar in three places. The newsletter link is tagged with source newsletter, medium email and campaign march-webinar. The LinkedIn ad uses source linkedin, medium paid-social and the same campaign. A partner's post uses source partner-site and medium referral. Afterwards the campaign report shows registrations from each channel side by side.

The common mistake

Inconsistent naming. "LinkedIn", "linkedin" and "li" become three separate sources, and "Email" and "email" two mediums, so no report adds up. Agree a convention, write it down and build every link from it.

How people search for UTM parameters

  • utm parameters2,900 a month
  • utm meaning2,900 a month
  • utm tracking1,900 a month
  • utm codes1,600 a month
  • what are utm parameters720 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.