How Do You Track QR Codes with Google Analytics?
Track QR codes in Google Analytics 4 with UTM parameters, review campaign traffic, and learn why GA4 visits may differ from scan counts.
Track QR codes in Google Analytics 4 by adding UTM campaign parameters to the destination URL before encoding it in the QR code. GA4 then attributes visits to the code, but a visit is not necessarily the same as a scan.
How do you track QR codes with Google Analytics?
Add UTM parameters to the QR code’s destination URL, then review the tagged traffic in GA4’s acquisition reports. This works when GA4 is installed on the destination website and the scan opens that site.
Build a tagged URL. Use Google’s Campaign URL Builder or add parameters to your destination URL. For example:
https://example.com/event?utm_source=qr&utm_medium=print&utm_campaign=fall_launch&utm_content=poster_lobby
Useutm_sourcefor the traffic source,utm_mediumfor the type of placement, andutm_campaignfor the campaign. Useutm_contentto distinguish placements, such as a lobby poster from a package insert. Google recommends consistent naming because parameter values are case-sensitive and inconsistent labels can split reporting. (support.google.com)Make a separate tagged URL for each placement you want to compare. You can keep the source, medium, and campaign the same while changing
utm_content, or use another consistent naming scheme. Generate the QR code from the full tagged URL, not the untagged page address.Test the code. Scan it with a phone and confirm that it opens the intended page with the UTM parameters intact. In GA4, check Reports → Realtime to confirm that activity is arriving. Realtime can show users by source, medium, or campaign; processed campaign data is available in Reports → Acquisition → Traffic acquisition, using session source, medium, and campaign dimensions. (support.google.com)
There are two common approaches:
| Option | What GA4 can show | Trade-off |
|---|---|---|
| Static QR code with UTM-tagged URL | Visits and subsequent activity on your site attributed to the tagged source, medium, and campaign | GA4 records website activity, not a separate count of every scan. The code’s destination cannot be changed without replacing the code. |
| Dynamic QR code with a tracking redirect and UTM-tagged destination | GA4 can attribute visits after people reach your site; the QR service may also count visits to its redirect link | Scan counts live in the QR service, not automatically in GA4. You depend on that service for redirecting and scan data. |
Know what the numbers mean. A person may scan but leave before the destination page loads, so a scan-service count and GA4 visits may differ. GA4 is the better fit if you want to understand what visitors do after arriving on your site. If you need scan counts, want to change a printed code’s destination later, or link to a page you don’t control, consider a dynamic QR service; it can count visits to its redirect, while UTMs can pass campaign attribution to your website. (quickchart.io)
If the QR code points straight to a third-party site without your GA4 tag, your property cannot report what visitors do there. For a one-off code or a destination you will not change, a static UTM-tagged code is simpler; a dynamic service adds redirect and scan reporting, but means relying on that provider.