QR Code UTM Tracking: How to Track Print, Events, and Offline Clicks in GA4

Learn how to generate and track QR codes with UTM parameters in Google Analytics 4. Step-by-step tutorial on vanity redirects, high-contrast sizing, and testing.

Platform rules verified for Google Analytics 4 (September 2026)
Infographic illustrating QR code generation with UTM parameters and scanning verification on mobile devices
Table of Contents
  1. Why Every QR Code Must Carry UTM Parameters
  2. Step-by-Step: How to Generate a Tracking QR Code
  3. Print Design Rules: Size, Quiet Zone, and Contrast
  4. Pre-Print Testing Protocol for Mobile Scanners

Printing a QR code without UTM parameters is an irreversible tracking error. Once ink hits paper on thousands of flyers or product boxes, you cannot retrofit analytics. Here is how to create, test, and deploy tracking QR codes properly.

Why Every QR Code Must Carry UTM Parameters

When a customer scans a QR code, their phone camera decodes the text string and opens the default browser (Safari on iPhone, Chrome on Android). If the QR code contains only https://example.com/product, the browser sends an empty referrer header. In GA4, that scan is recorded as Direct. Adding ?utm_source=flyer&utm_medium=print&utm_campaign=spring2026 guarantees complete campaign attribution.

Step-by-Step: How to Generate a Tracking QR Code

  1. Open the UTMCraft Campaign URL Builder.
  2. Enter your destination landing page URL.
  3. Set utm_source to the specific print vehicle (e.g. brochure_tradeshow).
  4. Set utm_medium=print (or event).
  5. Set utm_campaign using your standardized formula.
  6. In the output drawer, click Generate QR Code.
  7. Download the QR code as high-resolution SVG for vector print artwork or high-DPI PNG.
Print Legibility Requirements
  • Minimum Physical Size: Never print a QR code smaller than 0.8 x 0.8 inches (2 x 2 cm) for close-up scanning (business cards/brochures). For posters or billboards, scale up proportionally to scanning distance (ratio: 1:10).
  • Quiet Zone: Maintain an empty white border around the QR matrix at least 4 modules wide.
  • Contrast: Always use dark pixels on a solid light background. Never invert colors (light pixels on dark background confuse many older Android camera sensors).

Pre-Print Testing Protocol for Mobile Scanners

Before sending artwork to the commercial printer:

  • Print a 100% scale proof on your office printer.
  • Test scanning with both an iPhone (Apple Camera app) and an Android device.
  • Verify the browser lands on the target page and the UTM parameters remain intact in the address bar.

Sources & Authoritative References