QR code tracking

How to Add UTM Parameters to QR Codes for Tracking

Learn how to add UTM parameters to QR codes to track offline marketing in Google Analytics. Improve attribution, use dynamic QR codes, and monitor data in GA4.
Updated on April 22, 2026
Table Of Contents

Are you struggling to see which of your physical marketing materials are actually driving website traffic? Without proper tracking, every scan from a poster or flyer disappears into the “Direct” traffic bucket in Google Analytics, making it impossible to calculate your ROI. This guide explains how to use UTM parameters to turn every QR code scan into measurable data.

Why Your QR Code Needs UTM Parameters

When a user scans a standard QR code, Google Analytics (specifically GA4) often struggles to identify the origin of that visit. Because the smartphone camera app opens the browser directly without passing a referral header, the session is usually categorized as Direct traffic. This technical limitation leaves marketers in the dark about whether a visitor engaged via QR codes on flyers or QR codes on business cards.

UTM (Urchin Tracking Module) parameters are simple text tags appended to the end of a URL. When a visitor scans a code containing these tags, GA4 extracts the information and attributes the session to the correct campaign, source, and medium. Implementing this setup is the primary foundation for tracking QR codes effectively across different physical touchpoints.

Selecting the Correct UTM Tags for Accurate Data

To maintain clean data, you must follow strict naming conventions. Google Analytics is case-sensitive, which means that labels like “QRCode” and “qrcode” will appear as separate entries in your reports, fragmenting your insights. Consistency is key to ensuring your QR code analytics are easy to read and interpret.

The following table summarizes the primary parameters you should use for your offline campaigns:

Parameter Purpose Example
utm_source Identifies the physical location or material. billboard, flyer, vehicles
utm_medium Identifies the marketing channel (use `qr_code`). qr_code
utm_campaign The name of your specific marketing effort. summerpromo2024
utm_content Distinguishes between different versions of an ad. leftsidebar, bluedesign

Pro Tip: Always use lowercase letters for all UTM parameters. This prevents the accidental creation of duplicate categories and ensures that all your scan data remains consolidated in a single report.

Steps to Build Your Trackable QR Link

Creating a trackable URL is a straightforward process, but it requires precision to avoid technical errors. If a URL is formatted incorrectly, it may lead to a 404 error or result in why your QR code is not working during a live campaign.

  • Generate the tagged URL: Use a reliable campaign URL builder to input your destination link and the corresponding UTM parameters.
  • Address URL length: Long URLs with multiple UTM tags create dense, complex QR patterns. These tiny modules are often difficult for older smartphone cameras to read, especially in low-light conditions.
  • Choose a generator: Enter your final URL into a website QR code generator to create the visual code.
  • Perform a scan test: Before proceeding to mass printing, scan the code with several different devices to verify that the mobile browser correctly displays the UTM-tagged URL.

To maintain high scannability and the ability to update your tracking links even after your materials are printed, use a Dynamic QR Code Generator. This tool allows you to fix typos or change destination links without reprinting your flyers or brochures.

Why Dynamic QR Codes are Essential for Analytics

While you can technically add UTM parameters to a static QR code, it is rarely recommended for professional marketing. A static QR code embeds the entire long URL directly into its pixel pattern. As the URL grows with tracking tags, the code becomes increasingly dense. This density significantly increases the risk of scanning failures if the print is small or the environment is poorly lit.

Dynamic QR codes solve this problem by acting as a digital bridge. The physical code contains a short, permanent redirect link that sends the user to your final UTM-tagged URL. This offers two significant advantages:

Dynamic QR analytics
  • Improved Scannability: The physical pattern of the code remains simple and easy to read, regardless of how many tracking parameters you append to the destination link.
  • Operational Flexibility: If you discover a mistake in your campaign name or need to change the landing page after printing, you can edit the QR code instantly through your management dashboard.

Viewing Your QR Scan Data in Google Analytics 4

Once your campaign is active, you can monitor the performance of your offline materials directly within the GA4 interface. This allows you to see exactly which physical placements are generating the most engagement and conversions.

  • Open GA4 and navigate to the Reports section, then select Acquisition and Traffic Acquisition.
  • Locate the primary dimension dropdown and change it to Session medium. You should see `qr_code` listed if you used the recommended naming convention.
  • Add a secondary dimension by clicking the blue “+” icon and searching for Session source.

This customized view reveals the specific sources – such as different store locations or print materials – that are driving traffic. By tracking QR code scans over time, you can identify seasonal trends and determine which physical channels provide the best return on your marketing investment.

FAQ

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

Adding UTM tags to a static QR code makes the pattern more complex and harder to scan. However, when you use a dynamic QR code, the density remains low because the code only contains a short redirect URL, ensuring a fast and reliable scanning experience.

Why is my QR traffic showing up as “Unassigned” in GA4?

Traffic is categorized as “Unassigned” when GA4 does not recognize the `utmmedium` tag. To avoid this, use a standard medium like `qrcode`. If the traffic still appears as unassigned, you may need to create a Custom Channel Group in your GA4 settings to tell the system how to group your offline traffic.

Can I track the geographic location of each scan?

Google Analytics provides approximate geographic data based on the user’s IP address. For more precise insights, you can use geolocation analytics for QR codes provided by your QR management platform, which can often show scan data down to the city level in real-time. Properly tagging your links removes the guesswork from your offline marketing strategy. By combining UTM parameters with dynamic technology, you bridge the gap between your physical touchpoints and your digital reporting. If you are ready to start measuring the impact of your print materials, use our link QR code generator to create your first trackable campaign.

About the author

Siim 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, Siim 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
Scanning QR code tablet
Scan QR Codes with iPad & Tablet
Benefits of having QR Codes on Bottles and Cans
QR Codes on Bottles & Cans
✅ 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

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
Benefits of having QR Codes on Bottles and Cans
QR Codes on Bottles & Cans
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