Why a QR code generates direct traffic
When a smartphone scans a code, it opens the browser without passing any source information to GA4.
Without a specific tag, the visit is classified as direct traffic, mixed with visitors who, among others, typed your URL from memory or opened a bookmark. It is then impossible to measure the real effectiveness of your communication.
The principle: a short link redirected with UTMs
To get clean and lasting tracking, the solution relies on 2 elements:
- A short link on your domain (for example:
example.be/shop-window). - A redirect to the final URL enriched with UTM parameters: to pass the exact source to GA4.
The advantage of the short link: the generated QR code stays visually simple (easy to scan) and lets you change the destination page even after the support is printed. Also, it looks less alarming than a URL stuffed with parameters sometimes judged "dubious" (especially in the age of phishing and aversion to tracking).
Tutorial: Track your QR codes in Google Analytics
1. Build the target URL with UTMs
For each support, define your campaign parameters:
utm_source: the physical support (for example: shop-window, flyer, business-card).utm_medium: the channel (qrcode).utm_campaign: the campaign (for example: trade-show-2026 or permanent).
Example:
https://example.be/booking/?utm_source=shop-window&utm_medium=qrcode&utm_campaign=permanent
Tip: always write in lowercase and without spaces.
2. Create the short link and the redirect
In your CMS (via a redirect plugin) or your hosting provider, create a short URL (for example: example.be/shop-window) that redirects (302 redirect) to the full URL with UTMs.
3. Generate and test the QR code
Use a QR code generator to encode your short link (example.be/shop-window). Scan it with your smartphone to check that the destination URL shows the UTM parameters.
4. Analyze the impact in GA4
In Reports > Acquisition > Traffic acquisition, select the Session source / medium dimension.
You will see lines like shop-window / qrcode or flyer / qrcode. Cross this dimension with your Key events to compare the real conversion rate of each support.
Tools
- Your hosting provider or your CMS: redirects and short links on your domain.
- A QR code generator: the code encodes the short link directly.
- Google Analytics 4: Traffic acquisition report, key events.
UTM parameters, redirects and reading the sources are part of the tracking expertise.