How do I count visits from a QR code on a flyer or a menu?

Put utm_source and utm_campaign on the address the code opens. A scan usually has no referrer and otherwise counts as Direct. Use one lowercase spelling, such as menu and lunch-card. PostDeploy keeps only those two parameters, each up to 100 characters. Words such as email are renamed to a known source. Scan the code and read the address that loads.

Last updated 26 November 2026. By Paul Badarau.

A fictional cafe prints a QR code on the lunch menu. The phone opens the URL and sends no referrer. With no tags, those visits sit under Direct, beside people who typed the address.

  1. Print an address that already has the two tags, such as /specials?utm_source=menu&utm_campaign=lunch-card. Use one lowercase spelling and write it down. An unknown value is stored as typed, so Menu and menu become two sources.
  2. Skip words the collector renames. utm_source=email and utm_source=newsletter both become the source Newsletter. menu stays menu.
  3. Each kept value is cut to 100 characters. Every other parameter is removed, and so is the fragment. A campaign written after # never arrives, and utm_medium never arrives.
  4. The tags have to be on the address that actually loads. If a short link drops the query string, the scan is Direct again. Scan the printed code and read the address bar before you trust the batch of cards.
  5. Open that page in a browser that sends neither Do Not Track nor Global Privacy Control. New Projects drop those visits. In the Project report for today, find lunch-card under campaign.

A goal completed during that visit keeps the source the visit arrived with, so a signup from the menu code is credited to menu. Someone who comes back the next day by typing the address is a new daily visitor, and that visit is Direct. A second code, for the dinner menu, needs its own utm_campaign and the same utm_source.

The product page for this is Analytics.

Start your 14-day free trial