Analytics & Attribution

QR Code Google Analytics & Meta Pixel: The Complete Attribution Guide

GA4 and Meta Pixel cannot see QR scans on their own. This guide explains exactly how QRTRAC bridges offline scans into measurable GA4 events, retargetable Meta audiences, and campaign-level ROI data — with no manual UTM tagging or code changes required.

100%
iOS/Apple scan share
(real platform data)
~ms
Pixel fires before
redirect — no delay
6
Data fields per scan
(device to postcode)
Unlimited scans
tracked in real-time
Updated March 2026 · 12 min read

Why GA4 Cannot Track QR Scans on Its Own

Traditional QR codes are attribution dead ends. A static QR code encodes a URL and nothing else — when someone scans it, their phone opens the URL directly. No campaign source. No medium. No GA4 event. The resulting traffic shows up in Google Analytics as direct traffic, indistinguishable from someone typing your URL into a browser.

Meta Pixel has the same limitation. The pixel fires on your website — but it has no way of knowing the visitor arrived via a QR code on a flyer rather than a Google search.

Without QR Middleware

  • • Traffic shows as Direct / (none) in GA4
  • • No campaign, source, or medium data
  • • Cannot compare poster A vs. poster B
  • • Meta Pixel audience: unknown origin
  • • Offline spend has no measurable ROI
  • • URL changes break the QR permanently

With QRTRAC

  • • GA4 receives custom qr_scan event
  • • UTMs: source=qr_code, medium=offline
  • • Placement-level comparison in dashboard
  • • Meta Pixel builds Custom Audience on scan
  • • Scan → session → retarget → conversion
  • • Update destination URL without reprinting
"The core business problem is not traffic — it is decision-making without attribution."

How QRTRAC Tracking Works

The complete scan flow from physical interaction to analytics data — in milliseconds.

1
User scans QR code
Any camera app or QR reader. The QR encodes a QRTRAC redirect URL, not your final destination.
2
QRTRAC intercepts the request
The redirect opens a lightweight QRTRAC tracking page. No visible loading screen — this happens in the browser before any content renders.
3
Scan event is logged
QRTRAC records: QR ID, timestamp, device, OS, browser, country, state, city, suburb, postcode, and anonymized IP.
4
GA4 event fires
A custom qr_scan event is sent to your GA4 property with all campaign parameters. UTMs are appended to the redirect URL automatically.
5
Meta Pixel fires
PageView + custom QRScan event sent to Meta Ads. The user is added to your Custom Audience for retargeting.
6
User arrives at destination
Instant redirect to your final URL. Total overhead: ~50–150ms, imperceptible to the user.

Complete attribution chain

Physical Media QR Scan QRTRAC Log GA4 Event + Meta Pixel Retargeting Conversion

GA4 Integration & Event Schema

Every QR scan fires a custom GA4 event with full campaign context. Here is the exact event structure QRTRAC sends.

// GA4 custom event — fires on every QR scan
event_name: "qr_scan"
parameters: {
qr_id: "OKpm", // unique QR identifier
qr_name: "App Download", // human-readable name you set
campaign: "q1-packaging-2026",
source: "qr_code",
medium: "offline",
device_type: "Apple iOS",
country: "India",
city: "Mumbai"
}

What You Can Answer in GA4

Question GA4 Report to Use Dimension
Which QR code drove the most sessions?Acquisition → Traffic AcquisitionSession campaign or qr_name
Which city scanned most?User Attributes → Demographic detailsCity (or use QRTRAC geo)
What device do my scanners use?Tech → Tech overviewOperating System
Which offline placement drove conversions?Advertising → Attributionutm_content / qr_name
What time of day do scans peak?QRTRAC dashboardHour of day (QRTRAC)
Do QR scanners bounce more than organic?Engagement → Pages and screensSource / Medium filter

Setup requirement

Add your GA4 Measurement ID (G-XXXXXXXXXX) in QRTRAC Settings → Integrations → Google Analytics. No custom code or GTM setup required. QRTRAC injects the tracking script at the redirect layer automatically.

UTM Parameter Setup for QR Codes

UTMs are the backbone of QR attribution in GA4. QRTRAC applies these automatically — but understanding the structure helps you name campaigns consistently.

utm_source
qr_code
Always use qr_code — keeps all QR traffic grouped under one source in GA4 acquisition reports.
utm_medium
offline
Use offline (not "qr", not "print") — enables clean comparison against organic, cpc, email in GA4 channel groupings.
utm_campaign
Your campaign name (e.g. q1-packaging-2026)
Group related QR codes by campaign. Use lowercase with hyphens — GA4 is case-sensitive.
utm_content
Placement identifier (e.g. front-box, poster-station-1)
Use this to compare individual placements. "Which box panel drove more scans — front or back?"
utm_term
Optional — SKU or product variant
Useful for multi-SKU packaging campaigns where you want product-level attribution.

Common mistake to avoid

Do not encode UTMs directly into the static QR destination URL. If your URL changes, you must reprint the QR code. QRTRAC injects UTMs dynamically at the redirect layer — meaning you can update both the destination URL and UTM values at any time without touching the physical QR code.

Meta Pixel Retargeting via QR Scans

Every QR scan adds a real person to your Meta retargeting audience. Here is exactly what fires and how to use it.

Pixel Events Supported

PageView Fires on every scan. Adds user to your website audience. Works with any Pixel retargeting rule.
ViewContent Fires when the QR code category matches a content type (product, blog, landing page). Enables catalog retargeting.
Lead Fires when destination is a lead capture page and the user completes the form. Tracks offline-to-lead conversion.
QRScan (Custom) QRTRAC custom event. Contains qr_id, qr_name, and campaign. Enables QR-specific audience segments in Meta Ads.

The Retargeting Flywheel

1
Offline exposure: Flyer, packaging, billboard, event banner with QR code
2
QR scan: User physically engages — highest-intent offline touchpoint
3
Meta Pixel fires: User enters Custom Audience in Meta Ads Manager
4
Retargeting ad served: Follow-up ad shown on Facebook/Instagram (1–7 days later)
5
Conversion: Lower CPA vs cold traffic — audience already showed physical interest

Why QR retargeting audiences outperform cold traffic

A person who scanned your QR code already demonstrated physical intent — they stopped, pulled out their phone, and chose to scan. This is a stronger purchase signal than a social media scroll. QR-based retargeting audiences typically show 30–60% lower CPA than cold lookalike audiences because you are following up on an existing intent signal rather than creating one.

The Offline Attribution Framework

Most offline marketing operates on intuition. QR-driven attribution replaces intuition with a feedback loop.

Traditional Offline Funnel (Broken)

1. Offline Spend
2. Exposure
3. ??? (black box)
4. Hope

QR-Enabled Funnel (Measurable)

Offline Spend
QR Scan (QRTRAC logs)
GA4 Session (attributed)
Meta Pixel Audience
Retargeting → Conversion

Who Gets the Most ROI

Organization type QR placement Attribution value
D2C / CPG brandsProduct packaging, insertsSKU-level scan data, repeat buyer identification
Events / conferencesBooth banners, lanyards, printed schedulesBooth engagement vs. session ROI comparison
NonprofitsDonation posters, fundraising mailersLocation-level campaign performance, donor retargeting
Retail / local brandsIn-store displays, window signsPeak scan hours, repeat customer identification
B2B / SaaSEvent print, trade show materialsEvent-level lead attribution, LinkedIn retargeting
Restaurants / hospitalityTable QR codes, loyalty materialsRepeat scan frequency, peak dining hours

What QRTRAC Captures Per Scan

Every scan is logged at the redirect layer — independent of GA4 and Meta Pixel — giving you scan-level data no analytics platform can provide alone.

QR Code ID
QR Code Name
QR Code Type
Timestamp
Device Manufacturer
Operating System
Browser
Country
State / Province
City
Suburb / District
Postcode
Latitude (approx.)
Longitude (approx.)
Anonymized IP
Unique vs. Repeat

Privacy note

QRTRAC stores only the IPv6 prefix (e.g. 2406:7400::) — not the full IP address. GPS tracking is not used. Geo data is derived from anonymized IP-based approximation, accurate to city level in most cases. No personally identifiable information is collected at the scan layer.

Export formats

PDF Analytics ReportExcel / CSV (raw scan data)Real-time DashboardAPI Access

Real-World Use Cases

How different organizations use QR attribution in practice.

📦

D2C Packaging

Scenario: QR on product box → product story / upsell page
Tracks: Scans per SKU, buyer location, repeat scans
Retarget: Cross-sell ads, refill reminders, loyalty offers
Result: Higher LTV from existing customers
🎗

Nonprofit Fundraising

Scenario: QR on donation posters → donation landing page
Tracks: High-performing poster locations, offline campaign ROI
Retarget: Retarget non-donors with impact stories
Result: Lower donation drop-offs, higher conversion
🏢

B2B Events

Scenario: QR on booth banner → demo booking or case study
Tracks: Scans per event, engagement by industry vertical
Retarget: LinkedIn / Meta demo ads, webinar invites
Result: Event ROI becomes measurable and comparable
🏷

Retail / Coupon

Scenario: QR on shelf display → coupon or offer page
Tracks: Scan-to-redemption rate by store location
Retarget: Follow-up discount ads to non-redeemers
Result: Attribution by store, aisle, or display type
🍽

Restaurants & Cafes

Scenario: QR on tables → menu, offers, loyalty signup
Tracks: Peak scan hours, repeat customer frequency
Retarget: Weekend offer ads, loyalty program prompts
Result: Increased repeat visit rate
🎓

Education / Institutes

Scenario: QR on brochures / hoardings → course page
Tracks: Campaign-wise lead interest by region
Retarget: Admission reminders, scholarship ads
Result: Better lead nurturing from offline spend

ROI Evaluation Framework

Scans are intent signals, not outcomes. Use this three-level framework to evaluate whether your QR attribution is working.

Level 1 — Engagement Validation

  • • Scan → session ratio (target: above 70%)
  • • Bounce rate from QR traffic vs. organic
  • • Average engagement time per scan source

If this fails → landing page or load speed problem.

Level 2 — Conversion Contribution

  • • Conversion rate from QR traffic vs. other sources
  • • Assisted conversions: QR scan → retarget → convert
  • • Cost per conversion including offline media spend

If this fails → offer mismatch or wrong audience segment.

Level 3 — Retargeting Efficiency

  • • CPA of QR retargeting audience vs. cold traffic
  • • ROAS improvement from QR-sourced audiences
  • • Audience size growth over time (scan volume)

If this works → offline spend justifies itself through digital efficiency gains.

Is this approach right for you?

Good fit — adopt if:

  • ✓ You spend meaningfully on offline channels
  • ✓ You already run Meta or Google retargeting
  • ✓ You care about post-engagement outcomes
  • ✓ ROI accountability matters internally

Poor fit — skip if:

  • ✗ All marketing is already 100% digital
  • ✗ No retargeting or lifecycle marketing
  • ✗ No internal capacity to act on data
  • ✗ Offline spend is negligible

Start Tracking QR Scans in GA4 Today

Connect your GA4 and Meta Pixel in minutes. No code required. Unlimited scans, real-time analytics, PDF & Excel export.

Frequently Asked Questions

Q Can Google Analytics track QR code scans?

Yes — but not automatically. GA4 cannot detect a QR scan on its own. The scan must first pass through a dynamic QR platform like QRTRAC, which fires a custom GA4 event (qr_scan) and appends UTM parameters before redirecting the user to your destination URL. Without this middleware layer, QR traffic appears in GA4 as direct traffic with no campaign attribution.

Q What UTM parameters should I use for QR codes?

The recommended UTM structure for QR codes is: utm_source=qr_code, utm_medium=offline, utm_campaign=[campaign name], utm_content=[placement or QR name]. QRTRAC automatically appends these to every scan so you never lose attribution when the destination URL changes. Avoid using utm_medium=qr or utm_source=print — these fragment your reports and make cross-campaign comparison harder.

Q How does Meta Pixel work with QR codes?

When a user scans a QR code routed through QRTRAC, a lightweight tracking redirect fires the Meta Pixel before sending the user to the final destination. This triggers a PageView event and optionally ViewContent, Lead, or a custom QRScan event. The scanned user is added to a Custom Audience in Meta Ads, enabling retargeting with follow-up ads — converting offline interest into digital conversions.

Q What is offline attribution for QR codes?

Offline attribution means connecting a physical marketing touchpoint (flyer, poster, packaging, event banner) to a measurable digital outcome (session, lead, purchase). QR codes are the bridge: each scan creates a tracked session in GA4 with source/medium data. QRTRAC extends this by logging scan-level data — device, OS, city, postcode — separate from GA4, giving you placement-level comparison that GA4 alone cannot provide.

Q What data does QRTRAC capture per scan?

Each scan in QRTRAC logs: QR code ID and name, QR type (web, mini site, app download, etc.), timestamp, device manufacturer, operating system, browser, country, state/province, city, suburb, postcode, and anonymized IP (IPv6 prefix only — no full IP stored). This data is available in real-time, exportable as PDF or Excel, and accessible via the dashboard for campaign comparison.

Q Can I retarget people who scanned my QR code?

Yes. When QRTRAC's tracking redirect fires the Meta Pixel on a scan, the user is added to a Custom Audience in Meta Ads Manager. You can then retarget that audience with follow-up ads on Facebook and Instagram. This is particularly powerful for print campaigns, packaging, and events — people who physically engaged with your brand are a warmer audience than cold traffic.

Q What is the difference between QR scans and GA4 sessions?

A scan is a QR interaction recorded by QRTRAC. A GA4 session is the subsequent visit to your website. These two numbers will not always match — users may scan without completing the redirect (e.g. poor connectivity), or bot traffic may inflate scan counts. QRTRAC tracks scans at the redirect layer; GA4 tracks what happens after. Monitoring the scan-to-session ratio is a useful diagnostic: a low ratio (below 70%) typically indicates a slow or broken landing page.

Q Do I need coding knowledge to set up QR code GA4 tracking?

No. QRTRAC handles GA4 event firing and UTM parameter injection automatically when you configure your GA4 Measurement ID in the dashboard. No custom JavaScript or GTM setup is required on your end. For Meta Pixel, you add your Pixel ID in the QRTRAC settings — the pixel fires on every scan redirect automatically. Your developer may need to add the Pixel base code to your destination website if it is not already installed.