Route by country

One QR code that redirects by country

Ship the same packaging, poster or brochure to every market. Each scan goes to the site for the country it was made in, and scans from anywhere else land on your international page.

The problem

A code per country multiplies everything

A separate print run for each market multiplies artwork, stock and the chance of a mix-up, and a pack that crosses a border carries the wrong code with it. One code that reads the scanning country keeps a single print run and sends each market to its own site.

Worked example

Try it: change the scan, or the rules

Two country rules, with a region rule above them. The region rule is a refinement, not the plan: the second scan is the same person in Munich going through iCloud Private Relay, which places them in Frankfurt. The region rule misses, and the country rule beneath it catches them.

One print run, a site for each market

Packaging sold in several countries: each market's own site by country, a best-effort Munich store rule on top, and the international site for everywhere else.

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.

  • Germany (DE)

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

  • BY

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 iOS 26 — enter one to test another.

What a real scan from this device tells the edge: iOS 26.

The User-Agent this device's browser sends, which the edge reads: Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1

Resolves to https://example.com/shop/de/munich, via "Bavaria → Munich store (best-effort)".
  1. Bavaria → Munich store (best-effort)Matched

    region is DE-BY — simulated value: DE-BY

    → https://example.com/shop/de/munich

    Best-effort: Region, city and distance from a point are best-effort. They come from where the scanner's connection appears to be, and services like iCloud Private Relay and VPNs commit to country-level accuracy only, so this rule can fire for the wrong people or miss the right ones — country and continent rules are unaffected and stay reliable.

  2. Germany, Austria, Switzerland → German siteNot reached

    → https://example.com/shop/de

  3. United States, Canada → North American siteNot reached

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

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

  • MunichRule 1 · Bavaria → Munich store (best-effort)Munich store page
  • Munich, through iCloud Private RelayRule 2 · Germany, Austria, Switzerland → German siteGerman-language site
  • ViennaRule 2 · Germany, Austria, Switzerland → German siteGerman-language site
  • TorontoRule 3 · United States, Canada → North American siteNorth American site
  • TokyoFallbackInternational site

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

Setting it up

  1. 1

    Create a dynamic code with your international page as its fallback destination.

  2. 2

    Add a rule for each market and the countries it covers. Put narrower rules above broader ones: the first match wins.

  3. 3

    Run a scan from each market through the simulator — including one with degraded location — then print.

Which plan

Routing rules are included from the Pro plan, at $29 a month.

What to know before you print

  • Country is read from the network a scan comes from. Someone on a VPN is routed by the VPN's country, not their own.

  • Region, city and distance from a point are best-effort. iCloud Private Relay — on by default for iCloud+ subscribers — and many VPNs keep the country but can place a scanner elsewhere inside it. Use them only above a country rule, as the example does; the rule builder warns you when one has nothing beneath it.

  • Routing follows where the scan happens, not where the code was printed or sold. A traveller scanning abroad gets the site for the country they are in.

Questions

How accurate is routing by country?

Country is the dependable level: it is read from the scanner's network at the moment of the scan, and privacy relays such as iCloud Private Relay keep it. A scanner on a VPN is routed by the VPN's country.

Can I route by city or region?

Yes, as a best-effort refinement. Privacy relays and VPNs can place a scanner in another city of the same country, so a city or region rule should sit above a country rule that catches the scans it misses. We don't recommend relying on city routing on its own.

What happens if the country can't be worked out?

No country rule matches, so the scan goes to the next rule that does — or to the code's fallback destination. It never ends at an error.

Route your next printed code

Create an account, set up the rules, and check them in the simulator before anything goes to print.

QR code that redirects by country · QRtoMany