QR codes are now a standard bridge between offline activity and digital measurement. They appear on packaging, posters, menus, direct mail, business cards, event signage, invoices, product inserts, and retail displays. However, a QR code by itself does not automatically explain where users came from, which campaign influenced them, or whether the scan produced meaningful business results. To measure QR code performance properly, you need to combine a well-structured destination URL with Google Analytics 4, campaign tags, and clear reporting practices.
TLDR: To track a QR code in Google Analytics 4, add UTM parameters to the URL before generating the QR code. When users scan the code, GA4 records the visit as campaign traffic, allowing you to analyze sessions, conversions, engagement, and revenue. For best results, use consistent naming conventions, create dedicated landing pages when possible, and test every QR code before publishing it.
Why QR Code Tracking Matters in GA4
QR code tracking helps you understand whether your offline marketing is driving online action. Without tracking, a scan may appear in GA4 as direct traffic, which provides little insight. With proper tracking, you can identify which flyer, poster, product label, trade show booth, or print advertisement generated visits and conversions.
This matters because offline channels often involve real costs: printing, placement, production, distribution, and staff time. If a QR code sends users to your website without campaign parameters, you may know that traffic increased, but you will not know which asset caused it. In contrast, a tracked QR code lets you compare campaigns and make better budget decisions.
GA4 is particularly useful because it focuses on events and user behavior. Beyond simple pageviews, you can monitor scrolls, purchases, form submissions, sign-ups, file downloads, video engagement, and other key actions after a scan.
How QR Code Tracking Works
A QR code usually contains a URL. When someone scans the code with a smartphone, the device opens that URL in a browser. GA4 can track the visit if your website has the GA4 tag installed and the URL includes campaign parameters.
The most common way to track QR code traffic is by using UTM parameters. These are small pieces of text added to the end of a URL. They tell GA4 where the visitor came from and which campaign should receive credit.
For example:
https://www.example.com/spring-offer?utm_source=poster&utm_medium=qr_code&utm_campaign=spring_launch
When scanned, this URL sends the visitor to the page while also passing campaign information into GA4. In reports, you can then see traffic associated with poster, qr_code, and spring_launch.

Step 1: Confirm GA4 Is Installed Correctly
Before creating tracked QR codes, confirm that GA4 is collecting data from your website. If GA4 is not installed correctly, no UTM strategy will help.
You can install GA4 using one of the following methods:
- Google Tag Manager: Recommended for most businesses because it allows easier control over tags and events.
- Google tag: A direct installation using the GA4 measurement ID.
- CMS or ecommerce integrations: Platforms such as WordPress, Shopify, or other systems may offer built-in GA4 settings or plugins.
After installation, open your website and check Reports > Realtime in GA4. If your visit appears, the property is receiving data. You can also use browser debugging tools or Google Tag Assistant to verify that the GA4 tag fires correctly.
Step 2: Decide What You Want to Measure
Do not create QR codes before deciding what success looks like. A QR code can generate scans, but scans alone are rarely the final goal. You should define the action that matters to your organization.
Common goals include:
- Visits to a landing page
- Contact form submissions
- Newsletter sign-ups
- Coupon downloads
- Product purchases
- Restaurant menu views
- Appointment bookings
- App downloads
- Event registrations
In GA4, these outcomes should be tracked as events. Important events can then be marked as key events, formerly known as conversions. This allows you to evaluate not only how many people scanned a QR code, but how many completed a valuable action afterward.
Step 3: Build a Tagged URL with UTM Parameters
The most important step is creating a URL with clear UTM parameters. These parameters should be consistent, readable, and useful for reporting.
The main UTM parameters are:
- utm_source: Identifies the source, such as poster, flyer, menu, packaging, or direct_mail.
- utm_medium: Identifies the marketing medium. For QR codes, use a consistent value such as qr_code or offline.
- utm_campaign: Identifies the campaign name, such as summer_sale or product_launch_2026.
- utm_content: Optional. Useful for distinguishing different designs, locations, or versions.
- utm_term: Usually used for paid search keywords, but may be repurposed carefully if needed.
A practical QR code URL might look like this:
https://www.example.com/offer?utm_source=store_window&utm_medium=qr_code&utm_campaign=winter_promotion&utm_content=front_entrance
This setup tells GA4 that the user came from a QR code placed in the store window, connected to the winter promotion campaign, specifically the front entrance placement.
Step 4: Use a Clear Naming Convention
Consistent naming is essential for reliable reporting. GA4 treats different spellings and capitalization as separate values. For example, QR_Code, qr_code, and QRCode may appear as separate campaign mediums, which can fragment your data.
Use a documented naming convention. A serious tracking structure might include the following rules:
- Use lowercase letters for all UTM values.
- Use underscores or hyphens consistently between words.
- Avoid spaces, special characters, and unclear abbreviations.
- Use one standard medium value, such as qr_code.
- Create a spreadsheet or tracking log for all QR code URLs.
For larger campaigns, your tracking log should include the destination URL, UTM-tagged URL, QR code file name, print location, campaign owner, launch date, and retirement date. This prevents confusion when multiple teams create codes over time.
Step 5: Generate the QR Code
Once your tagged URL is ready, use a reliable QR code generator to create the code. The QR code should point to the full UTM-tagged URL or to a controlled redirect that preserves the UTM parameters.
There are two main approaches:
- Static QR code: The destination URL is fixed. Once printed, it cannot be changed. This is acceptable for long-term URLs that are unlikely to change.
- Dynamic QR code: The QR code points to a redirect URL that can be updated later. This is useful for campaigns where the destination may change after printing.
Dynamic QR codes can be helpful, but they should be used carefully. If a third-party service controls the redirect, ensure it is reputable, secure, and stable. Broken redirects can damage trust and cause data loss.
Step 6: Test the QR Code Before Publishing
Testing is not optional. A QR code may look correct but still lead to the wrong page, strip tracking parameters, load slowly, or create a poor mobile experience.
Before printing or distributing the QR code, test the following:
- Scan the code with multiple phones and camera apps.
- Confirm the correct landing page opens.
- Check that the UTM parameters remain in the browser address bar.
- Verify that the website loads quickly on mobile data.
- Confirm that GA4 records the visit in Realtime reports.
- Complete the desired action, such as a form submission, and confirm the event appears in GA4.
If you use redirects, make sure the redirect does not remove UTM parameters. Some website configurations, shorteners, or campaign tools can unintentionally strip query parameters from URLs.
Step 7: Find QR Code Traffic in GA4
After the QR code is live and users begin scanning it, you can review the data in GA4. The most useful reports are usually found under Reports > Acquisition.
Start with:
- Traffic acquisition: Shows sessions by source, medium, campaign, and other traffic dimensions.
- User acquisition: Shows how new users first arrived.
- Engagement reports: Help you evaluate what users did after landing on the site.
- Key events: Show whether QR code visitors completed important actions.
In the Traffic acquisition report, change the primary dimension to Session campaign, Session source / medium, or another UTM-related dimension. Look for the campaign names and sources you used in your tagged URLs.
You can also use the search bar or report filters to isolate traffic where medium equals qr_code. This gives you a focused view of all QR code activity across campaigns.
Step 8: Create Explorations for Deeper Analysis
GA4 Explorations provide more flexible analysis than standard reports. To examine QR code performance in detail, go to Explore and create a free-form exploration.
Useful dimensions include:
- Session source
- Session medium
- Session campaign
- Session manual ad content
- Landing page
- Device category
- City or region
Useful metrics include:
- Sessions
- Engaged sessions
- Engagement rate
- Average engagement time
- Key events
- Total revenue
For example, you might compare QR code scans from a conference badge, booth banner, and printed brochure. If one placement produces fewer sessions but a higher conversion rate, it may be more valuable than a placement with higher scan volume but weaker engagement.

Step 9: Track Conversions and Business Outcomes
Traffic alone does not prove campaign success. You should connect QR code scans to measurable outcomes. In GA4, this means ensuring that important events are configured and marked as key events.
Examples of QR-related key events include:
- generate_lead: A user submits a contact or inquiry form.
- sign_up: A user creates an account or joins a mailing list.
- purchase: A user completes an ecommerce transaction.
- book_appointment: A user schedules a consultation or visit.
- download_file: A user downloads a catalog, voucher, or brochure.
If your site uses forms, booking tools, payment processors, or embedded third-party widgets, confirm that GA4 can capture the final action. Sometimes actions occur on another domain or inside an iframe, requiring additional configuration.
Common Mistakes to Avoid
Many QR code tracking problems come from small but preventable errors. The most common mistakes include:
- Using untagged URLs: This often causes QR traffic to appear as direct traffic.
- Changing UTM naming styles: Inconsistent capitalization and spelling create fragmented reports.
- Sending users to a desktop-focused page: QR traffic is usually mobile, so the landing page must be mobile-friendly.
- Not testing before printing: Printed errors can be expensive or impossible to fix.
- Tracking scans but not outcomes: Scan volume is useful, but conversions are more important.
- Using vague campaign names: Generic names make future reporting difficult.
Best Practices for Reliable QR Code Analytics
For accurate and trustworthy reporting, treat every QR code as a campaign asset. Use a dedicated landing page when possible, especially for major campaigns. This improves message consistency and makes analysis easier.
Keep URLs short and stable, but do not sacrifice tracking clarity. If the UTM-tagged URL is very long, it can still be encoded into a QR code, though the visual code may become more complex. A dynamic QR code or controlled redirect can help, provided it preserves the tracking parameters.
Review QR code performance regularly, not only at the end of a campaign. Early reporting can reveal problems such as low engagement, wrong placement, poor calls to action, or technical issues. If the QR code is dynamic, you may be able to adjust the destination page while the campaign is still active.
Final Thoughts
Tracking a QR code in Google Analytics 4 is straightforward when you use the right structure. The essential process is to create a UTM-tagged URL, generate a QR code from that URL, test it carefully, and analyze the resulting traffic in GA4 acquisition and engagement reports.
The real value comes from disciplined implementation. With consistent naming, reliable events, mobile-friendly landing pages, and clear reporting, QR codes can become measurable assets rather than anonymous offline touchpoints. For organizations that invest in print, events, packaging, or in-person marketing, proper GA4 tracking provides the evidence needed to understand performance and improve future campaigns.
