How do you track a QR code in Google Analytics?
Google Analytics tracks a QR code when the code opens a URL that already has utm_source, utm_medium, and utm_campaign. Those values show up in the Traffic acquisition report as manual source, medium, and campaign. A scan does not create a gclid. Google Ads can count the later sale only if you import a conversion that still matches an ad click.
The tagged URL inside the QR code starts a session in GA4, the source is stored on the lead, and closed revenue is credited to that campaign. Google Ads joins in only when that lead also matches an ad click.
Four moves, in order:
- Build the tagged URL and the code together in Trakt's free QR code generator, with source, medium, and campaign filled in. Analytics Help says to always use those three.
- Encode that exact URL in the QR code. Generate one code per placement.
- In GA4, open the Traffic acquisition report and read Session manual source, Session manual medium, and Manual campaign name.
- Write the same parameters onto the lead, then onto the deal. Filter closed revenue by the campaign. Import to Google Ads only when you still have a gclid or matching contact details from an ad click.
What does Google's QR code generator track?
Google does not add Analytics tracking when it draws a QR code. Tracking is whatever URL you encode.
Two Google tools get mixed up under "google qr code generator tracking":
- Campaign URL Builder builds the tracked link. It does not draw a code. If you only need the link, the Trakt UTM builder does the same job with consistent lowercase, hyphenated values.
- Chrome draws the code. Chrome Help says: open the page, then More → Cast, save, and share → Create QR code. You can copy the link, download the image, or scan it. Chrome encodes the address in the bar. It does not add
utm_parameters.
Open the tagged URL before you create the code. If the bar shows your homepage, the code points at your homepage, and GA4 files the scan as Direct. If a redirect strips the query string before you generate the code, the code contains the stripped address.
Chrome's code is static. The image keeps the URL you encoded. To change the destination after printing, put a short link you control in the code and change the redirect. Test that the landing page still receives the parameters. A shorter URL also makes a less dense code. The trade-off, and a generator that writes utm_medium=qr-code for you, is on the tracked QR code generator. For when to print the short link beside the code, see short URL vs QR code for offline.
Build the QR URL from scratch. A landing URL copied out of an ad click can still carry that click's gclid, and GA4 will treat the scan like a Google ad.
Which UTM parameters does GA4 keep?
Analytics Help on URL builders lists the parameters. Values are case sensitive: print and Print are two sources. Google's own examples use hyphens (spring-sale), so pick one style and keep it.
| Parameter | What to put on a QR | Where GA4 shows it |
|---|---|---|
utm_source | The property: print, billboard, event | Session manual source |
utm_medium | qr-code on every code, so the channel stays one row | Session manual medium |
utm_campaign | The effort: spring-mailer-2026 | Manual campaign name |
utm_content | The placement: brochure-cover, booth-backdrop | Session manual ad content |
utm_term | Optional extra detail, such as a city or list | Session manual term |
utm_id | The media-buy or line-item id, if finance uses one | Campaign id for matching uploaded campaign data |
The traffic-source article maps those parameters to the manual dimensions above. The same article says utm_creative_format and utm_marketing_tactic are not currently reported, so leave them off a printed code. If you set any UTM and there is no usable gclid, Google says it will take every cross-channel source dimension from the UTMs, and a missing parameter shows up as (not set). Set source, medium, and campaign on every code.
There is no QR channel in the default channel group. Medium qr-code matches none of the rules, so the session lands in Unassigned. That is expected. Read Session manual medium, or add a custom channel for medium exactly matching qr-code (custom channel groups).
One exception: if utm_source is a video site such as YouTube, the Organic Video rule can match on source alone. A printed code meant for a YouTube demo should use utm_source=event or print, and put the video in utm_content. The YouTube QR code setup goes through that case.
Google also omits UTM parameters from the Landing page + query string and Page path + query string dimensions. They remain on Page location. A landing-page report that looks empty of parameters is not a failed scan.
Illustrative URL, not a live campaign:
https://example.com/demo?utm_source=print&utm_medium=qr-code&utm_campaign=spring-mailer-2026&utm_content=brochure-cover&utm_id=print-042
Swap example.com and the values for your own. One code per brochure, billboard, or booth. A single code for the whole run tells you the run worked and hides which piece paid for itself.
For a show floor, the same idea with event values is in trade show UTM parameters. The account-level pattern for real ad clicks, including auto-tagging, is in how to set up Google Ads UTM parameters.
How do you attribute offline conversions to QR code scans?
Two systems, two questions.
Which printed code produced the closed deal? GA4 plus the CRM. The scan is a session. The money is on the deal. Capture utm_source, utm_medium, utm_campaign, and utm_content on the form (hidden fields, or a first-party cookie that still has them when the form is on a later page). Copy those fields from the contact to the deal when the deal is created. A closed-won report filtered by campaign is the revenue number. Set it against what that placement cost.
Which Google ad should get credit for a later sale? Google Ads, and only when the lead matches an ad click. Set up offline conversions using Google Click ID requires all of this:
- Auto-tagging is on, so ad clicks receive a gclid.
- Your site can store that gclid with the lead. It is case sensitive.
- The click-to-conversion gap fits the lookback window for your data source. Google documents a different window per connector in that article. A deal that closes after the window cannot be tied to the click.
Then create the conversion, as Set up your offline conversions describes it:
- In Google Ads, open Goals → Summary.
- Create conversion action → Conversions offline → Add data source.
- Connect a data source (a direct connection, Zapier, or a partner), or skip and connect it later. Google says the action stays inactive until a source is connected.
- Choose the conversion category closest to the sale you are importing.
The import itself needs a conversion name, a conversion time, and an identifier. Enhanced conversions for leads can send hashed email or phone along with the gclid, which helps when the click id was lost but the person still engaged with an ad. Value and currency are what make the import useful for bidding on revenue.
A person who only scanned a poster has no gclid and no ad engagement to match. They belong in GA4 and on the deal. They do not belong in an offline upload. There is no parameter you can invent, on the QR or in the file, that turns a print scan into an ad click.
Trakt stores the UTMs from the latest tagged visit in a first-party cookie for 90 days and records the form submission with that source, including on a form with no hidden fields. Won deal value is credited to utm_source on Trakt's dashboard. A revenue-by-placement report in your own CRM still needs the fields and the contact-to-deal copy. Trakt does not sync into HubSpot, Salesforce, or Pipedrive, and it does not upload conversions to Google Ads. A scan on a phone and a form on a laptop are two browsers. The cookie cannot join them. A "How did you hear about us?" field covers the ones tracking will miss. More on the blank-source path is in why leads show up as direct.
Where a Google Ads promotion QR code is different
Google Ads can also show a QR code or barcode on a promotion asset, for an offer someone redeems in a store. Google's article says QR code and barcode promotions serve on Maps, and they do not serve on Search, Shorts, or in-stream video. Local promotions in this format serve on Performance Max campaigns that use an offline conversion goal.
That code is a store offer inside Google Maps. It is not the QR you print on a brochure, and it does not replace UTM parameters on your own site. If the goal is "which printed piece produced pipeline," use the tagged URL in the sections above. If the goal is "show an in-store offer on Maps," use the promotion asset, and measure it with the store goals on that campaign.
Where the revenue report breaks
- The code opens an untagged homepage. GA4 calls it Direct. The deal has no campaign to filter on.
- Two spellings of the medium.
qr,qr-code, andQR-codeare three rows. Pickqr-codeand stay there. - One code for every city. You can defend the campaign. You cannot cut the placement that lost money.
- The redirect drops the query string. The scan works. The parameters do not arrive. Scan the printed piece and read the landing URL.
- The form never stores them. The session is in GA4. The CRM says Website. The closed-won report cannot see the code.
- You only look at the default channel group. QR traffic sits in Unassigned, so it looks like it never happened.
- You upload the scan to Google Ads without a gclid or matched contact. The import fails, or it attaches the sale to the wrong click. Keep print revenue in the CRM report, and import only the deals that actually followed an ad click.
Keyword-level revenue, for the clicks that did come from ads, is a separate report: which keywords close. The wider account setup is in the Google Ads tracking playbook.
Related reading
- Short URL vs QR code for offline, when to print a code, a short link, or both
- Trade show UTM parameters, copy-paste values for a booth
- How to attribute revenue to trade shows, the checklist from prep to closed-won
- YouTube QR codes, in-video overlays and printed codes that point at a video
- UTM parameters for offline, the same bridge off the show floor
- QR code design for print, size, contrast, and quiet zone
Frequently asked questions
How do I track a QR code in Google Analytics?
Put utm_source, utm_medium, and utm_campaign on the URL, then encode that URL in the QR code. Google's Campaign URL Builder builds the link. GA4 shows the values in the Traffic acquisition report as Session manual source, Session manual medium, and Manual campaign name. Medium qr-code falls under Unassigned in the default channel group, so filter the manual medium rather than waiting for a QR channel.
Does Google's QR code generator include tracking?
No. Chrome's Create QR code command encodes the address of the page you have open, and it does not add UTM parameters. The Campaign URL Builder adds the parameters and does not draw the code. Open the tagged URL, then create the code. Check the downloaded image by scanning it and reading the landing URL.
How do I attribute offline conversions to QR code scans?
Store the QR's UTM parameters on the lead and copy them to the deal, then filter closed revenue by that campaign and compare it with the cost of the placement. Google Ads can receive the sale only when the lead still matches an ad click: a stored gclid, or hashed email or phone through enhanced conversions for leads. A scan with no ad click stays in Analytics and the CRM.
Can a Google Ads QR code include a gclid?
A gclid is added when someone clicks an ad and auto-tagging is on. A QR you print does not receive one. Copying an ad's landing URL into a QR can paste someone else's gclid into the code, which makes GA4 treat every scan like that click. Build the print URL on its own, with UTM parameters and no gclid.
Why is my QR traffic Unassigned in GA4?
The default channel group has no rule for medium qr-code, so those sessions are Unassigned. The scans are still in the property. Open Traffic acquisition, add Session manual medium, and filter to qr-code. You can also create a custom channel group with a rule for that medium. Landing page reports hide UTM parameters by design. Page location still has them.


