---
title: "How UTM parameters work, with QR codes, and what UTM codes cannot tell you"
description: "UTM parameters (also called UTM codes or UTM tags) are labels at the end of a link that tell your analytics where a visit came from. How they work, why a QR code scan shows up as Direct without them, and what they cannot tell you, with Google's own rules and our test in Chrome."
canonical: "https://linkbreakers.com/help/article/how-utm-parameters-work"
last-updated: 2026-11-24
---

# How UTM parameters work, with QR codes, and what UTM codes cannot tell you

> UTM parameters (also called UTM codes or UTM tags) are labels at the end of a link that tell your analytics where a visit came from. How they work, why a QR code scan shows up as Direct without them, and what they cannot tell you, with Google's own rules and our test in Chrome.

Video: [How UTM Parameters Work, and What They Can't Tell You](https://www.youtube.com/watch?v=22acE86R2yw)

## Short answer

**UTM parameters**, also called **UTM codes** or UTM tags, are short labels added to the end of a link that tell your analytics where a visit came from, like `?utm_source=flyer&utm_medium=qr&utm_campaign=winter_menu`. They do nothing by themselves. A script on the page, such as Google's analytics tag, reads them from the page's own address when the page loads, and files the visit under that source, medium and campaign. That is why a **QR code** needs them: a camera app opens your page with no page before it, so without tags nothing says where the visit came from, and Google Analytics files it under **Direct**, the channel it keeps for visits from "a saved link or by entering your URL".

There are five classic tags. `utm_source` says where the visitor came from (a flyer, a newsletter), `utm_medium` what kind of link it was (email, QR), and `utm_campaign` which promotion. `utm_term` and `utm_content` are optional. Google says to always use the first three, and to write values in lowercase, because `Flyer` and `flyer` count as two different values.

**What they cannot tell you.** The tags describe the link, not the person: everyone who scans the same flyer sends the same three words. Telling one person from two, or noticing that someone came back, is the analytics cookie's job; in our test, with cookies declined, each page load looked like a new visitor. And Google Analytics has no default channel for a medium like `qr`: its default channel report files those visits under **Unassigned**, while their source, medium and campaign still show in their own columns.

With a QR code, the tags can sit inside the code, printed for good, or behind a short link whose redirect adds them to the address it sends the phone to. In Linkbreakers, the **UTM Parameter Builder** adds them to a link's destination, and the scan itself is counted when the phone asks the short link, before your page loads, with no tag needed.

## How UTM parameters work

### The query string: where the tags sit in a link

A web address can carry extra data after a question mark. Here is a link to a restaurant's menu, tagged for a flyer:

```text
https://example.com/menu?utm_source=flyer&utm_medium=qr&utm_campaign=winter_menu
```

Everything after the `?` is the **query string**. RFC 3986, the standard that defines the syntax of web addresses, says: "The query component is indicated by the first question mark ("?") character and terminated by a number sign ("#") character or by the end of the URI", and "query components are often used to carry identifying information in the form of "key=value" pairs" (section 3.4).

Each pair is a **name** and a **value** joined by `=`, and the pairs are joined by `&`. UTM parameters are simply the pairs whose names start with `utm_`. Above, `utm_source` is a name and `flyer` is its value.

### The five UTM parameters, in Google's words

UTM stands for **Urchin Tracking Module**, after Urchin, a web analytics company Google bought in 2005. Google Analytics' help lists the five classic tags like this:

| Parameter | Google's description | On a flyer's QR code |
|---|---|---|
| `utm_source` | "Referrer, for example: google, newsletter4, billboard" | `flyer` |
| `utm_medium` | "Marketing medium, for example: cpc, banner, email" | `qr` |
| `utm_campaign` | "Product, slogan, promo code, for example: spring_sale" | `winter_menu` |
| `utm_term` | "Paid keyword" | optional, left out |
| `utm_content` | "Use to differentiate creatives" | optional, for example `front_door` and `counter` |

Google Analytics 4 adds a few more: `utm_id` ("Campaign ID"), `utm_source_platform` ("The platform responsible for directing traffic", such as Search Ads 360), and `utm_creative_format` and `utm_marketing_tactic`, of which Google notes that each "isn't currently reported in Google Analytics properties".

Three rules from the same page:

- **Which ones to use.** "When you add parameters to a URL, you should always use utm_source, utm_medium, and utm_campaign." It is a recommendation, not a rule the address enforces, but "Missing UTM parameters will result in (not set) values being present in reporting."
- **Case.** "Parameter values are case sensitive, e.g. utm_source=google is different from utm_source=Google." Google's advice: "Use lowercase as a standard practice."
- **Order.** "You can add parameters to a URL in any order."

Google's own Campaign URL Builder assembles a tagged address for you, and so does our [free UTM builder](/utm-builder).

### Who reads UTM parameters, and when

Nobody reads the tags on the way to the page. They are read when the page loads, by a script on the page. With Google Analytics, that script is the Google tag: it sends the page's full address, tags included, as the page location, a field that "Sets dimensions when custom campaign (utm) parameters are embedded". In Google's words: "A session is processed as a custom campaign when custom campaign parameters are embedded in the document location field. When a custom campaign is processed, the values of the custom-campaign parameters map directly to the dimensions in reports."

So the Source, Medium and Campaign you see in Google Analytics' Traffic acquisition report are the words in the address, as they were typed.

A page with no analytics tag does nothing with them. In our test, the tagged address opened a page with no tag on it, and nothing was sent anywhere (run 5 in our test, below).

### The referrer, and why a visit with no tags becomes Direct

Without tags, analytics falls back on the **referrer**: the address of the page that had the link, which the browser sends along in a `Referer` header. RFC 9110, the HTTP standard, defines it: the header "allows the user agent to specify a URI reference for the resource from which the target URI was obtained (i.e., the "referrer", though the field name is misspelled)". The Google tag sends it as the page referrer, which "may set dimensions when no other campaign or traffic source fields have been set".

But a visit does not always have a page before it. RFC 9110 again: "If the target URI was obtained from a source that does not have its own URI (e.g., input from the user keyboard, or an entry within the user's bookmarks/favorites), the user agent MUST either exclude the Referer header field or send it with a value of "about:blank"." A camera app is not a web page. In our test, a scan-like open arrived with no referrer at all.

No tags and no referrer, and Google files the visit as Direct: "A session is processed as direct traffic when no information about the referral source is available". Its rule for the Direct channel: "Source exactly matches "(direct)" AND Medium is one of ("(not set)", "(none)")".

![Why a QR code scan shows up as Direct: a link tapped on a news page sends that page as the Referer and lands in Referral, while a scan from a camera app sends no Referer and lands in Direct, (direct) / (none), like a saved link or a typed address.](/screenshots/how-utm-parameters-work-direct.png)

## UTM parameters and QR codes

A QR code only holds text: usually an address. With UTM tags, there are two places the tags can sit.

**Inside the code (a static QR code).** The code holds the whole tagged address. The address gets longer, so the code gets denser, and the tags are printed for good: a typo like `fyler` stays on every copy. Changing a tag means reprinting. [Dynamic vs static QR codes](/help/article/dynamic-vs-static-qr-codes-key-differences) shows how much a long address grows a static code.

**Behind a short link (a dynamic QR code).** The code holds a short link. When the phone asks for it, the short link's server answers with a **redirect**, an answer that says "go to this other address", and that address, in the redirect's `Location` header, carries the tags. In our test, the tags reached the page only because the redirect's `Location` carried them (run 2). When the same kind of redirect left them out, the page got no tags and no referrer, which Google files as Direct (run 3). The tags live on the server, so they can be changed without reprinting. [How a link redirect works](/help/article/301-vs-302-redirects-how-link-redirects-work) explains the redirect itself.

**Which medium to use.** Many guides suggest `utm_medium=qr`. It keeps your QR visits together in the source and medium columns, but `qr` is not one of Google Analytics' default channels, as the next section shows. If you want QR visits in a channel of their own, Google's answer is a custom channel group: "You have the option to create custom channel groups".

## What UTM parameters cannot tell you

### Who scanned: the tags describe the link, not the person

The values are text in the address, and Google maps them "directly to the dimensions in reports". Everyone who opens the same address sends the same words. In our test, two different phones that opened the same tagged address sent exactly the same page address to Google (runs 1 and 6). Everyone who scans that flyer brings the same three words.

The same goes for places. Two posters carrying the same tags read as one row; to tell them apart, give each its own value, for example in `utm_content`, the tag Google describes as "Use to differentiate creatives". And a copied or forwarded link keeps its tags, since they are part of the address, so a friend who opens a forwarded link is counted under the flyer too.

### Who came back: that is the cookie's job

Telling one person from two, or noticing that someone came back, is done by the analytics **cookie**, a small file the browser keeps for the site. In our test, each phone got its own client ID (the visitor number the Google tag sends) and its own `_ga` cookie, and the same phone kept its client ID on its next visit and was not counted as a first visit again (runs 1, 2 and 6). The tags were identical; only the cookie told the two phones apart.

When a visitor says no to cookies, there is none. Google's consent mode documentation describes two setups. In the basic one, "when the user doesn't consent, no data is transferred to Google at all". In the advanced one, "While consent is denied, the Google tags send measurements without cookies." In our test, with consent denied in the advanced setup, no cookie was set, and each page load came with a new client ID and a first-visit flag: the same phone looked like a new visitor twice (runs 7 and 8). Google says it plainly: "When users don't grant consent, events are not associated with a persistent user identifier. For example, if Analytics collects 10 page view events, it can't observe and report whether that's 10 users or 1 user."

### Which channel: QR is not one of Google Analytics' channels

Google Analytics sorts visits into channels with its **Default channel group**: Direct, Organic Search, Email, Referral and others. The rules for tagged visits look at source, medium and campaign name. The mediums they know include "email", "social", "referral", "display", "affiliate" and "sms", plus the paid ones. There is no rule for `qr`, `print`, `flyer` or `poster`. And "Unassigned is the value Analytics uses when there are no other channel rules that match the event data."

So a visit tagged `utm_source=flyer&utm_medium=qr&utm_campaign=winter_menu` lands in **Unassigned** in the default channel report, as long as its source is not one Google lists as a search, social, shopping or video site. Its source, medium and campaign still show as `flyer`, `qr` and `winter_menu` in the Traffic acquisition report; only the channel is Unassigned. Google notes that "Channel definitions aren't case sensitive and can't be edited", and points to custom channel groups instead.

![What Unassigned means in GA4: in the Default channel group, a visit tagged utm_medium=qr lands in Unassigned, while the source, medium and campaign table still shows flyer, qr and winter_menu.](/screenshots/how-utm-parameters-work-unassigned.png)

### Browsers that remove UTM parameters

Some browsers remove tracking parameters from addresses. What their own documentation and source code say, as read on 24 November 2026:

- **Firefox.** The list of parameters Firefox removes when it follows a link names click identifiers such as `gclid`, `gbraid` and `wbraid`, and no `utm_` parameter. But its right-click **Copy Clean Link** removes UTM parameters from the copied link: that list includes `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `utm_id` and `utm_source_platform`. A link shared that way arrives with no tags.
- **Safari.** In Private Browsing, and in all browsing when the person turns on advanced tracking protection, "Safari removes a subset of query parameters that have been identified as being used for pervasive cross-site tracking granular to users or clicks", while a parameter "that's only used for campaign attribution" is allowed to pass through. The list is not published, and `utm_` is not named either way. One more rule: after a cross-site navigation, third-party scripts that try to read the full address "will get a version of the URL that has no query parameters or fragment". We did not test what that changes for an analytics tag.
- **Brave.** It filters parameters from a list it downloads; its source code names no `utm_` rule, and we could not confirm either way whether the list includes them.

## Our test: what a page receives from a scan, and what Google's tag sends

We wanted to see the mechanism, not only read about it. On 24 November 2026 we ran **Google Chrome 158.0.8127.38**, headless (without a window), on a Mac, set up as an iPhone (Safari's user agent, a 393 by 770 screen at 3x), with three fresh profiles: three phones. Two small local servers stood in for a restaurant's menu page and for a short link that answers **303** with a `Location`. A "camera open" was a fresh tab sent to an address with no page before it.

The menu page carried Google's real analytics tag (gtag.js) with a made-up measurement ID. Every request to Google's collection servers was answered locally and recorded, so nothing reached any Google Analytics property.

| Run | What we did | Referrer the page got | Tags in what the Google tag sent | Client ID | First visit |
|---|---|---|---|---|---|
| 1 | Phone 1 opens `menu?utm_source=flyer&utm_medium=qr&utm_campaign=winter_menu` in a fresh tab | none | yes | 47955013.1795539318 | yes |
| 2 | Phone 1 opens a short link whose 303 `Location` carries the tags | none | yes, as written in `Location` | same as run 1 | no |
| 3 | Phone 1 opens a short link whose 303 `Location` has no tags | none | **no tags, no referrer** (Direct by Google's rule) | same as run 1 | no |
| 4 | Phone 1 taps the short link on another site's page | that page's site | yes, with that site as referrer | same as run 1 | no |
| 5 | Phone 1 opens the tagged address on a page with no analytics tag | none | nothing sent | | |
| 6 | Phone 2 opens the same tagged address | none | yes, **the same address as run 1** | **456207217.1795539352** | yes |
| 7 | Phone 3 says no to cookies (consent denied), first load | none | yes | 1045386488.1795539354 | yes |
| 8 | Phone 3 loads the same page again | none | yes | **1392891967.1795539356** (new) | **yes, again** |

Phones 1 and 2 each got their own `_ga` cookie. Phone 3, with consent denied, got no cookie at all.

**What it shows.**

1. A scan-like open arrived with **no referrer at all**, so without tags the visit had nothing to say where it came from.
2. Through a short link, the tags arrived **only because the 303's `Location` carried them** (run 2 against run 3).
3. The tags were **identical for two people**; only the cookie told them apart, and recognised the same phone on its next visit (runs 1, 2 and 6).
4. With consent denied there was no cookie, and **each page load looked like a new person on a first visit** (runs 7 and 8), as Google's own documentation says.
5. A tap on a web page passed that page's site, not the short link, as the referrer (run 4).

**What it does not show.** This is one browser: Chrome, headless, on a Mac, made to look like an iPhone. It is not Safari, not an in-app browser, and not a real camera app. The addresses were local, it ran once, and the measurement ID was made up. Nothing was sent to Google, so we did not see what Google Analytics would report; the Direct and Unassigned outcomes are Google's documented rules.

## UTM parameters in Linkbreakers

Linkbreakers links are short links, so the tags live on the server, behind the printed code.

### Add the tags with the UTM Parameter Builder

1. Create a link and pick **Website URL**. In the **Enter details** step, type the page's address in **Destination URL**.
2. Click the gear inside the field (its tooltip says "Advanced URL building"). The **UTM Parameter Builder** opens, with your address in **Base URL**.
3. Fill **Source (utm_source)**, **Medium (utm_medium)** and **Campaign (utm_campaign)**, for example `flyer`, `qr` and `winter_menu`. **Term (utm_term)** and **Content (utm_content)** are there if you need them.
4. Check the address under **Preview URL**, then click **Apply URL**. The Destination URL field now carries the tags.
5. Click **Next**, give the link a name, and click **Create**.

The builder reads any tags already on the address when it opens, keeps the other parameters, and adds the filled fields in the order source, medium, campaign, term, content. The tagged address becomes the destination of the link's [Redirect step](/workflow-steps/redirect) (the **Redirection** card in the workflow). To change a tag later, edit that address by hand in the step's **Destination URL** field (**Edit Redirection**) and click **Save Changes**: the printed code stays the same. [What is a UTM builder in Linkbreakers](/help/article/what-is-a-utm-builder-in-linkbreakers) covers naming conventions for your values.

### What happens when the phone scans

The address inside a Linkbreakers QR code is the short link with `?lbsrc=qrcode` at the end. When a phone scans it, Linkbreakers answers with a **303 See Other**, a temporary redirect, and its `location` carries your tags. This is the real answer to a scan of our demo code, `https://linkbreak.ing/lzsvozbsm?lbsrc=qrcode`, a dinner menu tagged with the builder as above, on 24 November 2026:

```text
HTTP/3 303
location: https://peterluger.com/pages/great-neck-menu?lbsrc=qrcode&utm_campaign=winter_menu&utm_medium=qr&utm_source=flyer
```

The menu page loads with the three tags in its address, so its analytics can file the visit under the flyer. The same answer sets the `linkbreakers.browser` cookie on `linkbreak.ing`, which is how the same phone is recognised on its next scan.

Linkbreakers builds that address from the Redirect step's destination and the scanned address's own query string. Every parameter on the scanned address is passed on, so `lbsrc=qrcode` reaches your page too; a tag with the same name as one on the destination replaces it, so the scanned value wins. The parameters come out in alphabetical order, and a space in a value comes out as `+`. Order does not matter to Google ("You can add parameters to a URL in any order"). [Can I add custom parameters to my links?](/help/article/can-i-add-custom-parameters-to-my-links) covers the parameters that ride along.

### What Linkbreakers counts without any tag

Linkbreakers records the scan at the moment the phone asks the short link, before your page loads. No tag is needed for that, and the page does not need any analytics:

- **A scan or a click.** `lbsrc=qrcode` marks a scan of the QR code; the same link opened from a message is a click. A visitor's **Event Timeline** shows each one as **QR Scan** or **Click**.
- **First or returning.** Linkbreakers sets its own cookie on the short link's domain when it answers, so the same phone can be recognised on its next scan, and each visit is marked **First** or **Returning**.
- **Where it went.** Opening a visit shows its **Activity Timeline**, with a **Redirected** row whose **Destination** is the tagged address the phone was sent to.

### What that gives you

Say you run a restaurant and put a QR code on your winter flyers. Your website's analytics shows those visits with the source `flyer` and the campaign name you chose, instead of Direct. In Linkbreakers you can also see how many times the flyer was scanned, and which phones came back, even on a page with no analytics at all. And if a tag has a typo, you fix it once in the Redirect step, with no reprint.

## Limits and caveats

- **Our test is one browser.** Chrome 158, headless, set up as an iPhone; not Safari, not an in-app browser, not a real camera app. Other browsers may send a referrer differently.
- **We did not see Google Analytics' reports.** Nothing was sent to Google. Direct and Unassigned are Google's documented rules, quoted above.
- **Google speaks for Google Analytics.** Other analytics tools read UTM parameters too, with their own rules for channels and visitors; this page does not cover them.
- **Browsers change.** The Firefox, Safari and Brave sections describe what their own documentation and source code said on 24 November 2026.

## Frequently asked questions

### What are UTM parameters?

UTM parameters, or UTM codes, are name and value pairs added after the `?` of a link, with names that start with `utm_`, such as `utm_source=flyer`. Analytics tools such as Google Analytics read them when the page loads, and file the visit under a source, a medium and a campaign. UTM stands for Urchin Tracking Module, after Urchin, a web analytics company Google bought in 2005.

### What is utm_source?

`utm_source` names where the visitor came from. Google describes it as "Referrer, for example: google, newsletter4, billboard". For a QR code on a flyer, `utm_source=flyer`. It is one of the three tags Google says to always use, with `utm_medium` and `utm_campaign`.

### Do UTM parameters work with QR codes?

Yes. The page's analytics reads the tags the same way whether the visit came from a click or a scan. Put them in the address the code opens: inside a static code, where they are printed for good, or on the redirect behind a short link, where they can be changed later. Google Analytics files a medium like `qr` under Unassigned in its default channel report.

### Why does my QR code show as direct traffic?

Because a camera app opens your page with no page before it, so there is no referrer to name (in our test, none arrived), and an address without UTM tags gives the analytics nothing else to go on. Google processes such a visit "as direct traffic when no information about the referral source is available". Add `utm_source`, `utm_medium` and `utm_campaign` to the address the code opens, or to the redirect behind it.

### Are UTM parameters case sensitive?

The values are. Google: "Parameter values are case sensitive, e.g. utm_source=google is different from utm_source=Google." So `Flyer` and `flyer` become two rows in your reports. Google's advice is to use lowercase. Its channel definitions, on the other hand, "aren't case sensitive".

### What does Unassigned mean in GA4?

"Unassigned is the value Analytics uses when there are no other channel rules that match the event data." Tagged visits whose medium is not one of Google's default channel rules, such as `qr` or `print`, land there. Their source, medium and campaign still show in the Traffic acquisition report. To give them a channel of their own, Google offers custom channel groups.

### Can UTM parameters tell me who scanned my QR code?

No. The tags describe the link, so everyone who scans the same code sends the same words, as two phones did in our test. Telling people apart is done by a cookie: the analytics cookie on your website, or, in Linkbreakers, its own cookie on the short link, which marks each scan as a first or returning visit.

## Sources

1. [IETF, RFC 3986, Uniform Resource Identifier (URI): Generic Syntax (January 2005), sections 3 and 3.4](https://www.rfc-editor.org/rfc/rfc3986)
2. [IETF, RFC 9110, HTTP Semantics (June 2022), section 10.1.3 (Referer)](https://www.rfc-editor.org/rfc/rfc9110)
3. [Google Analytics Help, URL builders: Collect campaign data with custom URLs (read 24 November 2026)](https://support.google.com/analytics/answer/10917952)
4. [Google Analytics Help, Campaigns and traffic sources (read 24 November 2026)](https://support.google.com/analytics/answer/11242841)
5. [Google Analytics Help, Default channel group (read 24 November 2026)](https://support.google.com/analytics/answer/9756891)
6. [Google Analytics Help, Behavioral modeling for consent mode (read 24 November 2026)](https://support.google.com/analytics/answer/11161109)
7. [Google Tag Platform, Consent mode overview (read 24 November 2026)](https://developers.google.com/tag-platform/security/concepts/consent-mode)
8. [Google, Google Agrees To Acquire Urchin (28 March 2005)](https://googlepress.blogspot.com/2005/03/google-agrees-to-acquire-urchin_28.html), and [Google Marketing Platform academy, Google Analytics Holiday Readiness (1 October 2025)](https://services.google.com/fh/files/misc/external_gmp_academy_google_analytics_holiday_readiness_oct_1_2025.pdf): "UTM (Urchin Tracking Module) parameters are short text codes you add to the end of a URL to track your marketing performance."
9. [Safari, Private Browsing 2.0 (WebKit blog, 16 July 2024)](https://webkit.org/blog/15697/private-browsing-2-0/)
10. [Firefox, the query stripping list applied when following links (fetched 24 November 2026)](https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/query-stripping/records), and [Firefox source, the Copy Clean Link list, StripOnShare.json (main branch, last changed 17 November 2026)](https://github.com/mozilla-firefox/firefox/blob/main/toolkit/components/antitracking/StripOnShareLists/MPL2/StripOnShare.json)
11. Brave, its query filter source code (`components/query_filter/browser/utils.cc`, read 24 November 2026)
12. Linkbreakers UTM test, 24 November 2026: a script that runs a local menu page carrying Google's gtag.js with a made-up measurement ID and a local short link answering 303, drives Google Chrome 158.0.8127.38 (headless, an iPhone user agent, three fresh profiles) through the eight runs above, and records what each server and the Google tag received, with every request to Google answered locally
13. The live answer to a scan of `https://linkbreak.ing/lzsvozbsm?lbsrc=qrcode`, 24 November 2026 (`HTTP/3 303` with its `location` header and the `linkbreakers.browser` cookie)
14. Linkbreakers app, api and edge code, read 24 November 2026: the UTM Parameter Builder's labels, how a scan's query string is passed on in the 303, and what is recorded for each scan

## Last reviewed

24 November 2026, by Laurent Schaffner: RFC 3986 and RFC 9110 quoted from the RFC Editor's text, Google's help pages read on the day, the Firefox, Safari and Brave sources read on the day, the referrer, the tags and the Google tag's requests measured in Chrome, and the Linkbreakers flow checked in the app and the code.
