How to Track QR Code Scans: A Practical Guide
Turn any printed or digital QR code into a measurable channel by routing scans through a tracking redirect.
Quick Answer
To track QR code scans, generate a dynamic QR code that encodes a short redirect URL (for example, /q/{code}). When a person scans the code, the server logs the scan details including IP address, device type, city, country, and timestamp, then forwards the visitor to the final destination URL. A plain static QR code cannot be tracked because it contains the destination directly.
Table of Contents
How does QR code tracking actually work?
QR code tracking relies on a simple idea: instead of encoding the final destination inside the QR code image, you encode a short redirect URL hosted on a tracking server. When someone scans the code with a phone, the camera opens that redirect URL. The server receives the request, writes a record to a database, and then issues an HTTP redirect to the real destination.
This happens in milliseconds. The person scanning sees the destination page load almost immediately and has no idea a logging step took place. But on the back end, you now have a permanent record of every scan. Each record is stored in the btools_qrcode_scans table and linked to the QR code that was scanned.
The crucial point is that tracking requires a dynamic QR code with tracking. A static QR code bakes the final URL into the pattern and bypasses any server. For background on how QR codes encode data, see the Wikipedia entry on QR codes.
What data can you see for each scan?
Every time the redirect URL is hit, several pieces of information are captured automatically from the HTTP request. The IP address of the scanning device is the most important because it anchors the scan to a geographic location. The user agent string reveals the operating system, browser, and device type, so you can tell whether the scan came from an iPhone, an Android tablet, or a desktop browser.
From the IP address, the system derives an approximate city and country. This is not precise GPS data, but it is accurate enough to answer questions like "which trade show booth generated the most scans" or "are people in Chicago engaging with this flyer." The timestamp tells you exactly when each scan happened, down to the second. If the scan originated from a webpage rather than a physical camera app, the referer header reveals which page the QR image was embedded on.
What you will not see is personally identifying information. A scan record does not contain a name, email address, or phone number. It is an anonymous snapshot of the request.
How do you set up a trackable QR code?
Setting up tracking is straightforward. First, sign up for an account and open the dynamic QR code generator. Enter the destination URL you eventually want people to land on, then generate the code. The system assigns a short redirect path and produces a QR image that you can download in PNG or SVG format.
Place the code wherever your audience will see it: a poster, a business card, a restaurant menu, a product package, a TV spot, or a social media graphic. Every scan routes through the redirect, and every scan appears in your dashboard. Because the QR image itself never changes, you can also update the destination URL later if your campaign evolves.
For nonprofits running donation campaigns, a specialized QR code for nonprofits option is available that ties scan tracking directly to donation pages.
What are the best practices for accurate tracking?
Use one unique QR code per placement. If you print the same QR on both a magazine ad and a trade show banner, the scan counts will mix together and you cannot compare performance. Create a separate dynamic code for each location, channel, or campaign. It takes only a few seconds and delivers much cleaner data.
Keep the QR image large enough to scan reliably. A code printed smaller than roughly 2 cm across may fail on cheap phone cameras, and failed scans do not show up in your analytics at all. Also include a short call to action next to the code, such as "scan to learn more," so people understand what will happen when they point their camera at it.
Finally, test the full flow before printing. Scan the code with at least two different phones and confirm both that the destination opens correctly and that the scan appears in your tracking dashboard.
Where should you use tracked QR codes?
Tracked QR codes fit any campaign where the gap between the physical world and a digital landing page matters. Print advertising is the classic example: a magazine ad, a bus stop poster, or a billboard can finally be measured the way a banner ad or an email is measured. Event marketing is another strong fit, because you can place a unique code at the registration desk, at each session room, and on every piece of swag, then compare engagement by zone.
Retail packaging, table tents in restaurants, real estate signs, museum exhibits, and conference badges all benefit from scan tracking. You learn not only how many people engaged, but also when they engaged, which device they used, and where they were. For a broader view of how tracking fits into digital measurement generally, the Wikipedia article on web analytics is a solid primer.
Frequently Asked Questions
How does QR code scan tracking work?
A dynamic QR code encodes a short redirect URL. When scanned, the server logs the scan details and then forwards the user to the final destination.
Can I track scans on a static QR code?
No. Static QR codes contain the final URL directly and cannot record scans. You need a dynamic QR code that uses a redirect URL.
What information is recorded on each scan?
Each scan records the IP address, user agent (device type and browser), approximate city and country, timestamp, and the referer if available.
Is there a delay between scanning and the redirect?
The scan is logged in milliseconds before the redirect happens, so users do not experience any noticeable delay.
Can I change the destination URL after printing?
Yes. Because the QR code points to a redirect URL, you can change the final destination at any time without reprinting the code.
Related Posts
Can I See Who Scanned My QR Code?
A straight answer on what you can and cannot learn about scanners.
QR Code Analytics: Data You Can Track
Every field captured by a tracking scan, explained.
QR Code Tracking in Google Analytics
Wire QR scans into your existing GA4 reports with UTM tags.
Start tracking your QR code scans today
Generate a dynamic QR code in under a minute and start collecting scan analytics automatically.
Create a Tracked QR Code