Skip to content
Tips & tricks

How to identify QR code traffic in GA4

Do the visitors who scan your QR codes show up as direct traffic in Google Analytics? Find out how to precisely identify which flyer, which shop window or which business card brings them.

Alexis Neve 2 min read

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:

  1. A short link on your domain (for example: example.be/shop-window).
  2. 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.

Ready to take action?

Tell me about your site and your Ads platforms: you get a clear answer within 48 hours.

Get a quote