Retail · packaging

Packaging QR codes: one print run, each market's own page

Print one packaging QR code for every market and send each shopper to their own country's product information page, with the right app store on each phone.

The problem

Why one fixed link isn't enough

A pack is printed in runs of tens of thousands and shipped wherever demand takes it. The product page behind its code has to say different things in different markets, and the pack cannot know where it will end up. One code per market means one print run per market, and a pack that ships to the wrong country sends its shoppers to the wrong page for as long as it sits on the shelf.

The routing example

Retail and packaging: try the example

These are real routing rules, run by the same engine that resolves real scans. Pick a scan or change the rules and see where it lands. Nothing you do here is saved.

One pack, each market's product page

A code printed on a pack sold in several countries. Each scan gets the product information page for its market, chosen by country only; a shopper in any other country gets the international page.

Rules are checked from the top. The first enabled rule that matches the scan decides where it goes, and a scan no rule matches goes to the fallback. Pick a scan or set your own, and the rule that decides it is highlighted.

  • Canada (CA)

Leave empty to simulate a scan whose country is unknown (a VPN, or an address that can’t be placed).

  • ON

The region the scan comes from, in the country above — the code a real scan reports alongside its name. Best-effort for real scans. Leave blank to simulate as unknown.

In order of preference, the way a browser sends them — or paste a real Accept-Language header. Leave blank to simulate as unknown.

The instant of the simulated scan.

Used by rules set to "scanner's local time". Leave it blank for a scan from a location we can't place: like a real one, it's read in UTC.

More scan details — in-app browser, OS version, city, location, scan number, returning visitor, referrer

Browsers differ in what they report — see what a real scan from this one tells the edge below.

The version the device really runs. Leave blank for a current one — every phone reports some version.

A real scan reports the continent along with the country, so it's taken from the country unless you pick one.

As a scan reports it — usually the English name (Munich, not München); case and accents don’t matter. Leave blank for unknown.

For distance rules. A real scan is placed near its city's centre, and only roughly. Leave blank to simulate as unknown.

For distance rules. A real scan is placed near its city's centre, and only roughly. Leave blank to simulate as unknown.

Which of the code's counted scans this is — 1 is its first. Only scans that reach a destination count: not bots, and not scans that stop at a password or age prompt or a warning page. A scan limit of 100 serves scans 1 to 100. Real scans are counted approximately: when many people scan at the same moment some can get the same number, so a busy code may serve some past a limit or an "at most" rule. Leave it blank to simulate a scan made while the counter couldn't be read, which no scan-number rule matches.

No enabled rule here reads this, so this choice changes nothing — and a real scan of a code with these rules sets no returning-visitor cookie. Add a returning-visitor rule and scans are remembered from the moment it is published.

Leave blank to simulate this as unknown.

No version entered, so this tests a current Android 16 — enter one to test another.

A real scan from this device doesn't tell the edge its OS version — this browser reports a frozen one, or none — so OS-version rules skip it.

The User-Agent this device's browser sends, which the edge reads: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36

Resolves to https://example.com/product/us, via "United States or Canada".
  1. United States or CanadaMatched

    country is United States (US), Canada (CA) — simulated value: Canada (CA)

    → https://example.com/product/us

  2. United KingdomNot reached

    → https://example.com/product/uk

  3. Eight EU marketsNot reached

    → https://example.com/product/eu

Every code has a fallback, so no scan ever dead-ends.

Your changes stay in this tab and are gone when you leave. On your own codes, routing rules come with Pro and above, and A/B splits and rotations with Business and above.

Where each scan lands

  • Toronto, AndroidRule 1 · United States or CanadaNorth American product page
  • Manchester, iPhoneRule 2 · United KingdomUK product page
  • Lyon, through Private RelayRule 3 · Eight EU marketsEU product page
  • Sydney, AndroidFallbackInternational product page

Every outcome shown here is checked by an automated test that runs these scans through the same routing code a live scan uses.

Start from the Retail and packaging template

Create an account and your first code starts with these rules, switched off. You swap in your own pages, check the times and dates, and switch on the ones you want.

The rules need Pro ($29/month) or above. Every account starts on the free plan; you then request Pro from your dashboard.

Start with this template

A packaging QR code is the one printed item you can least afford to reprint. Routing lets one code serve every market the pack ships to: each scan is sent by the country it comes from, and the product information page for that market opens.

How the example works

The example has three rules, each on country and nothing finer:

  1. United States or Canada: the North American page.
  2. United Kingdom: the UK page.
  3. Eight EU markets: Germany, France, Italy, Spain, the Netherlands, Belgium, Austria and Ireland share the EU page.

A shopper in Sydney matches none of them and gets the international page, which is the code's own destination. Every dynamic code has one, so a pack that ends up somewhere you never planned for still opens something useful.

The scan from Lyon through iCloud Private Relay is the reason the rules stop at country. The relay moved that shopper to Paris, a different city, but kept France, so the scan still lands on the EU page. That is the level routing by country can be relied on for, and the level to choose for any page whose wording differs by market.

Country rules for anything that must be right

If the page a market gets matters, put it behind a country rule. Region, city and distance rules are best-effort: they can fire for the wrong people, or miss the right ones, without any error to tell you.

Adding app downloads

A pack that promotes an app can send each phone to its own store from the same code. Routing by iPhone or Android reads the phone's operating system, and anything else goes to your website. An app store QR code sets this up as one type rather than a rule you build yourself, and can also be given a Universal Link or App Link afterwards so it opens the app itself when it is installed. A phone without the app then opens that link's web page rather than the store listing, so that page should offer the download.

Other types that suit packaging are a PDF QR code for instructions or a data sheet, and a video QR code for assembly or recipes.

Routing rules need Pro or above.

Printing it

A pack is held in the hand, about 15 cm from the phone, but the short link inside a dynamic code keeps its pattern simple, so it prints small: at least 15 mm wide for the code itself, plus its white margin. A shelf-edge label read from a metre away needs 10 cm. Print dark on light, keep the code off seams and curves where the pattern bends, and test a proof from the finished pack, not the artwork file.

What it can't do

  • It routes by where the scan happens. A traveller scanning abroad gets the page for the country they are in, not where the pack was sold.
  • It doesn't write the pages. Each market's page, and what it must say there, is yours.
  • Travel and VPNs change the country. Country is read from the scanner's network.

Questions

Can one QR code on packaging open a different page in each country?

Yes. Each scan is routed by the country it is made from. List the countries each market page covers, and every other country goes to the code's own destination, such as an international page.

Can I route by region or city instead of country?

You can, as a best-effort refinement above a country rule, but not for anything a market depends on. Privacy relays and VPNs keep the country and can move a scanner elsewhere inside it, so this example uses country alone.

What does a shopper on a VPN get?

The page for the VPN's country, since country is read from the network the scan comes from. If that country has no rule, they get the code's own destination, never an error.

Can the pack send iPhones and Android phones to different app stores?

Yes. An operating-system rule sends iPhones to your App Store listing and Android phones to Google Play; everything else gets the fallback. An App download code does the same by default, sending each phone straight to its store; add a Universal Link or App Link in the rule builder afterwards if you also want it to try opening an already-installed app first.

Put the example on your own code

Create a free account, then request Pro ($29/month), which the routing rules need. Your first code starts with this page's rules, switched off, so you can check them before anything is printed.

Packaging QR codes: one print run, each market's own page · QRtoMany