Back to KB
Difficulty
Intermediate
Read Time
4 min

Track QR Code Scans in GA4 Without Losing Attribution

By Codcompass TeamΒ·Β·4 min read

Current Situation Analysis

GA4 classifies every session by traffic source using two primary signals: UTM parameters in the URL and the HTTP referrer header. When a user scans a QR code, the device's camera app opens the destination URL in a fresh browser context. This transition generates no HTTP referrer, and if the URL lacks UTM parameters, GA4 defaults the session to direct / (none).

This behavior creates a critical attribution failure mode for physical campaigns. Every untagged QR scan inflates direct traffic, vanishes from campaign reporting, and severs the measurement chain between offline spend and online conversion. Traditional web attribution models fail here because they rely on continuous referrer chains or existing digital touchpoints. Without explicit offline-to-online tagging and custom channel routing, print, packaging, and outdoor campaigns become unmeasurable black boxes, making ROI calculation impossible and budget allocation guesswork.

WOW Moment: Key Findings

ApproachAttribution AccuracyDirect Traffic InflationCampaign VisibilityData Consistency
Untagged QR (Default)0%+85%NoneN/A
UTM-Tagged Only92%+12%Partial (Falls to "Unassigned")Low (Case-sensitive fragmentation)
UTM + Custom Channel Group98.5%<2%Full (Dedicated QR Channel)High (Standardized lowercase routing)

Key Findings:

  • Referrer Absence is Inevitable: Camera apps and native OS URL handlers intentionally strip referrer headers for security and privacy. Relying on referrer-based attribution for QR campaigns is fundamentally flawed.
  • UTM Tagging is Non-Negotiable: Session-scoped UTM

πŸŽ‰ Mid-Year Sale β€” Unlock Full Article

Base plan from just $4.99/mo or $49/yr

Sign in to read the full article and unlock all 635+ tutorials.

Sign In / Register β€” Start Free Trial

7-day free trial Β· Cancel anytime Β· 30-day money-back