Discount codes across Shopify Markets after a geo popup
By Beacon Wave Studio · · 7 min read
You send an email with a button that says 15% off, and the button is a discount link. A subscriber in Toronto taps it and lands on your store with the code already applied. Then a popup asks whether they would like to shop the Canadian store. They say yes. The page reloads in Canadian dollars. Is the 15% still there?
Usually yes, sometimes no, and the reasons have little to do with the popup itself. This post follows a discount code through a market switch on a store that uses Shopify Markets and GeoBeacon, and lists the three setups where the code and the shopper part company.
What a discount link does
A shareable discount link is an address on your store that ends in /discount/ and the code. Shopify notes the code against the visitor's session and sends the browser on to the home page, or to a page you name in the link. By the time anything is on screen, the address bar shows an ordinary page. The code is waiting for the cart and the checkout.
GeoBeacon runs after that, on the page the shopper landed on, like on any other page view. It has no idea a discount is in play. It does not read discount codes, apply them or remove them, and there is no setting that mentions them. It asks Shopify which country the visitor appears to be in, finds the rule for that country and offers the destination if it differs from the market on screen.
So the question is never what the popup does to the code. The question is what the destination does with it.
Destination one: another market on the same store
When a rule points to a market, accepting the popup submits the same country change that your theme's country selector submits, and returns the shopper to the page they were on. It is one store, one set of discounts and one checkout. The discount exists in every market unless you said otherwise.
Shopify's page on discounts in Markets describes what the code is worth after the switch.
| Type of discount | In the shopper's market |
|---|---|
| Percentage, such as 15% off | 15% off the local price, in the local currency. Nothing is converted. |
| Fixed amount, such as 10.00 USD off | Converted to the local currency at checkout at the current rate. The shopper sees an uneven figure, and it can drift from week to week. |
| Buy X get Y | Works wherever the products are sold. A fixed amount inside it is converted the same way. |
| Any discount limited to certain markets | Valid only at a checkout in one of those markets. |
The first row is the easy one, and the reason percentage codes are the safe choice for an international list. The other three deserve a section each.
A fixed amount is created in one currency
Shopify creates fixed amount discounts in the store's default currency. You cannot create ten euros off for the European market and ten dollars off for the American one under a single code. A shopper who switches from the US market to the eurozone market with a 10.00 USD code gets whatever ten dollars is worth in euros on the day they check out.
That matters for the email, not for the popup. If the subject line says 10 dollars off and the reader ends up with 9.20 euros off, nothing is broken, and still it reads like a different offer. For a list that spans currencies, write the offer as a percentage, or send one email per market with its own code and its own wording. The post on market-specific promotions covers how to keep each offer in its market.
A code limited to one market
Shopify lets you set a discount's eligibility to specific markets. This is the setup where the popup changes the outcome, and it can change it in either direction.
Take a code that is eligible only in the Canada market, sent to your Canadian subscribers. The link in the email points to your main domain, which is your US market.
- A subscriber in Toronto lands in the US market, accepts the popup and moves to the Canada market. At checkout the code is eligible. The popup is what made the offer work.
- The same subscriber dismisses the popup and stays in the US market. At checkout the code is refused, with a message that does not explain markets. The shopper concludes the code is broken.
- A Canadian subscriber on holiday in Spain is offered your European market, accepts, and the code is refused there too.
The cure is in the link, not in the rule. Point a market-only code at that market's own address, so the shopper arrives where the code is valid and no popup is needed to get them there. If your Canada market lives in a folder, the page you name in the discount link should be in that folder. Then test the link from start to finish, because you want to see that the shopper lands in the folder with the code still applied.
Destination two: a different store
Some rules do not point to a market. They point to a web address: a separate Shopify store for another region, or a distributor's site. The post on Markets versus separate stores compares the two models.
A discount belongs to the store it was created in. When the shopper accepts a popup that leads to another store, the code they arrived with stays behind. GeoBeacon can keep the page path and the query string on the way over, so a campaign tag survives, but a discount link has already been turned into a plain page address by then, and there is no code in the address to carry.
If you run separate stores and one mailing list, you have three options.
- Create the same code in each store, so that a shopper who types it at the other checkout finds it works. They will have to type it. Put the code in the email as text, not only inside a button.
- Segment the list by country and send each segment the link to its own store. This is the clean answer when you know where subscribers live.
- Keep the campaign landing page quiet, so that nobody is offered the other store in the middle of redeeming an offer. The next section shows how.
Keeping the popup out of a campaign
There are campaigns where you would prefer the shopper to stay where the link put them. A code that exists in one store only is one. A flash offer with a countdown is another.
GeoBeacon gives you two tools, described in the post on email campaign links.
- The parameter
geobeacon=offin the address keeps the script silent for that page view. With a discount link the parameter has to still be in the address after Shopify has passed the shopper on to the landing page. Open the link yourself and look at the address bar. If the parameter is gone, this tool is not available for that link. - A path listed under Never act on these paths in the Behaviour settings is skipped for everyone. Build the campaign on a page of its own, name that page as the destination of the discount link, and exclude its path. This does not depend on what survives in the address. The post on excluding pages explains how paths are matched.
Both keep only that page quiet. A shopper who clicks through to a product is on a normal page again and can be offered their market there. For a short campaign that is usually acceptable. If it is not, pausing the rule for the day is the blunt tool, and the post on pausing one rule shows where the switch is.
Popup or automatic redirect
Everything above applies to automatic redirect mode as well, with one difference: the shopper is not asked. A Canadian subscriber who taps a link to the US market is moved to the Canada market before they read anything. For a code that is valid everywhere, that is harmless. For a code limited to the market in the link, it takes shoppers away from the only place the code works, and they never chose to leave. A popup at least lets them stay. See popup or automatic redirect for the wider comparison.
Automatic discounts need no link
An automatic discount is applied by Shopify at the cart and checkout with no code, so there is nothing to carry across a switch. It applies in every market by default and can be limited to chosen markets in the same way as a code. If an offer is meant for one market, an automatic discount assigned to that market is the sturdiest version of it: whichever way the shopper arrives, and whatever they answer to the popup, they get the offer if and only if they check out in that market.
The trade-off is the usual one. No code means no feeling of having been given something, and no way to tell email redemptions from the rest. The post on who sees a discount across markets goes further into automatic offers.
Test the whole journey before you send
- Create the code and copy its shareable link. Decide which page it should land on.
- Open the link in a private window. Confirm the landing page and note which market it is in.
- Add a product to the cart and go to checkout. Confirm the code is applied. This is your baseline.
- Start again in a new private window. This time add a forced country to the landing page address, for example
?geobeacon=CA, so that the popup appears as it would for a shopper in Canada. The post on testing without a VPN describes the method. - Accept the popup, add a product and go to checkout. Check whether the code is applied, and what it is worth in that currency.
- If the code did not follow you, type it at checkout by hand. If it is accepted, the code is valid there and only the automatic application was lost, so put the code in the email as text. If it is refused, check the discount's market eligibility.
- Repeat for each market you have a rule for, and once for any rule that leads to another store.
Step six separates two different faults. A code that is valid but no longer applied costs the shopper ten seconds. A code that is not eligible in the market they ended up in costs you the sale.
What GeoBeacon does not do
It does not create discounts, attach a code to a redirect, or choose a destination according to the code. It has no rule condition for campaigns or discount links. Its part in this story is small and fixed: it offers a market, and if the shopper accepts, it asks Shopify to switch and returns them to the same page. Which price and which discount they then get is decided by Shopify from the market at checkout.
In short
Use percentage codes for lists that cross currencies. Point market-only codes at that market's own address. Remember that a code lives in one store and does not travel to another. Print the code as text in the email as well as in the button. And run the link once with a forced country before ten thousand people do it for you.
Frequently asked questions
Does a discount code still work after a shopper switches market in the popup?
On the same store, yes, as long as the discount is eligible in the market they switched to. A percentage code gives the same percentage off the local price. A fixed amount is converted to the local currency at checkout. A code limited to other markets is refused.
Why was my discount code refused after the customer changed country?
The most common reason is market eligibility. If the discount is set to specific markets, it is valid only at a checkout in one of them. A shopper who lands in one market and checks out in another, by popup or by country selector, loses a code that was limited to the first.
Does GeoBeacon carry a discount code to another store?
No. A discount belongs to the store that created it. When a rule sends the shopper to a different store, GeoBeacon can keep the page path and query string, but the code does not exist there unless you created the same code in that store too.
Is a fixed amount discount the same in every currency?
No. Shopify creates fixed amount discounts in the store's default currency and converts them at checkout at the current exchange rate. Ten dollars off becomes an uneven amount in euros or pounds, so percentage discounts are easier to advertise across markets.