Home > Blog > How to Add UTM Parameters to QR Codes for Tracking
Marketer scanning campaign poster

How to Add UTM Parameters to QR Codes for Tracking

Learn how to add UTM parameters to QR codes to track offline marketing campaigns in Google Analytics 4 and accurately measure scan performance and ROI.
Updated on September 29, 2026
Table Of Contents

Are your offline marketing campaigns disappearing into generic direct traffic in Google Analytics? Without campaign tags, smartphone scans cannot pass referral headers, making it impossible to measure physical promotion performance. Adding UTM parameters to your destination URLs solves this issue by attributing every scan to its exact campaign, medium, and source.

Why QR Codes Require UTM Parameters

When someone scans a printed QR code with a smartphone camera, the operating system launches the default mobile browser directly. Because this interaction does not originate from a hyperlinked web page, the browser does not pass an HTTP referrer header. Web analytics platforms like Google Analytics 4 (GA4) cannot identify where the visitor originated, so they automatically categorize the session as Direct traffic.

This reporting gap makes it difficult to evaluate marketing spend across print ads, event signage, product packaging, and direct mail. Urchin Tracking Module (UTM) parameters solve this by attaching campaign tracking tags to the end of your web address.

When the destination page loads, GA4 extracts these tags and assigns the session to the designated channel. Using UTM parameters allows you to accurately track offline marketing ROI with QR codes across individual print materials and distribution channels.

Selecting the Correct UTM Tags for Offline Campaigns

Consistent naming conventions are critical for clean reporting. Google Analytics is case-sensitive, meaning that `Flyer`, `flyer`, and `Flyers` appear as three separate entries in your reports. Standardizing your tagging structure prevents fragmented data and simplifies your campaign analysis.

Google strongly recommends setting `utmsource`, `utmmedium`, and `utm_campaign` at a minimum to avoid `(not set)` values in your traffic acquisition reports.

Parameter Purpose Recommended Convention Example Value
`utm_source` Identifies the specific placement, venue, or physical asset Placement name or material type `storewindow`, `mailerq3`
`utm_medium` Identifies the marketing vehicle or delivery mechanism Standardized channel tag `qr` or `qr_code`
`utm_campaign` Identifies the broader marketing initiative or product launch Overall campaign title `springlaunch2026`
`utm_content` Differentiates creative variants, sizes, or calls to action Creative or layout identifier `sidebarbanner`, `frontcover`
`utm_term` Tracks specific audience segments or paid keywords Keyword or audience identifier `retargeting_event`

To maintain data integrity across all offline assets, follow these best practices:

  • Always write parameter values in lowercase letters to prevent split channel groupings.
  • Replace spaces with hyphens or underscores, as spaces create encoded characters that complicate reporting.
  • Standardize your medium tag across the entire organization so all scans roll up into a single channel.
  • Maintain a central tracking spreadsheet or URL documentation log to avoid duplicate parameter values across team members.

How to Build and Convert Your Trackable QR Link

Building a trackable URL follows a strict technical syntax. The parameters sit at the end of the base URL, separated from the path by a question mark (`?`). Each parameter connects to its value with an equals sign (`=`), and multiple parameters connect with an ampersand (`&`).

A properly structured campaign URL appears in this format:

`https://example.com/promo?utmsource=downtownbillboard&utmmedium=qr&utmcampaign=summersale&utmcontent=blue_creative`

You can assemble this link manually or use Google’s Campaign URL Builder to generate the string. Once your URL is ready, follow these steps to turn it into a production-ready marketing asset:

UTM QR tracking workflow
  • Enter your complete UTM-tagged URL into a reliable link QR code generator to encode the destination.
  • Ensure the base webpage is mobile-responsive and functions properly on small screens before finalizing the graphic.
  • Follow established technical guidelines to convert link to QR code graphics that maintain sufficient size and contrast for rapid mobile scanning.
  • Open the generated URL on a mobile device to verify that your analytics platform captures the session in real-time.
  • Check the GA4 Realtime report or DebugView to confirm that `source`, `medium`, and `campaign` parameters populate as expected before sending materials to print.

Why Dynamic QR Codes Are Essential for Analytics

While static codes can technically encode UTM parameters, they introduce severe physical limitations for print marketing. A static QR code stores the entire text string directly within its black-and-white module pattern. Because UTM parameters add significant length to web addresses, the resulting static code becomes extremely dense.

Dynamic QR analytics

A high-density static pattern contains thousands of tiny blocks that require high visual clarity to scan. If you print a complex static code on small assets like business cards, or if the code appears in low-light environments, smartphone cameras frequently fail to decode it.

Comparing static vs dynamic QR codes reveals why dynamic technology is the industry standard for tracked campaigns:

  • Preserved Scannability: Dynamic QR codes encode a short redirect link rather than your full, tag-heavy URL. This keeps the visual pattern clean and easily readable at any print size.
  • Post-Print Editing: If you spot a typo in a UTM parameter or need to change the destination landing page after printing thousands of flyers, dynamic codes allow you to edit the target URL instantly from your dashboard.
  • Dual-Layer Analytics: Combining dynamic redirection with UTM tags allows you to measure both top-of-funnel scan metrics and deeper on-site web conversions.

Monitor Your Campaign in Real-Time Want to see exactly where and when your customers are scanning your materials? Use the Dynamic QR Code Generator to create trackable codes and access a full performance dashboard today.

Using dynamic routing also provides environmental insights that Google Analytics cannot capture on its own, illustrating how QR codes track print ad engagement at the physical point of contact.

Viewing QR Scan Data in Google Analytics 4

Once your physical assets are distributed and users begin scanning, GA4 captures the embedded UTM parameters to populate manual campaign and traffic-source dimensions.

To review incoming scan traffic in the standard acquisition reports:

  • Navigate to Reports in the left sidebar, expand the Acquisition folder, and select Traffic acquisition.
  • Locate the primary dimension dropdown menu above the data table and switch it to Session source / medium.
  • Type `qr` or `qr_code` into the table search bar to filter the view exclusively to your offline scan traffic.
  • Add a secondary dimension by clicking the plus icon (`+`) next to the search bar and selecting Session campaign to see performance by individual initiative.

To view manual campaign dimensions in a consolidated report:

  • Navigate to Reports, expand Acquisition, and select Overview.
  • Scroll down to the Sessions by Session manual source card and click View manual campaigns.
  • Review campaign volume, engagement rates, average session duration, and goal completions tied directly to your offline collateral.

Combining web analytics with specialized software for tracking QR codes gives you a complete view of campaign performance. While GA4 records post-scan behavior like pageviews, time on site, and e-commerce purchases, your QR dashboard captures raw scan counts, device operating systems, and scan timestamps directly at the physical touchpoint.

Connecting Scan Data to Campaign Conversions

Tracking scan volume shows customer curiosity, but measuring campaign return on investment requires connecting top-of-funnel scans to concrete bottom-of-funnel actions. When you configure key events in GA4 – such as lead form submissions, account registrations, or completed checkouts – the platform attributes those digital conversions back to your original offline UTM tags.

By pairing structured UTM tagging with dynamic QR code technology, you transform static print assets into measurable digital acquisition channels. Establishing clear naming standards, validating URLs before printing, and monitoring traffic through GA4 reports ensures every dollar invested in physical marketing is fully accountable.

Frequently Asked Questions

Will long UTM parameters make my QR code hard to scan?

Long URLs create dense patterns when encoded into static QR codes, which can cause scanning delays or failures on smaller print items. Using a dynamic QR code solves this by storing a short redirect link in the code matrix, keeping the pattern clean and scannable while routing visitors through your complete UTM URL.

Why does QR code traffic appear as Unassigned or Direct in GA4?

Scans appear as Direct when the destination URL lacks UTM parameters, because mobile camera apps do not pass referral headers to web browsers. Traffic appears as Unassigned if you use non-standard medium values that do not match default channel grouping rules in GA4, which you can resolve by using a consistent medium such as `qr` or `qr_code`.

Can I change the UTM parameters after printing my QR code?

You can only change UTM parameters after printing if you use a dynamic QR code. Dynamic codes point to a backend redirect that you can edit anytime in your dashboard, whereas static QR codes hardcode the URL permanently into the visual pattern and require a full reprint to update.

About the author

Sam Kostabi is the Content Lead at Pageloot. He writes about our innovative QR code generator services. With a profound expertise spanning over half a decade on QR codes, Sam is a subject matter expert in the field. He makes significant strides in leveraging QR technology to simplify and augment digital interactions.

Category
Learn more about
✅ The #1 Solution for QR Codes

If you need to create QR Codes online, you can Make a QR Code right here for free!
Pageloot is the #1 Go-To Solution to create and scan QR Codes.

BL-0145

blog-gen

Trusted by over 20 000 brands to get more sales, reviews & followers.

Client logos
Trusted by top brands
Rated 4.8 out of 5

4.86 / 5 stars rating

Hugo Laurent
Hugo Laurent
★★★★★
Restaurant owner
The most easy and reliable QR code Generator ever. PDF files can be uploaded instantly. Our restaurant menus are now digital.
Lucas Jansen
Lucas Jansen
★★★★★
Real estate developer
This is an excellent tool and the QR codes take you to just where you want. We only use the location QR code but there are so many useful features.
Emma Moretti
Emma Moretti
★★★★★
Retail products
Easy to use and quick. It works great and creates a perfect images, so employees can download my vCard.
Hugo Laurent
Hugo Laurent
★★★★★
Restaurant owner
The most easy and reliable QR code Generator ever. PDF files can be uploaded instantly. Our restaurant menus are now digital.
Lucas Jansen
Lucas Jansen
★★★★★
Real estate developer
This is an excellent tool and the QR codes take you to just where you want. We only use the location QR code but there are so many useful features.
Emma Moretti
Emma Moretti
★★★★★
Retail products
Easy to use and quick. It works great and creates a perfect images, so employees can download my vCard.
See More QR Codes
Turn anything into a digital experience in less than 3 minutes.

Free 14-day trial.

No credit card required.

Get 30% off your first purchase

Use the code:

Share your MP3 files

Sign up to create PDF QR codes

Upload and display everything you need:

  • Audio files
  • Podcasts
  • Music

14-day free trial with sign-up.
QR codes expire after trial.

sign up to create an audio mp3 QR code

Get more scans with frames

Sign up to add more frames to your QR codes

Call-to-action frames help your customers interact with the QR Code easily. Try them out!

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to add more frames to your QR codes

Add more style with shapes

Signup to create more shapes

QR Codes don’t have to be square. Try switching it up to fit your brand’s image.

14-day free trial with sign-up.
QR codes expire after trial.

Signup to create more shapes

Add a logo to your QR Code

Sign up to add your logo to QR codes

Make your QR code stand out by adding your logo and brand to it.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to add your logo to QR codes

Smart App Store redirects

Sign up to create an app store QR code

Add your App links to our smart App Store QR Code. The users are redirected based on their device.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to create an app store QR code

Upload an image to a QR Code

Sign up to create image QR codes

Share your images easily. Change any image dynamically within seconds.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to create image QR codes

Share your PDF files

Sign up to create PDF QR codes

Upload and display everything you need:

  • Menus & price lists
  • Instructions
  • Any documents

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to create PDF QR codes

Edit later without printing

Sign up to edit your QR codes without printing again

Dynamic QR Codes let you change the contents of your QR Code without having to print new ones.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to edit your QR codes without printing again

When? Where? Track your QR Code scans

Sign up to track your QR codes

Discover which of your QR Codes receive the most scans and what excites your clients the most.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to track your QR codes

Print ready files available

Sign up to create vector QR codes like PDF and SVG

.EPS, .PDF, .SVG

Want to download your QR Codes in HD resolution? Get vector or pixel formats that are ready to be printed.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to create vector QR codes like PDF and SVG

Please wait. Your QR Code is loading... loading...

Make it your own

Sign up to save your QR code for later

Get more scans by creating awesome QR Codes with different colors, logos and call-to-action frames.

14-day free trial with sign-up.
QR codes expire after trial.

Sign up to save your QR code for later