Product not in every Shopify market: redirects that 404

A shopper in Germany taps a link a friend sent from New York. It points at a product page on your store. The store works out that the visitor is in Germany and moves them to the German market, in euros. The page that loads says the page could not be found.

Nothing is broken, in the sense that every part did what it was built to do. The product is sold in the United States and is not in the German catalog. The country switch kept the address of the page, and in Germany that address has nothing behind it. This post is about that gap: why it happens, how to find the pages where it can happen, and the settings in GeoBeacon and in Shopify that close it.

Why the same URL can exist in one market and not another

With Shopify Markets each market has a catalog, which decides the products and prices shoppers in that market can buy. Most stores leave every product in every catalog. Plenty do not, and for ordinary reasons:

  • A product cannot be shipped to some countries: batteries, liquids, food, anything with an age limit.
  • A licence or distribution agreement covers certain countries only.
  • A plug, voltage or sizing variant is made for one region and sold as its own product.
  • A bundle or gift set is built from stock held in one warehouse.

When a product is left out of a market's catalog, shoppers in that market do not see it in collections or search, and its product page is not served to them. The handle is still the same, so a link copied in one country carries the shopper to an address that the other market answers with the theme's not-found page.

What the switch does with the page

When a rule sends a shopper to another market on the same store, GeoBeacon does not build a new URL. It submits Shopify's own localization form with the new country, and asks to be returned to the page the shopper was on, with its query string. Shopify changes the market and sends the browser back to that path, adding the market's subfolder or domain if you use them.

That is the right behaviour nearly all the time. A shopper who clicked an ad for a jacket should land on the jacket in their own currency, and campaign parameters should survive, as described in the post on ads and UTM parameters. The cost is that GeoBeacon cannot know whether the page exists on the other side. It runs in the browser, it reads the list of countries your store sells to, and it has no access to what each catalog contains.

Rules that point at a different website have the same risk in a different form, covered in the post on keeping the page path. This one stays with markets on a single store.

Popup or automatic redirect changes who sees the error

ModeWhat the shopper sees on a product missing from their market
PopupThe product page in the market the link opened, with a suggestion to switch. If they accept, the not-found page. If they stay, they keep browsing the product.
Automatic redirectThe not-found page, straight away. They never see the product they clicked.

For a store whose catalogs are identical everywhere, the two modes are a matter of taste, and the comparison of the two goes through the trade-offs. Once catalogs differ, the popup is the safer default, because the shopper at least sees what was shared with them before anything moves.

Find the pages at risk

You do not need to audit the whole catalog. You need the short list of products and collections that exist in one market and not in another.

  1. In the Shopify admin, open Markets and look at each market's catalog. Note the products that are excluded, or the products that are included in one market only.
  2. Note any collection that is made up mostly of those products. A collection page will still load in the other market, but it can be empty, which reads as broken.
  3. Pick one of the products and open it in a private window with ?geobeacon=DE on the end of the URL, replacing DE with a country from the market where it is not sold. GeoBeacon then behaves as it would for a visitor from that country. Accept the popup and see where you land.
  4. Repeat in the other direction if both markets have products the other lacks.

The override parameter is explained with the other testing methods in testing without a VPN.

Fix one: keep GeoBeacon quiet on those pages

In GeoBeacon, open Behaviour and find Exclusions. The field labelled Never act on these paths takes one path per line. Add the products and collections from your list:

  • /products/us-gift-set
  • /collections/us-exclusives

A path matches when the page address starts with it, and the market subfolder is ignored, so /products/us-gift-set covers the same product under /en-ca as well. On an excluded page the script does nothing: no popup, no redirect. The German visitor sees the American product page in dollars, which is at least the page they asked for. When they move on to the home page or another product, the rule applies as usual.

The prefix match can save typing if you plan for it. Give market-only products a common start to their handle, such as us-, and one line, /products/us-, covers all of them, including the ones you add next year. Check that no product sold everywhere begins the same way. The exclusions post has the matching rules in full.

Fix two: make the not-found page useful

Exclusions only help with links that arrive on the product page. Shoppers also change country themselves, with the country selector in your footer, while standing on a product that the other market lacks. GeoBeacon is not involved in that, and the result is the same not-found page.

So treat the not-found page as a page shoppers will see. In the theme editor, open the 404 template and give it a search box, a link to your main collection, and a line that says the product may not be available in the selected country. Most themes ship this template nearly empty. Ten minutes there helps every broken link, not only the ones caused by markets.

Fix three: say it in the popup

If a large share of the range differs by market, tell shoppers before they switch. The popup text is yours to write. A second sentence such as "Some products are only available in certain countries" sets the expectation, and the stay button gives them a way to keep looking at what they came for. The copy examples post has wording you can adapt.

Which fix for which store

SituationWhat to do
A handful of market-only productsAdd each path to Exclusions
A whole market-only rangeShared handle prefix and one exclusion line, plus the collection
Catalogs differ widely between marketsPopup mode, a line in the popup text, a helpful 404 page
Catalogs are the same everywhereNothing. The path exists in every market

What not to do

Do not solve this by turning the rule off for the whole country. The German visitor who lands on a product that is sold in Germany should still be offered euros. And do not publish a market-only product to every catalog just to avoid the error, if the reason it was excluded is that you cannot ship it. An order you have to cancel is a worse outcome than a not-found page.

The general rule is short. A country switch keeps the page, so every page a rule can act on should exist in the market the rule points to. Where it does not, exclude it. You can try the exclusions and the override parameter on your own store with GeoBeacon, which is free while it is in early access.

Frequently asked questions

Why does a product page show 404 after the country changes on Shopify?

The product is not included in the catalog of the market the shopper was moved to. The URL path is the same, but in that market the product is not published, so Shopify answers with the theme's not-found page. Check the product's market availability, or the market's catalog, in the Shopify admin.

Does GeoBeacon check that the page exists in the target market?

No. It asks Shopify to switch the market and to return the shopper to the same path and query string. It has no view of which products each market's catalog contains, so a product that is missing from the target market lands on that market's not-found page.

How do I stop the geolocation popup on products sold in one country only?

Add their paths to the Exclusions list in GeoBeacon's Behaviour settings, one per line, for example /products/us-gift-set or /collections/us-exclusives. The script then stays silent on those pages for every visitor, and the shopper keeps browsing the market they opened.

Should I use popup or automatic redirect if catalogs differ by market?

Popup. With an automatic redirect the shopper is moved before they can see the page they clicked, and if it does not exist in their market they only see an error. With the popup they see the product first and can choose to stay.