How to Track QR Codes and Offline Campaigns with UTM Parameters
Offline marketing sends people online through QR codes, printed URLs and spoken addresses, and most of that traffic lands in GA4 as direct. This guide shows how to use redirects and UTM parameters to attribute print, events, TV, radio and podcasts, and where the method runs out.
In short
Point each QR code or printed address at a short URL on your own domain that redirects to a landing page with UTM parameters, such as utm_source=flyer, utm_medium=print and utm_campaign=spring-open-day. Use one redirect per placement, keep the parameters through the redirect, and map offline mediums to a custom channel group in GA4.
You printed the flyers, sponsored the podcast and put a QR code on the event stand, and in GA4 it all looks like direct traffic. That is the default outcome for offline marketing. A scanned QR code or a typed address arrives with no referrer, so analytics has nothing to go on. UTM parameters solve part of this, provided the URL people use carries them. This guide shows how to set that up for each offline format and where you need other signals to fill the gap.
The pattern: a short URL that redirects to a tagged one
Nobody types a URL with five UTM parameters, and a QR code that holds one gets dense and harder to scan from a distance. The answer is a short path on your own domain, such as example.com/open-day, that issues an HTTP redirect to the full landing page URL with parameters attached. The QR code or printed address carries the short URL. Your server adds the tags.
- One short URL per placement: each flyer design, each magazine, each event, each podcast. Shared URLs merge results you will want separately.
- Use a temporary redirect (302 or 307) from the short path to the tagged URL, because browsers can cache a permanent one and keep using the old destination after you change it, and check that no later redirect on the site drops the query string.
- Keep the short paths on your own domain rather than a third-party service, so you can change destinations and the codes never expire.
- Record every short URL, its destination and its tags in one sheet, so the team can trace any number back to a placement.
Values for each offline format
Source names the specific placement; medium names the type of activity. If the distinction is new to you, read utm_source vs utm_medium first. Use utm_campaign for the wider initiative the placement belongs to, such as spring-open-day, so a flyer, a poster and a radio spot for the same event roll up into one campaign while each keeps its own source. That structure lets you answer both questions a manager will ask: how did the event promotion do overall, and which placement pulled its weight.
| Format | utm_source | utm_medium | Default GA4 channel |
|---|---|---|---|
| Flyer or leaflet | flyer-name or area | Unassigned | |
| Magazine or newspaper ad | publication name | Unassigned | |
| Packaging insert | insert-name | Unassigned | |
| Event stand or badge | event name | event | Unassigned |
| Podcast sponsorship | show name | audio | Audio |
| Radio ad | station name | audio | Audio |
| TV ad vanity URL | channel or slot | tv | Unassigned |
| Outdoor poster | site or network | ooh | Unassigned |
Only Audio has a matching default channel in GA4, which requires the medium audio exactly. Everything else falls into Unassigned, GA4's label for traffic no rule matched. That is not wrong data, just unlabelled data, and the fix is a custom channel group: copy the default group, add an Offline channel whose rule matches mediums such as print, event, tv and ooh, and place it above Unassigned. Google's documentation notes that custom channel groups can be applied to reports retroactively. Our guide to GA4 default channel groups explains the rules you are extending.
QR codes: practical details
- 1Generate the code from the short URL, not the tagged one, so it stays simple and editable.
- 2Use utm_content to separate versions of the same placement, such as front-of-flyer and back-of-flyer, or table-card and wall-poster.
- 3Print a test copy and scan it with at least one iPhone and one Android phone before the run.
- 4Make the landing page work on mobile; nearly every scan arrives on a phone.
- 5If you use a dynamic QR service, confirm its redirect keeps your parameters and decide what happens to printed codes if you stop paying for it.
Scans are not the same as sessions
A redirect on your own domain has a useful side effect: your server sees every request to the short path, whether or not analytics later records a session. Visitors who decline analytics consent, block scripts or close the page before it loads still hit the redirect. Counting requests to each short path in your server or CDN logs gives you a scan count that sits alongside the GA4 session count. Expect the scan count to be higher. The difference is a rough measure of how much your analytics misses for that placement, and it is a better number to show a sponsor or a print partner than sessions alone. Filter out obvious bots and your own team's test scans before you report it, and keep the log query saved so the same rule applies every month.
Keep personal data out of printed URLs
Direct mail tempts teams to print a unique URL per recipient with the name or email in the parameters. Avoid it. Google's guidance for Analytics says URL paths and parameters must be free of personally identifiable information, and printed URLs end up in browser history, server logs and shared screenshots. If you need per-recipient tracking, use an opaque code that only your own systems can resolve, and confirm the approach with whoever handles privacy for your organisation.
Events, TV, radio and podcasts
At events, a QR code on the stand captures people who want to act on the spot, while badge scans and conversations reach your CRM another way. Tag the stand code so you can at least separate on-the-day visits from the follow-up. For podcasts and radio, a spoken vanity address is the equivalent of the QR code: short, easy to say, and redirecting to a tagged page. Pair it with a show-specific discount code, because many listeners will search your name instead of typing the address, and the code catches those sales at checkout.
TV is the hardest. A vanity URL captures the minority who type it. The rest search your brand or type your homepage, which shows up as a lift in branded search and direct traffic around airing times. Compare hourly sessions for the hours after each slot against the same hours on days without airings. That is a correlation, not attribution, but it is often the best signal available. Our guide to why direct traffic is so high in GA4 covers what else feeds that bucket.
Avoid shorteners you do not control
Generic link shorteners work for a quick test, but printed material lasts longer than many accounts. If the short link breaks, or the service changes how it handles query strings, every printed copy points nowhere useful. A path on your own domain avoids both risks. If you do use a shortener, our guide to URL shorteners and UTM tracking explains what to test.
From scan to sale
Tagged offline traffic tells you which placement drove visits. Many offline campaigns convert later, by phone or in person, which no UTM sees. Closing that loop means recording the lead's source when they first arrive and matching later sales back to it, as explained in our guide to offline conversion tracking. EndFrame's first-party tracker captures the UTM values from the redirected landing page and keeps them on the visitor, so a lead who scanned a flyer keeps that source when they submit a form days later. To build the tagged destination URLs, use our free UTM builder.
Frequently asked questions
Can I put UTM parameters directly in a QR code?
Yes, a QR code can hold a full tagged URL. The drawback is that the code becomes denser and the URL is fixed once printed. A short redirect on your own domain keeps the code simple and lets you change the destination or the tags later without reprinting.
What utm_medium should I use for print or QR codes?
Use a clear value such as print, qr or event, and use it consistently. GA4's default channel group has no print or offline channel, so these sessions fall into Unassigned unless you create a custom channel group that maps them to an Offline channel.
Do dynamic QR code generators keep UTM parameters?
Most send the scan through their own redirect to the URL you set, so parameters in that URL usually survive. Test a printed sample before the full run, and remember the code stops working if the service is cancelled. A redirect on your own domain avoids that dependency.
How do I track a TV or radio ad that has no link?
Give the ad a short, memorable vanity address that redirects to a tagged landing page, and compare branded search and direct traffic in the hours after each airing. Neither method captures everyone; people who simply search your brand name will not carry the tags.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required