logo
UTM Parameters•

What Is a UTM Code? UTM Parameters Explained, With Examples

A UTM code is a tag added to a link so Google Analytics shows where a visit came from. What UTM stands for, what each UTM parameter records, naming rules, and how to build a UTM link.

Avatar for undefined
CodeQR Team
Team Contenuti

A UTM code is a short piece of text added to the end of a web address so your analytics tool can tell where a visit came from. UTM stands for Urchin Tracking Module. Urchin was a web analytics product that Google has since discontinued, and Google's help page for it is titled "Urchin Tracking Module (UTM)". Today the term means the tags that Google Analytics reads from a link, which are called UTM parameters.

Here is a link with three of them: https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=summer-sale. When someone clicks it, Google Analytics records the visit under the source newsletter, the medium email and the campaign summer-sale. Without those tags, Google says a session is processed as direct traffic "when no information about the referral source is available", so the click would be mixed in with people who typed your address.

You will also see UTM tags, UTM links and UTM tracking. They all describe the same thing: the parameters in the link, the link that carries them, and the practice of reading them in your reports. Facts about Google Analytics below come from Google's help pages as they read on November 17, 2026.

What each UTM parameter records

Google's guide to campaign parameters is direct about the minimum: "When you add parameters to a URL, you should always use utm_source, utm_medium, and utm_campaign." Here is what Google says each one holds:

  • utm_source: "Referrer, for example: google, newsletter4, billboard".
  • utm_medium: "Marketing medium, for example: cpc, banner, email".
  • utm_campaign: "Product, slogan, promo code, for example: spring_sale".

Google's page lists six more parameters you can add:

  • utm_id: the campaign ID, used to identify a specific campaign or promotion.
  • utm_source_platform: the platform responsible for directing traffic to your property, such as Search Ads 360 or Display & Video 360.
  • utm_term: a paid keyword.
  • utm_content: used to differentiate creatives. Google's example is two call-to-action links in the same email, each with its own utm_content value so you can tell which version works better.
  • utm_creative_format: the type of creative, such as display, native, video or search.
  • utm_marketing_tactic: the targeting criteria applied to a campaign, such as remarketing or prospecting.

Google adds that utm_creative_format and utm_marketing_tactic are not currently reported in Google Analytics properties. It also gives a warning about partial tagging: "If you're setting one UTM parameter, we strongly recommend that you set all relevant UTM parameters, especially utm_source, utm_medium, utm_campaign, utm_id, and utm_source_platform. Missing UTM parameters will result in (not set) values being present in reporting."

How UTM tracking shows up in Google Analytics

When someone clicks a tagged link, the parameters are sent to Analytics and, in Google's words, "the parameter values are visible in the Traffic acquisition report." You can view Session source/medium, Session medium, Session source and Session campaign in Acquisition, then Traffic acquisition.

Google notes that UTM parameters are omitted from the Landing page + query string and Page path + query string dimensions, and are populated in the Page location dimension instead. If you look for your UTM values in a landing page report and don't find them, check Page location.

Rules for naming UTM values

Google Analytics reads your values exactly as written. Google says "Parameter values are case sensitive, e.g. utm_source=google is different from utm_source=Google." Its best-practice table adds that keywords with different capitalization, such as Meta and meta, are treated as different values, and that SpringSale and Spring_Sale are considered distinct. Google's advice is to "use lowercase as a standard practice".

These habits keep your reports clean:

  • Pick one spelling for each source and medium, and reuse it. Google recommends one unique utm_source for each platform and one unique utm_medium for each channel.
  • Write values in lowercase, with hyphens or underscores instead of spaces.
  • Keep a shared list of the values your team uses, so a new campaign doesn't invent a second spelling of email.
  • Match utm_campaign to the exact campaign name, so one marketing effort doesn't split into several rows. Google gives this reason for using a single name.

Mistakes that break UTM tracking

  • Mixing uppercase and lowercase. Newsletter and newsletter become two rows.
  • Tagging only one parameter. Google warns that missing parameters result in (not set) values in your reports.
  • Putting UTM parameters on links inside your own site. Google explains that "each session is associated with only one campaign or traffic source and a new session is not started when Google Analytics encounters a new campaign or traffic source". New values that arrive in the middle of a session are attached to the events where they were collected, not to the session. Use UTM parameters on links that bring people to your site, not on links between your pages.
  • Reusing one tagged link across channels. If the same link goes in an email and a social post, both clicks show up under one source, so make one link per placement.

How to create a UTM link

You can write the parameters by hand. Google's instructions are to separate the parameters from the URL with a question mark, list the parameters and values as pairs separated by an equal sign, and separate each pair with an ampersand. You can add them in any order. For example: https://example.com/?utm_source=email_campaign&utm_medium=email&utm_campaign=summer-sale.

Typing them by hand is where typos and inconsistent spellings start, so most teams use a URL builder. Google offers its own Campaign URL Builder for links to websites. A builder inside your link tool creates the parameters and the short link in one step.

UTM codes on QR codes and short links

A printed QR code can't be re-tagged once it is on paper, so its values need to be right before it goes to print. Our guide on UTM codes for QR codes covers which values suit print and how to fix them after printing.

With CodeQR, the UTM parameters live in the destination URL of the link or QR code. The builder writes them into that address as you type, and turning it off removes them. For QR codes the UTM Builder is available only for dynamic codes, because a static code holds its address in the image and can't be changed once printed.

How CodeQR helps with UTM parameters

CodeQR's UTM builder assembles a campaign URL from your destination and the UTM fields. In the app, the same UTM Builder section sits in the link builder and the QR code editor, and a standalone UTM Builder page lets you copy the finished URL or save it as a short link. The fields are source, medium, campaign, term and content, plus a ref field that adds a ref parameter to the address. The UTM Builder works on every plan, Free included.

After the links are live, the UTM report on the Pro plan and above shows clicks and scans per source, medium and campaign across all your links and QR codes, with a CSV export. On Free and Starter you see a blurred preview. Our help article on measuring UTM campaigns on links and QR codes walks through it.

On the Business plan and above, Smart Rules can read the UTM parameters on a short link and send each source to its own page. Route campaign traffic by UTM or referrer has the steps. To add parameters to a link, see Add UTM parameters to a short link. Plans are on the pricing page.

Create your account

You can create a free CodeQR account, build a tagged link and open it to check the result in your reports.

UTM code questions

A short piece of text added to a web address so analytics can tell where a visit came from. A UTM code is made of UTM parameters such as utm_source, utm_medium and utm_campaign.

Tag every link the same way

Create a CodeQR account, add the UTM parameters in the link builder and see each campaign in your UTM report.