Analytics & Attribution

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

Google Analytics and Meta Pixel cannot track QR scans on their own. We show you how to connect physical scans to GA4 events, build retargeting audiences on Meta, and track offline ROI—without manual UTM tagging or complex code.

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

Why GA4 Cannot Track QR Scans on Its Own

Static QR codes are attribution black holes. They contain a raw URL and nothing else. When a user scans one, their phone loads your site directly. GA4 cannot see the source or medium. It simply logs the visit as direct traffic, identical to someone manually typing your URL into Safari or Chrome.

The Meta Pixel has the same blind spot. It tracks visits to your landing page but cannot distinguish a user scanning an in-store poster from someone clicking an organic search result.

Without QR Middleware

  • • Traffic grouped under "Direct" in GA4
  • • No campaign, source, or medium context
  • • Zero ability to compare Poster A against Poster B
  • • Meta Pixel cannot group scanners separately
  • • Print ad budgets have zero clear ROI
  • • Broken URLs require printing new codes

With QRTRAC

  • • Fires a clean, custom qr_scan event to GA4
  • • Auto-appends source=qr_code and medium=offline UTMs
  • • Compare every placement in one dashboard
  • • Meta Pixel builds retargeting audiences instantly
  • • Clear path: Scan → Session → Retarget → Purchase
  • • Change target URLs instantly without reprinting
"You cannot optimize what you do not measure. Stop treating print and packaging campaigns as unmeasurable experiments."

How QRTRAC Tracking Works

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

1
User scans the code
They use any default camera app. The code holds a quick QRTRAC redirect link, not your raw destination URL.
2
QRTRAC processes the click
Our fast, script-free page handles the request. This happens instantly in the background before the browser renders anything.
3
We log the scan data
We record the QR ID, precise timestamp, hardware, OS, country, city, and postal code.
4
GA4 receives the event
We fire a custom qr_scan event directly to your GA4 property and pass along your dynamic UTM parameters.
5
Meta Pixel triggers
We load your Pixel to log a PageView and custom QRScan event, matching the user to your Facebook/Instagram ad account.
6
User lands on your site
The browser opens your final page with all UTMs intact. The process takes less than 150ms, completely unnoticed by 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 fired on every 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
Keep this as qr_code. It groups all QR scans into a single, clean source inside your GA4 reports.
utm_medium
offline
Use offline. Avoid 'qr' or 'print'. This lets you compare real-world performance directly against PPC, email, or social campaigns.
utm_campaign
Your campaign name (e.g. q1-packaging-2026)
Match your active marketing campaigns. Keep everything lowercase and use hyphens—GA4 treats 'Flyer' and 'flyer' as separate campaigns.
utm_content
Placement identifier (e.g. front-box, poster-station-1)
Identify specific placements. Use it to find out if the side panel or front face of your packaging gets more scans.
utm_term
Optional — SKU or product variant
Optional. Use this for specific SKUs or design variations. Ideal for retail brands tracking several products simultaneously.

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.

Running QR codes inside newsletters too? The same UTM naming applies; our guide to QR codes in email marketing shows the setup per send.

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 Triggers on every scan. Places the user into your primary retargeting pool.
ViewContent Fires when your QR points to a specific item. Perfect for dynamic product ads.
Lead Fires when users complete a sign-up form on the target page. Directly links offline flyers to digital signups.
QRScan (Custom) Custom event containing the campaign name, QR ID, and name. Use this to build custom segments inside Meta Ads Manager.

The Retargeting Flywheel

1
Show the code: Print QR codes on boxes, banners, or handouts.
2
User scans: Scanners pull out their phones to view your content.
3
Pixel fires: Our redirect logs their action to your ad account instantly.
4
Serve ads: Show highly relevant ads on Instagram and Facebook within 48 hours.
5
Convert: Turn warm physical interest into digital signups and purchases at a lower CPA.

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 campaigns rely on guesswork. Using tracked QR codes replaces assumptions with real data, letting you optimize your physical spend.

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
CPG & E-commerceProduct boxes, insertsSee which SKU scans most; track product lifecycle.
Event MarketersBadges, banners, schedulesMeasure booth engagement and compare physical event ROI.
NonprofitsMailers, street postersTrack donation rate by city; follow up with retargeting ads.
Brick & MortarWindows, shelf tagsFind peak store hours and pinpoint highly engaging displays.
B2B TeamsFlyers, event backdropsLink physical hand-outs directly to pipeline and book demos.
RestaurantsTable tents, takeout bagsTrace repeat scans back to active loyalty signups.

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
Postal code
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

A scan shows interest, but it isn't a sale. Use this three-tier framework to track if your physical campaigns are actually turning a profit.

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 GA4 and Meta Pixel to your physical campaigns. Get set up in three minutes without touching a line of code. Track scans, export clean reports, and watch your ROI grow.

Frequently Asked Questions

Answers to common questions about tracking QR codes in GA4 and Meta Pixel.

Q Can Google Analytics track QR code scans?

Yes, but not out of the box. GA4 doesn't detect QR scans natively. You need a redirect layer to fire a custom GA4 event (qr_scan) and append UTM parameters before the user hits your site. Without this step, GA4 lumps all QR scans into 'direct' traffic, destroying your attribution.

Q What UTM parameters should I use for QR codes?

We recommend this exact UTM setup: utm_source=qr_code, utm_medium=offline, utm_campaign=[your-campaign], and utm_content=[specific-placement]. QRTRAC appends these automatically. Do not use utm_medium=qr or utm_source=print. This fragments your GA4 reports and breaks your cross-campaign comparisons.

Q How does Meta Pixel work with QR codes?

When someone scans a QRTRAC code, our fast redirect script fires your Meta Pixel before they land on your site. This triggers a PageView and custom QRScan event. Meta adds these scanners to a Custom Audience in your Ads Manager. You can then run targeted ads directly to people who scanned your physical flyers or packaging.

Q What is offline attribution for QR codes?

Offline attribution links physical touchpoints—like flyers, boxes, and event banners—to digital actions like signups or purchases. QR codes act as the link. Every scan starts an attributed session in GA4. QRTRAC takes this further by logging hardware, location, and timing data separate from GA4, letting you compare placements directly.

Q What data does QRTRAC capture per scan?

We log the QR ID, name, campaign type, precise timestamp, device hardware, OS, browser, country, state, city, and postal code (via anonymized IP prefixes). You get this data in real time. You can export it to CSV or PDF, or view trends directly in your dashboard.

Q Can I retarget people who scanned my QR code?

Yes. The moment someone scans your code, our redirect registers them to your Meta Pixel Custom Audience. You can serve them follow-up ads on Instagram and Facebook. People who scan physical packaging or flyers are high-intent leads, making them far cheaper to convert than cold audiences.

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

Scans measure the physical interaction with the QR code. GA4 sessions measure users who fully loaded your website. They will not match perfectly. Users might drop off due to spotty cell service, or close the page mid-redirect. If your scan-to-session ratio drops below 70%, your landing page is likely too slow.

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

No coding required. Just paste your GA4 Measurement ID or Meta Pixel ID into your QRTRAC settings. We handle all event firing and UTM injection. You do not need Google Tag Manager or custom scripts. Just make sure your target website already has your standard GA4 or Meta tracking code installed.