qr code tracking google analytics
Track QR codes with Google Analytics 4
Build a tagged QR code, verify the visit in GA4, and compare printed placements. Includes report steps, missing-data fixes and already-printed-code limits.
Updated 2026-10-12
To track QR codes with Google Analytics 4, add UTM parameters to the destination URL before generating the code. The destination website must have your GA4 tag installed. GA4 can then attribute recorded visits and key events to the printed placement, whether the QR code is static or dynamic.
GA4 sessions and QR scan counts measure different things. A QR platform can count requests to its redirect. GA4 measures activity on the destination website, subject to consent, blockers and the site's setup. Adding UTMs to a Google review link or another website you cannot measure does not send its visits to your GA4 property.
Build a QR code with campaign tags
Enter a website you measure in GA4 and give each printed placement its own source. For example, use counter_card as the source and autumn_offer as the campaign. The qr_code medium is an editable custom label, not a default Analytics channel.
Use consistent lowercase tags. Values are case-sensitive; this builder keeps the case you enter. Your URL and QR image stay in this page's memory and are generated locally. The builder does not open the destination.
This static QR points directly to your tagged website. It does not create an editable campaign or a scan-count report. GA4 attribution requires Analytics on the destination and suitable consent and measurement conditions; some scans may not become recorded sessions. After a test scan, check the session source, medium and campaign in GA4's Traffic acquisition report. Keep the PNG's white border when printing. Editing any field clears the previous QR and URL.
See how redirect scan counts work and what they can and cannot tell you.
Set up QR tracking in four steps
- Choose a website page that has your GA4 tag and confirm you can access its Analytics property.
- Build a URL with utm_source, utm_medium and utm_campaign. Give each printed placement its own source.
- Generate the QR code from the tagged URL, or save that URL as a dynamic code's destination.
- Test the QR, check data collection, then use Traffic acquisition to compare placements and key events.
Example: a counter card and a window poster
For an autumn offer, both codes can open the same page while their source values identify the print placements. Enter your own website in the builder above. These example values show which fields to change for the second code.
| Builder field | Counter card | Window poster | GA4 dimension |
|---|---|---|---|
| Source (utm_source) | front_counter | window_poster | Session source |
| Medium (utm_medium) | qr_code | qr_code | Session medium |
| Campaign (utm_campaign) | autumn_offer | autumn_offer | Session campaign |
| Content (optional utm_content) | headline_a | headline_b | Session manual ad content |
The counter-card URL is https://example.com/offer?utm_source=front_counter&utm_medium=qr_code&utm_campaign=autumn_offer&utm_content=headline_a. For the poster, change the source to window_poster and content to headline_b. Leave content blank when you do not need to distinguish designs or calls to action.
I use lowercase names because UTM values are case sensitive. This example uses qr_code as its custom medium. If your campaigns already use qr or print, keep that convention consistent instead of renaming an existing batch to match this example.
Put the tagged URL behind the QR code
The builder on this page creates a static QR code containing the complete tagged URL. It is free and runs in your browser. You do not need a dynamic subscription to attribute website visits in GA4.
For an editable destination and a separate scan report, save the tagged URL behind a dynamic QR code. The printed symbol then contains a short redirect URL. Check the final address after scanning: every redirect must preserve the campaign parameters until the destination's Analytics tag reads them.
Compare redirect counts and website visits in the QR scan tracking guide.
Test data collection before printing
Scan the downloaded QR on a phone, open the website and check the final URL. Confirm the source, medium and campaign values survived. Then open Reports → Realtime in the matching GA4 property to check that the visit is being collected.
For a device-specific check, enable debug mode for your test browser with Google Tag Assistant. In GA4, open Admin → Data display → DebugView, select the test device and inspect its events and parameters. DebugView needs debug mode; privacy controls and missing Analytics consent can prevent events from appearing.
Realtime helps check collection; the processed acquisition report checks the session attribution. Google says many reports can take 24–48 hours to process. Do not treat a missing Traffic acquisition row immediately after a proof scan as a broken QR code.
Find QR code traffic in GA4
- Open Reports → Acquisition → Traffic acquisition and choose dates that include the test or campaign. If the report is absent, an Editor can add it to the navigation.
- Change the table's primary dimension from Session default channel group to Session source / medium.
- Search for qr_code, or the medium you used. The example's rows are front_counter / qr_code and window_poster / qr_code.
- Add Session campaign as a secondary dimension to distinguish autumn_offer from other promotions using the same placements.
- Compare Sessions and the relevant Key events. Use Session manual ad content in a customized report or exploration when comparing the optional content values.
Use Traffic acquisition for session-level comparisons. User acquisition answers how users were first acquired, so it can show an earlier source for a returning visitor. The default channel group may label a custom qr_code medium Unassigned; that does not by itself mean the UTM values were lost.
A session is not a completed booking or sale. Set up and verify the event for the action you need to measure, then mark it as a key event. A review-link click on your website can be measured there; it does not prove someone posted a review on Google.
If QR traffic is missing or mislabelled
| What you see | What to check |
|---|---|
| No visit in Realtime | Check the GA4 property and tag on the final website. Allow Analytics consent for your test; check blockers and any internal-traffic filters. |
| UTMs disappear after scanning | Inspect the final browser address. Check whether a shortener or redirect drops or replaces the query string. |
| Realtime works, acquisition is empty | Allow 24–48 hours for processing. Check the report dates, filters and Session source / medium dimension. |
| QR traffic is Unassigned | Look at Session source / medium. A custom medium can fall outside Google's default channel rules while retaining its UTM values. |
| One campaign appears in several rows | Check capitalization and spelling in every printed URL. Front_Counter and front_counter are different values. |
| No UTMs in Landing page + query string | GA4 omits UTMs from that dimension. Check the session campaign dimensions; Page location can retain the complete URL. |
Expect differences between scan counts and GA4 sessions. Repeat scans, staff tests, consent, blockers and pages that fail to load can affect the counts. A server-side redirect does not load a page where a browser Analytics tag can run.
Can you track QR codes that are already printed?
If the printed code uses a dynamic URL you can edit, add UTMs to its destination for future visits and test again. This cannot recreate historical campaign data that was never collected. Keep the printed redirect URL unchanged.
A static code's encoded URL cannot be edited. If it opens an untagged page also used by other channels, GA4 cannot reliably separate those QR visits afterward. If the printed URL is a unique path or a redirect you control, you may be able to measure future visits through that path; verify the setup before relying on it.
What if the code opens Google reviews or another external site?
This UTM workflow needs your Analytics tag on the destination. For a direct Google review link, use a QR redirect's scan report. If people first visit a page on your website and click a review link, GA4 can measure that page and its outbound click, but not whether the review was submitted. Adding an intermediate page also adds a step for the customer.
Keep the placement and print record together
Keep a record of the tagged URL, any short URL, placement, print date, quantity and proof-scan check. Use the same medium and campaign across the batch. When performance changes, check the destination and collected visits before deciding to change the placement or offer.
Plan placement names and the print record with the QR campaign tracking guide.
See LocalQRCode's plan for editable destinations and scan reports.
Sources checked
- Google Analytics Help: collect campaign data with custom URLs
- Google Analytics Help: traffic-source dimensions and manual tagging
- Google Analytics Help: Traffic acquisition report
- Google Analytics Help: confirm that you're collecting data
- Google Analytics Help: monitor events in DebugView
- Google Analytics Help: default channel group
- Google Analytics Help: set up Analytics for a website
- Google Analytics Help: mark events as key events