How to Track QR Code Campaigns with UTM Parameters
QR codes bridge the gap between offline and online marketing. Learn how to embed UTM parameters inside every QR code so you can measure offline-to-online traffic in Google Analytics and GA4 accurately.
QR codes have become one of the most powerful tools for bridging offline and online marketing. They appear on product packaging, restaurant menus, retail displays, event materials, business cards, print ads, and out-of-home advertising.
But here is the problem most marketers face: when a user scans a QR code and visits your website, Google Analytics typically classifies that visit as Direct traffic. GA4 has no way of knowing the visitor came from a printed flyer or a conference booth banner — unless you tell it.
That is exactly what UTM parameters do. By embedding a UTM-tagged URL inside every QR code you create, you transform an opaque offline channel into a measurable, trackable marketing source that appears clearly in your GA4 reports.
Why QR Codes Need UTM Tracking
Without UTM parameters inside your QR codes, every scan that drives a website visit appears in GA4 as Direct traffic. This means:
- you cannot see how many people scanned your event banner versus your packaging QR code
- you cannot compare which physical location or material generates the most web traffic
- you cannot attribute revenue or conversions back to specific offline campaigns
- you cannot justify your print and out-of-home marketing budget with data
- you cannot A/B test different QR code placements or messages
With UTM-tagged URLs inside your QR codes, every one of those questions becomes answerable directly in GA4 — without any additional tools or integrations required.
Create Trackable QR Code URLs
Build UTM-tagged links for your QR codes and measure offline-to-online traffic in GA4.
Generate QR Code UTM LinkHow UTM Tracking Works with QR Codes
The process is straightforward. Instead of embedding a plain URL inside your QR code, you embed a UTM-tagged version of the same URL. The QR code generator does not need any special capabilities — the tracking data is carried entirely by the URL itself.
Here is the workflow:
- Choose the destination page on your website (e.g., a product page, landing page, or contact form).
- Build a UTM-tagged version of that URL using a tool like utmbuilder.click.
- Copy the complete UTM-tagged URL.
- Paste that URL into any QR code generator to create your printable code.
- When users scan the QR code, GA4 automatically reads the UTM parameters and attributes the traffic correctly.
Recommended UTM Structure for QR Codes
QR codes represent a unique channel category. Here is the recommended UTM parameter structure that ensures GA4 correctly identifies and classifies QR code traffic:
| Parameter | Recommended Value | Explanation |
|---|---|---|
| utm_source | qr_code | Or a specific material name: flyer, packaging, event_banner |
| utm_medium | qr_code | Identifies the QR code channel type in GA4 |
| utm_campaign | summer_event_2026 | The campaign, event, or product launch name |
| utm_content | booth_banner | The specific placement of this QR code |
QR Code UTM Tracking Use Cases
Product Packaging
Track how many users scan QR codes on your product box, bag, or label and visit your site. Compare different product lines.
Event Materials
Measure QR scans from conference banners, booth displays, lanyards, and event programs. Compare event ROI against digital campaigns.
Print Advertising
Attribute website visits and conversions back to specific print ad placements in magazines, newspapers, or direct mail pieces.
Restaurant & Hospitality
Track menu QR codes, loyalty program scans, and review request QR codes separately using unique source values per location.
Retail Signage
Measure in-store display QR code performance across multiple retail locations using location-based campaign and content tags.
Business Cards
Track how often business card recipients visit your website. Compare performance across different networking events or card designs.
Direct Mail
Attribute website traffic and conversions to specific direct mail campaigns using the mailing date or campaign name in utm_campaign.
Out-of-Home Advertising
Track billboard, transit, and poster QR code performance by location using descriptive content tags per placement.
QR Code UTM URL Examples
Product Packaging QR Code:
Trade Show Booth Banner:
Restaurant Menu:
Magazine Print Ad:
Important Considerations for QR Code UTM Tracking
- URL Length Does Not Matter for QR Codes: Unlike social media posts where long URLs are undesirable, QR codes encode any URL length equally well. There is no need to shorten your UTM-tagged URL before creating the QR code.
- Use URL Shorteners with Caution: If you use a URL shortener (e.g., bit.ly), the UTM parameters must be in the destination URL, not the shortened version. The shortener simply redirects — it passes the full UTM tags through to GA4 correctly.
- Print Cannot Be Changed: Unlike digital ads where you can edit a campaign URL at any time, print materials are permanent. Double-check every UTM-tagged URL before sending anything to print.
- Test Every QR Code Before Printing: Scan your QR code with a phone, confirm the page loads, and verify in GA4 DebugView that the UTM parameters are being captured correctly.
- Use Location-Specific Content Tags: If you place QR codes in multiple physical locations (e.g., five retail stores), assign unique
utm_contentvalues per location so you can compare performance per site. - Keep Campaign Names Consistent: If you are running both digital and physical campaign elements simultaneously, use the same
utm_campaignname across both to see the full campaign picture in GA4.
How QR Code UTM Data Appears in GA4
Once users scan your QR codes and visit your site, GA4 populates reports with the attribution data embedded in your UTM tags:
- Traffic Acquisition: QR code sessions appear under the source and medium values you defined (e.g.,
packaging / qr_code). - Campaign Report: Shows all sessions grouped by your campaign name, allowing you to compare events, product launches, or seasonal campaigns.
- Landing Pages: Shows which pages QR code scans most frequently land on, and how users convert from there.
- Conversions: Attributes conversion events (purchases, form submissions, sign-ups) back to specific QR code placements using the full source/medium/campaign/content breakdown.
Track your QR code campaigns properly
Stop letting QR code scans disappear into direct traffic. Build UTM-tagged links for every QR code in seconds.
Create QR Code Tracking URLFinal Thoughts
QR codes are one of the most undertracked marketing channels in digital marketing. Every scan that goes untagged is a data point lost — a visitor who could have been attributed to the right campaign, material, or location, but instead disappears into direct traffic in GA4.
Adding UTM parameters to your QR code URLs is the simplest possible fix. It requires no additional tools, no integrations, and no ongoing maintenance — just a properly formatted URL inside every QR code you create. Use a UTM builder like utmbuilder.click to generate those URLs accurately every time, then test before you print.
