QR Generator

May 31, 2026

How to Track QR Code Campaigns with Google Analytics for E-commerce

Google AnalyticsTrackingE-commerceROI

You have added QR codes to your product packaging, marketing materials, and store signage. But how do you know if they are working? How many scans lead to purchases? Which campaigns drive the most revenue?

Google Analytics 4 (GA4) gives you the answers. By properly tagging your QR code URLs, you can track every scan as a campaign interaction and measure its impact on your business.

This guide covers how to set up QR code tracking with GA4 for e-commerce and retail businesses.

Why Track QR Codes with Google Analytics

Without tracking, QR codes are a black box. You know people scanned, but you do not know:

  • Did they make a purchase?
  • How much did they spend?
  • What pages did they visit?
  • Did they return later?
  • How did they compare to other marketing channels?

GA4 answers all these questions. With proper tracking, a QR code becomes a measurable marketing channel alongside email, social media, and paid ads.

Step 1: Set Up UTM Parameters

UTM parameters are tags added to the end of URLs that tell Google Analytics where traffic came from. For QR codes, use these five parameters:

ParameterPurposeExample Value
utm_sourceWhere the scan happenedqr-code
utm_mediumType of QR codepackaging, signage, print-ad
utm_campaignSpecific campaign namesummer-sale-2026
utm_contentSpecific QR code variationproduct-box-v1
utm_termKeywords (rarely used for QR)(optional)

Example URL

https://yourstore.com/product-page?utm_source=qr-code&utm_medium=packaging&utm_campaign=summer-sale-2026&utm_content=product-box

URL Builder

Manually adding UTM parameters is error-prone. Use the Google Campaign URL Builder or append parameters consistently using a spreadsheet template.

Step 2: Create Tagged QR Codes

Once your UTM-tagged URLs are ready, generate QR codes using a free QR code generator with each tagged URL.

Generate separate QR codes for each:

  • Product box vs shipping insert
  • Window decal vs counter display
  • Summer campaign vs winter campaign
  • Online store vs physical store

Each unique combination of UTM parameters creates a trackable campaign.

Step 3: Set Up GA4 Events

In GA4, the default pageview tracking captures QR code scans as pageviews with your UTM parameters attached. To go deeper, set up specific events:

Recommended Custom Events

EventTriggerPurpose
qr_code_scanQR code page loadsCount all scans
qr_code_scan_to_cartAdd to cart after scanMeasure purchase intent
qr_code_scan_to_purchasePurchase within sessionMeasure conversions
qr_code_scan_to_signupAccount creation after scanMeasure lead generation

Setting Up Events in GA4

  1. Go to Admin → Events → Create event
  2. Define the event condition based on UTM parameters or URL paths
  3. Mark as conversion for key events (purchase, signup)

Step 4: Create a QR Code Channel in GA4

To see QR code traffic as its own channel alongside Organic Search, Direct, and Social:

  1. Go to Admin → Channel Grouping
  2. Create a new channel grouping rule
  3. Set condition: source matches exactly qr-code
  4. Group all QR code traffic together

Step 5: Build a QR Code Dashboard

Key Metrics to Monitor

MetricWhere to Find ItWhat It Tells You
Total scansReports → Traffic → Source/MediumOverall volume
Scan rateManual calculation (scans ÷ impressions)Effectiveness of placement
Bounce rateSame reportAre you sending traffic to the right page?
Sessions per userSame reportAre QR visitors returning?
Conversion rateReports → Monetization → E-commerceHow many scans become sales?
RevenueReports → Monetization → E-commerceDirect revenue from QR scans
Average order valueReports → Monetization → E-commerceAre QR customers spending more or less?

Compare Campaigns

Use UTM content parameter to compare:

  • Packaging vs signage vs print ads
  • Product A packaging vs Product B packaging
  • Summer campaign vs winter campaign
  • Version 1 design vs Version 2 design

Audience Building

Create GA4 audiences based on QR code interactions:

  • Users who scanned a QR code in the last 30 days
  • Users who scanned AND purchased
  • Users who scanned but did not purchase
  • Users who scanned multiple times

Use these audiences for remarketing campaigns in Google Ads.

Real Example: E-commerce Store QR Tracking

An online fashion retailer tracked QR codes on product packaging using UTM parameters.

Setup:

  • utm_source=qr-code
  • utm_medium=packaging
  • utm_campaign=spring-2026
  • utm_content=product-name

Results after 3 months:

  • 1,247 QR code scans from packaging
  • 342 add-to-cart events (27% add-to-cart rate)
  • 187 purchases (15% conversion rate from scan)
  • $12,430 revenue directly attributed to QR scans
  • $66 average order value (12% higher than site average)
  • 22% of QR scanners returned within 60 days

Common Tracking Mistakes

No UTM Parameters

QR codes without UTM tags appear as "Direct" traffic in GA4, mixed with people who typed the URL directly. You cannot separate QR code performance from other direct traffic.

Inconsistent UTM Naming

Using "qr" in one campaign and "QR-code" in another splits your data. Create a naming convention and stick to it.

Not Testing Before Printing

Always scan and verify the QR code opens the correctly tagged URL before printing thousands of units.

Using Shortened URLs Without UTMs

URL shorteners (bit.ly, etc.) can strip or alter UTM parameters. Test your shortened URL to confirm parameters pass through correctly.

Forgetting Mobile Analytics

Most QR scans happen on mobile. Ensure your GA4 property is tracking mobile traffic correctly and your mobile site is optimized.

Advanced: Dynamic QR Codes with GA4

Dynamic QR codes let you change the destination URL without reprinting. When combined with GA4 tracking, you can:

  1. Launch a QR code with one destination
  2. Analyze performance in GA4
  3. Change the destination to optimize results
  4. Compare before/after performance

Conclusion

Google Analytics turns QR codes from blind marketing tactics into measurable, optimizable campaigns. With proper UTM tagging and GA4 event tracking, every scan becomes data that helps you understand your customers and improve your marketing.

Create your trackable QR code — add UTM parameters to your URL, generate the code with your brand colors, and start measuring every scan in Google Analytics.


Was this article helpful?

Try Our QR Code Generator