DEV Community

Azqora Tech
Azqora Tech

Posted on

How to track QR code scans: UTM links vs dynamic QR codes

You printed a QR code on a flyer, a menu or a package, and now you want to know whether anyone scans it. A QR code itself does not count anything. It only holds the content. To measure scans you need a layer between the scan and your page. There are two common ways.

Way 1: Add UTM parameters to the link

A static QR code that points to your own page can carry UTM parameters in the URL. Your analytics tool then shows visits that came from the code.

https://example.com/offer?utm_source=flyer&utm_medium=qr&utm_campaign=winter_sale
Enter fullscreen mode Exit fullscreen mode

How it works:

  • The QR code stores the full link, including the parameters.
  • Your analytics tool reads the parameters when the page loads.
  • You can compare flyers, posters or locations by using a different utm_source for each.

What to know:

  • You only see visits, not scans. If a person scans and closes the page before it loads, it is not counted.
  • You cannot change the link after you print the code.
  • Keep parameter names consistent and in lowercase, so that reports do not split into duplicates.

Way 2: Use a dynamic QR code

A dynamic QR code stores a short redirect link instead of your final page. The scan goes through that short link first, which can count the scan, and then it forwards the visitor to your page.

What you gain:

  • Scan counts, and often the time and approximate device type.
  • You can change the destination later without reprinting the code.

What to watch:

  • The code depends on the service that hosts the redirect. If the account ends or the service stops, the printed code may stop working. Check what happens to your codes before you print thousands of copies.
  • Test the redirect speed. A slow redirect makes people give up.

Which one should you choose

Situation Better choice
One permanent link, no tracking needed Static code
You only need to compare campaigns in your own analytics Static code with UTM parameters
You need scan counts or may change the link later Dynamic code

You can also combine both: a dynamic code that redirects to a link with UTM parameters.

Before you print

  1. Scan the final code with two phones.
  2. Check that the destination page loads quickly on a mobile connection.
  3. Open your analytics and confirm that a test visit shows up with the right source.

Disclosure: I work on QRizeo, a free QR code and barcode generator (https://qrizeo.com) that offers static codes and a free account with a few dynamic codes. The advice above applies to any generator.

Top comments (0)