QR codes on packaging: which Shopify market opens?

A QR code is the only link you publish that you cannot edit afterwards. It goes on ten thousand boxes, a care card, a swing tag or a flyer handed out at a fair, and then it travels. A box packed in Leeds is opened in Lyon. A flyer picked up in Milan is scanned a week later in Seoul. A gift bought in one country is unwrapped in another.

The link inside the code was typed once, at a desk, by someone thinking about one market. This post is about what happens when it is scanned somewhere else on a store that uses Shopify Markets and GeoBeacon, and what to put in the code so that you do not need a reprint.

A scan is a page view like any other

A phone camera reads the code and opens the address in a browser. From that point nothing distinguishes the visit from a tapped link. Shopify serves the page for whichever market the address belongs to. With Shopify Markets, that is decided by the domain or folder in the address: your main domain is the primary market, and a folder such as /en-ca is the Canadian one.

Then the GeoBeacon script runs, as it does on every storefront page. It asks Shopify which country the visitor appears to be in, looks for a rule that covers that country, and compares the rule's destination with the market already on screen. If they are the same, it does nothing. If they differ, it shows the popup, or redirects if you chose that mode.

What a scanner sees, by what the code points to
The code points toScanned in the same marketScanned in another country you have a rule for
Your main domain, no folderThe page, no popupThe page in your primary market, with a popup offering theirs
A market folder, such as /en-ca/The page, no popupThe Canadian page, with a popup offering theirs
Any address ending in ?geobeacon=offThe page, no popupThe page as printed, no popup on that page view
A page under a path you excludedThe page, no popupThe page as printed, no popup while they stay under that path

What to encode

Print the address of your primary market, with no market folder in it. There are two reasons.

The first is that markets change and print does not. A folder that exists today may be renamed, merged into a regional market or removed next year, and the box will still be in a cupboard. The address on your main domain is the one most likely to exist for as long as the store does.

The second is that you do not know where the box will be opened. A code that points to the Canadian folder is right for Canadian scanners and wrong for everyone else, and the popup has to correct it. A code that points to the main domain is right for your largest market and gets corrected for the others. Fewer people see a popup.

Accepting the popup keeps the shopper on the same page. GeoBeacon sends them to the same path in the other market and keeps the query string, so a campaign tag such as utm_source=packaging survives the switch and the visit is still counted against the box in your reports.

Pages where the market does not matter

Many codes do not lead to a product at all. They lead to washing instructions, an assembly video, a warranty form or a page that says thank you. Nothing on such a page has a price, and a popup asking about country and currency is an interruption between the customer and the thing they scanned for.

You have two ways to keep those pages quiet.

  • Add ?geobeacon=off to the printed address. The script stays silent for that page view. If the customer then taps through to the shop, the next page behaves normally. The value must be lower case.
  • Put every QR page under one path, for example pages whose handles start with /pages/qr-, and add that path under Never act on these paths in the Behaviour settings. Any address that begins with it is skipped. The post on excluding pages explains how the matching works.

The second way has an advantage that matters for print: it lives in a setting you can change. If you later decide that the care page should offer the local market after all, you remove one line. A parameter printed on a box is there for good.

The parameter has a cost of its own. Every character makes the code denser and harder to scan when it is printed small. A short path is kinder to a 15 mm code on a swing tag than an address carrying three campaign tags and an opt-out.

The roaming phone

Here is the case that confuses people at trade fairs. A visitor from Japan scans your flyer in Milan. Their phone is on mobile data, roaming. Many carriers send roaming traffic through the home network, so the phone reaches the internet from Japan, and your store sees a Japanese visitor. They are offered the Japanese market while standing in Italy.

That is usually the right answer. The person lives in Japan and will want the parcel sent there. The opposite happens on the venue's Wi-Fi: the same phone now appears to be in Italy and is offered the Italian market, which is wrong for where they live and right for where they are standing.

No geolocation method can tell those two apart, and this is the practical argument for the popup over the automatic redirect. A popup offers and the shopper decides. A redirect would move the Wi-Fi visitor to a market they do not want with no question asked. The post on popup or automatic redirect compares the two modes.

Scanner apps and remembered choices

The built-in camera on most phones opens the address in the phone's usual browser. Some people scan from inside another app, which opens the page in that app's own browser. GeoBeacon remembers an answer to the popup in the browser where it was given, so a shopper who answered in one may be asked once more in the other. The post on in-app browsers covers what those browsers keep.

The remembering also works in your favour. A customer who scanned the box in March, chose the French market and comes back by typing your address in May is not asked again if the remember period is long enough. See how long to remember a choice.

Codes that point to a product

A code on a refill pack that opens the product page for the refill is the most useful kind, and the one with a trap. If that product is not sold in every market, a shopper who accepts the popup may land on a page that does not exist there. The post on products not sold in every market shows what the shopper sees and how to avoid it. For print, the safer target is a collection or a page that exists everywhere.

Check it before the print run

  1. Decide the address. Main domain, no market folder, the shortest path that will still mean something in three years.
  2. Decide whether the page should be quiet. If so, choose the excluded path over the parameter.
  3. Generate the code and scan it with your own phone on Wi-Fi. Confirm the page opens.
  4. Open the same address on a computer and add a forced country, for example ?geobeacon=FR, to see what a scanner in France would get. Repeat for each market. The post on testing without a VPN describes the method.
  5. Accept the popup once and check that you land on the same page in the other market, with your campaign tag still in the address.
  6. Print one copy at final size and scan it from arm's length, in poor light.
  7. Create a URL redirect in Shopify from the printed path to wherever it should lead, and point the code at the redirect's path. When the destination changes, you edit the redirect and the boxes stay valid. The exclusion setting is checked against the page the redirect leads to, not the printed path.

What a QR code cannot tell you

The scan itself carries no location. GeoBeacon does not know that a visit began with a code, and it has no setting for QR visits as a group. Everything described here follows from the address you printed and the rules you already have. That is a limit, and it is also why there is nothing extra to set up: if your rules are right for a link in an email, they are right for a link on a box.

In short

Print the primary market's address and keep it short. Let the popup offer the local market to scanners elsewhere. Keep care and warranty pages quiet with an excluded path. Expect roaming phones to look like they are at home, and let the shopper make the final choice.

Frequently asked questions

Which Shopify market opens when someone scans a QR code?

The one in the printed address. A QR code is only a link, so a code that points to your main domain opens your primary market, and a code that points to a market folder opens that market. A geolocation popup can then offer the market that matches where the phone is.

Does the geolocation popup appear after a QR code scan?

Yes, if a rule matches the detected country and the page opened is in a different market. A scan is an ordinary page view. If the shopper is already in the right market, or has answered the popup in that browser within the remember period, nothing appears.

Can I stop the popup on pages opened from a QR code?

Yes, in two ways. Add geobeacon=off to the printed address to keep that single page view quiet, or put your QR pages under one path and list that path under Never act on these paths in the Behaviour settings, which keeps those pages quiet for everyone.

Why does a tourist scanning my code see their home country's market offered?

A phone using mobile data abroad is often connected through its home network, so it appears to be in the home country. On local Wi-Fi the same phone appears to be where it really is. The popup follows the connection, which is one reason to use a popup and not an automatic redirect.