What to do next
- Put the address of the page you want people to visit in "Destination URL", and the name of this campaign in "Campaign name", using letters and numbers.
- Under "Add a common placement", press each place where you'll share the link. Each press adds a URL on the right.
- Look at the GA4 label on each URL. Rows marked "Unassigned" aren't counted in any GA4 channel. Decide whether that's fine, or change how the medium is written.
- Copy the URLs into your posts and emails. For anything printed, open "Show QR code" and save it as SVG or PNG.
- If you might add placements later, press "Save this set". Next time, you can carry on with the same naming.
What UTM parameters are
Add tags like ?utm_source=newsletter&utm_medium=email to the end of a URL, and Google Analytics (GA4) can tell that a visit came from a link in your newsletter. These tags are UTM parameters. They don't change anything on the page the link points to.
Even when every link goes to the same page, giving each place its own UTM values lets you compare later whether more people came from your X post or from the QR code on your flyer. You'll find the results in GA4's Acquisition > Traffic acquisition report.
| Parameter | What to write | Use it? |
|---|---|---|
utm_source | Where visits come from: the name of a site or publication (google, newsletter and so on) | Always |
utm_medium | The kind of channel (email, social, cpc and so on) | Always |
utm_campaign | Which campaign: its name | Always |
utm_id | The campaign ID. When you import ad cost data, use the same ID | Strongly recommended |
utm_source_platform | The platform that sent the traffic | Strongly recommended |
utm_content | A name that tells ads or links within the same campaign apart | When you need it |
utm_term | The search ad keyword | When you need it |
utm_creative_formatutm_marketing_tactic | The type of creative, and the targeting tactic | When you need it. Not shown in GA4 reports for now |
This table sums up Google Analytics Help. Help asks you to always use utm_source, utm_medium and utm_campaign, and this tool doesn't make a URL until all three are filled in. The parameters can go in any order.
The GA4 channel depends on how you write the medium
GA4 sorts visits into channels such as "Organic Social", "Email" and "Paid Search". Which channel a visit lands in is decided mechanically by the values of utm_source and utm_medium (and, for some channels, utm_campaign). Values that don't fit any rule land in "Unassigned".
For example, a link in an email tagged utm_medium=mail lands in Unassigned, because the only values GA4 treats as Email are email, e-mail, e_mail and e mail. This tool runs each row through GA4's rules and shows the result.
Medium values and their channels
| utm_medium | GA4 channel |
|---|---|
social | Organic Social |
email | |
cpc | Paid Other |
paid_social | Paid Other |
paid_video | Paid Other |
display | Display |
affiliate | Affiliates |
referral | Referral |
video | Organic Video |
organic | Organic Search |
sms | SMS |
push | Mobile Push Notifications |
audio | Audio |
qr | Unassigned |
This table shows the result when the source is a name GA4 doesn't know. With paid media such as cpc or paid_social, the channel depends on the source (see the next section). Values count as paid media when they contain cp, are ppc or retargeting, or start with paid.
The source name matters too
GA4 keeps a list of search, social, video and shopping site names. If the source is on this list, the visit lands in the channel for that kind of site, even when the medium matches no rule. With utm_source=line, a visit lands in Organic Social even with a medium like message, which matches no rule. Combined with a paid medium, the kind of source decides between Paid Search, Paid Social and the others.
Watch out for names that aren't on the list. As of November 28, 2026, the list had twitter, twitter.com and t.co, but not x or x.com. meta and threads weren't there either. So utm_source=x with utm_medium=paid_social lands in Paid Other, not Paid Social. To get Paid Social, use twitter as the source. Unpaid posts with the medium social land in Organic Social, even when the source is x.
This tool's placements and their channels
| Placement | utm_source | utm_medium | GA4 channel |
|---|---|---|---|
| X (post) | x | social | Organic Social |
instagram | social | Organic Social | |
facebook | social | Organic Social | |
| LINE | line | social | Organic Social |
| TikTok | tiktok | social | Organic Social |
| Threads | threads | social | Organic Social |
| YouTube (description) | youtube | video | Organic Video |
| Newsletter | newsletter | email | |
| Email signature | signature | email | |
| SMS | sms | sms | SMS |
| App notification | app | push | Mobile Push Notifications |
| Flyer | flyer | qr | Unassigned |
| Poster / in store | poster | qr | Unassigned |
| Business card | card | qr | Unassigned |
| Postcard / direct mail | postcard | qr | Unassigned |
| Google Ads (search) | google | cpc | Paid Search |
| Microsoft Ads (search) | bing | cpc | Paid Search |
| Facebook / Instagram ads | facebook | paid_social | Paid Social |
| X ads | x | paid_social | Paid Other |
| LINE ads | line | paid_social | Paid Social |
| TikTok ads | tiktok | paid_social | Paid Social |
| YouTube ads | youtube | paid_video | Paid Video |
| Banner ads | banner | display | Display |
| Affiliate | affiliate | affiliate | Affiliates |
| Press release | pressrelease | referral | Referral |
| Blog | blog | referral | Referral |
| Link from another site | partner | referral | Referral |
Printed QR codes can stay Unassigned
GA4's rules have no channel for print, such as flyers and posters, so visits tagged utm_medium=qr land in Unassigned. That isn't a mistake, so you can leave it. In the Traffic acquisition report, "Session source/medium" gives the numbers for each place you handed out, such as flyer / qr. If you want them counted as a channel too, make your own channel group under "Channel groups" in GA4's Admin.
Tidying values
- Stick to lowercase: GA4 treats upper and lower case as different, so
googleandGoogleare counted as separate values. When people write them differently, the numbers for one placement end up split over two rows. Lowercase is the safe choice. - Don't use spaces: spaces turn into
%20in a URL and make it hard to read. Join words with_or-, as inwinter_sale, and agree on one of them across your team. - Don't use full-width characters: the full-width
xthat Japanese input produces and the half-widthxare different values. This tool turns them into half-width ones. - Leave the campaign ID as it is:
utm_idis for matching the ID in your ad platform, so it goes into the URL exactly as typed, capitals and spaces included.
Values in Japanese and other scripts work too, but they turn into forms like %E5%86%AC in the URL, which makes it longer.
QR codes for print
Each URL can be turned into a QR code. Press "Show QR code" to see it right there, and check that your own phone can read it before you print.
- Margin: a QR code needs a blank margin at least 4 cells wide on every side. This tool saves codes with a 4-cell margin. Don't let frames or text overlap it.
- Colour: black on a white background is the basic choice, and this tool saves in black and white. If you change the colours, test well that the code still reads before you print.
- Size: the bigger each cell (called a module in the standard), the easier the code is to read, so print it as big as the space allows. As a guide for printers, the developer recommends at least 4 dots per cell. On a 600 dpi printer, that's 0.17 mm per cell or more. Enter a "Print width" to see how many millimetres one cell will be.
- Resistance to dirt and damage: a higher error correction level means the code still reads when part of it is dirty or missing. In return, it has more cells, and they get smaller. M (restores about 15%) is the usual choice. For places where codes get dirty, choose Q (about 25%) or H.
- Shorter URLs are better: the longer the URL, the more cells the code has. Printed at the same width, each cell gets smaller and harder to read. For rows used on paper, leave
utm_contentand similar fields empty to keep the URL short.
SVG stays sharp at any size, so it suits print. It's saved at the "Print width" you entered, so it keeps that size when you open it in Illustrator and the like. The black is RGB black (#000000). When you place it in print artwork, change it to 100% K. Black built from four inks can blur at the edges if the plates are slightly out of register.
This tool makes QR codes that follow the standard (ISO/IEC 18004; JIS X 0510 in Japan). QR codes that follow the standard can be used with no application or fee. They range from 21 × 21 cells at the smallest to 177 × 177 at the largest, growing 4 cells at a time as the URL gets longer. Working from the tables in the standard, a URL can be up to 2,331 bytes at error correction level M.
Tips
- The destination URL already has parameters: enter it as it is. The original parameters (like
?id=123) stay, and the UTM parameters go after them. If the original URL had UTM parameters, they're replaced with the new values. - The destination URL has a #: the UTM parameters go before the
#. URL rules put the?part first and the#part after it, so parameters added after the#aren't read as parameters. - Two links in the same place: when an email has a button at the top and another at the bottom, duplicate the row and change
utm_contentto something liketopandbottom. Then you can compare which one gets clicked. - Lots of placements: make the list in a spreadsheet and paste it into "Add rows from a spreadsheet". You can make up to 40 at a time.
- Keeping a team consistent: "Copy a link to this set" turns what's on screen into a URL you can hand over. Whoever opens it starts from the same placements and settings.
FAQ
- Is the URL or campaign name I enter sent anywhere?
- No. Building the URLs and making the QR codes both happen in your browser. This site is set up so that it can't talk to anything outside once the page has loaded, so there's no way for it to send anything. Even the name of a campaign that hasn't launched yet stays on your device.
- How accurate is the channel check?
- It applies the rules in Google Analytics Help from the top of the table down. Help doesn't say in which order the rules are applied, so that part is a guess. From the list of site names, only commonly used ones were checked one by one, on November 28, 2026, and put in. For names that weren't checked, the tool says "likely". If you've made your own channel group in GA4's Admin, its rules aren't taken into account.
- Can it make short URLs?
- No. Short URLs are made by sending your URL to an outside service, and this tool doesn't talk to anything outside. To shorten one, put the finished URL into the shortener you normally use.
- Do the QR codes expire?
- No. The URL itself is inside the QR code. It doesn't go through this site, so it keeps working as long as the page it points to exists. On the other hand, you can't change where it points once it's printed.
- Where are my saved sets?
- In this browser. They don't carry over to other computers or phones, and they're deleted when you clear your browsing data. To keep them, save a file with "Save as CSV", or keep a link with "Copy a link to this set".
Sources
- Analytics Help, "URL builders: Collect campaign data with custom URLs" (what each parameter means, the three to always use, case sensitivity, order, the report to look at)
- Analytics Help, "Default channel group" (the conditions for each channel, what Unassigned means, the list of site names)
- DENSO WAVE, "Point for determining the code area" (the margin is at least 4 cells)
- DENSO WAVE, "Point for setting the module size" (bigger cells read more easily; at least 4 dots per cell; 0.17 mm at 600 dpi)
- DENSO WAVE, "Error correction feature" (level M restores about 15% and Q about 25%; how to choose a level)
- DENSO WAVE, "FAQ" (QR codes that follow the standard can be used freely; black on white is the basic choice)
- DENSO WAVE, "Information capacity and versions of QR Code" (from 21 × 21 to 177 × 177 cells, 4 cells more per step)
- ISO/IEC 18004, "QR code bar code symbology specification" (the QR code standard, with the capacity tables)
- Analytics Help, "Custom channel groups" (how to make your own channel group)
- RFC 3986, "Uniform Resource Identifier (URI): Generic Syntax", section 3 (the order of the ? part and the # part)
The GA4 channel conditions and the list of site names were checked on November 28, 2026. If Google changes the rules, the results here may stop matching.
QR Code is a registered trademark of DENSO WAVE INCORPORATED. Google Analytics and Google Ads are trademarks of Google LLC. X, Instagram, Facebook, LINE, TikTok, Threads, YouTube and Microsoft are trademarks of their respective companies. This site is run by an individual with no connection to any of these companies.