May 31, 2026
How to Track QR Code Campaigns with Google Analytics for E-commerce
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:
| Parameter | Purpose | Example Value |
|---|---|---|
utm_source | Where the scan happened | qr-code |
utm_medium | Type of QR code | packaging, signage, print-ad |
utm_campaign | Specific campaign name | summer-sale-2026 |
utm_content | Specific QR code variation | product-box-v1 |
utm_term | Keywords (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
| Event | Trigger | Purpose |
|---|---|---|
qr_code_scan | QR code page loads | Count all scans |
qr_code_scan_to_cart | Add to cart after scan | Measure purchase intent |
qr_code_scan_to_purchase | Purchase within session | Measure conversions |
qr_code_scan_to_signup | Account creation after scan | Measure lead generation |
Setting Up Events in GA4
- Go to Admin → Events → Create event
- Define the event condition based on UTM parameters or URL paths
- 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:
- Go to Admin → Channel Grouping
- Create a new channel grouping rule
- Set condition:
sourcematches exactlyqr-code - Group all QR code traffic together
Step 5: Build a QR Code Dashboard
Key Metrics to Monitor
| Metric | Where to Find It | What It Tells You |
|---|---|---|
| Total scans | Reports → Traffic → Source/Medium | Overall volume |
| Scan rate | Manual calculation (scans ÷ impressions) | Effectiveness of placement |
| Bounce rate | Same report | Are you sending traffic to the right page? |
| Sessions per user | Same report | Are QR visitors returning? |
| Conversion rate | Reports → Monetization → E-commerce | How many scans become sales? |
| Revenue | Reports → Monetization → E-commerce | Direct revenue from QR scans |
| Average order value | Reports → Monetization → E-commerce | Are 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-codeutm_medium=packagingutm_campaign=spring-2026utm_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:
- Launch a QR code with one destination
- Analyze performance in GA4
- Change the destination to optimize results
- 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.