Email campaign links and geolocation popups on Shopify

The Black Friday email goes to 18,000 people on Thursday night. Every link in it was checked: the hero goes to the sale collection, the buttons go to three products, the UTMs are in place. What nobody checked is where the subscribers are. Most are at home. Some moved abroad two years ago and never changed anything. Some are on a work trip. A few signed up while on holiday in your country and live somewhere else entirely.

For those people, the click passes through whatever geolocation logic the store runs before they see the page you designed. This post follows an email click through GeoBeacon step by step, shows the cases where a popup or redirect is right, the cases where it gets in the way of a campaign, and the two settings that deal with the second group.

What an email click looks like to the store

Three things identify a visit to a geolocation script: the country Shopify detects for the visitor, the market the URL opens, and whether this browser has already made a choice. An email click differs from other traffic in all three.

  • The link was chosen by you, in advance. A search result is localised by Google per searcher. An email link is one URL for everyone on the list, unless you segmented by country.
  • The referrer is useless. Email tools route clicks through a tracking domain, and mail apps often send no referrer at all. The store cannot tell the visit came from an email except by the UTM parameters, and GeoBeacon does not read those.
  • The browser may be new. Subscribers are usually past visitors, so many have a remembered choice. But a mail app that opens links in its own built-in browser has separate storage, and there the shopper is a first-time visitor again. The post about phones, laptops and in-app browsers explains why.

Four subscribers, one link

Take a store with a primary market in the United States, a German market under /de-de, and a rule that offers German visitors the German market. The email links to the US sale collection.

SubscriberDetected countryWhat happens
At home in ChicagoUSNothing. Already on the right market.
In Munich, clicked before and chose to stay on the US storeDENothing. The choice is remembered for this browser.
In Munich, first visit in this browserDEPopup mode: one question offering the German market. Redirect mode: moved to /de-de with the same path and query string.
American on a week's trip to BerlinDESame as the row above, which is the wrong guess.

Rows three and four look identical to any script, because location is all it has. That is the standing argument for asking instead of redirecting: the Munich resident says yes, the traveller says no, and both are right. Shopify's own guidance on automatic redirection describes the same trade-off for its built-in feature.

The campaign survives the switch

The usual fear is attribution: a subscriber is moved to another market and the visit shows up as direct traffic. When GeoBeacon switches market, it keeps the path and the query string, so a link to /collections/sale?utm_source=newsletter&utm_campaign=bf26 becomes the same collection under /de-de with the same parameters. Your email tool's click identifier is carried the same way. The mechanics are the same as for ad clicks, covered in the post on UTMs and gclid.

One case does lose the page: a rule that sends a country to a separate store on another domain with Keep path switched off. Then everyone lands on that store's home page whatever they clicked. If you run separate stores and send one email to a mixed list, check that setting, and check that the campaign page exists on the other store at the same path.

When the popup is in the way

For an ordinary newsletter, the behaviour above is what you want. A German subscriber is better served by German prices and shipping, and the sale is on in both markets. There are campaigns where it is not:

  • A market-specific offer. Free shipping this weekend for US orders, sent to the whole list. The page explains a US offer. Offering to move a reader to another market, where the offer does not apply, confuses the message.
  • A page that is the same everywhere. A brand story, a lookbook, a competition entry form, a store event. Nothing on it depends on market, so the question buys nothing.
  • A segmented send with deliberate links. You sent the German list links to /de-de and the US list links to the US store. You already made the decision the script is about to make.
  • A second popup on the same page. If the landing page also opens a discount or signup popup, a subscriber abroad gets two in a row. The popup fatigue post goes into that.

Setting one: exclude the campaign page

In the app, under Behaviour, the Exclusions section has a field labelled Never act on these paths. Each line is the start of a path. Add /pages/black-friday and the script does nothing on that page, in any market, for any visitor. The market prefix is removed before the comparison, so one line covers /pages/black-friday and /de-de/pages/black-friday.

Because a line matches the start of a path, /pages/campaign covers /pages/campaign-spring and /pages/campaign-vip as well. A store that names every campaign page with the same prefix needs to set this once. The guide to excluded pages has the full rules.

Exclusion is by page, not by visitor. When the subscriber clicks from the campaign page to a product, the product page is evaluated as usual. For most campaigns that is the right moment: they have read the offer and are now shopping, and currency and shipping start to matter.

Setting two: one quiet link

Sometimes the destination is not a page you can exclude. The email links straight to a collection, and you want geolocation on that collection for everyone else. Add geobeacon=off to the link:

/collections/sale?utm_source=newsletter&utm_campaign=bf26&geobeacon=off

The script sees the parameter and stays silent for that page view. Be clear about its limits. It saves nothing in the browser, so it is not a remembered choice, and the next page the shopper opens is evaluated normally. It delays the question by one page; it does not cancel it. That is often enough, because the first page is the one the email promised.

Put it after the UTMs, joined with an ampersand, and write it in lower case. Most email tools let you append parameters to every link in a campaign in one setting, next to where the UTMs are configured.

Which to use

SituationUse
Dedicated landing page for the campaignExclusions list
Email links to normal collections or productsgeobeacon=off on the links, or nothing
List segmented by country with market-specific linksNothing needed for residents; geobeacon=off if travellers matter
Ordinary newsletter, same offer in every marketNothing. Let the popup ask once.

Test the send before the send

  1. Send yourself the campaign as a test and copy a link from it, tracking redirect and all.
  2. Open a private window, paste the link and add a simulated country: &geobeacon=DE. The script behaves as it would for a first-time visitor from Germany and saves nothing.
  3. If the email tool's tracking redirect drops the extra parameter, wait for the final store URL to load, then add it there and reload.
  4. Check the three things that matter: the page you land on is the page you linked, the UTMs are still in the address bar, and the popup appears or stays away as you intended.
  5. Repeat with the link that carries geobeacon=off, without the simulated country, to confirm the tracking redirect passes it through.

A simulated country and the off switch use the same parameter, so a link cannot carry both. Test them separately.

What you cannot fix from the store

A subscriber who lives abroad and keeps receiving links to the wrong market is a list problem. Geolocation corrects it one click at a time. The durable fix is in the email tool: segment by the country on the last order or the shipping address, and send each segment links to its own market. The store then confirms a decision you already made, and the only people who see a question are the ones who are away from home.

Until then, GeoBeacon does the modest thing. It asks once per browser, keeps the campaign parameters intact whichever way the shopper answers, and stays off the pages you tell it to leave alone.

Frequently asked questions

Will a geolocation popup show to subscribers who click an email link?

Only when the country Shopify detects for the click differs from the market the link opens, and the browser has no remembered choice. A subscriber in Germany who clicks a link to your German market sees nothing. A subscriber travelling in Spain who clicks the same link may be offered the Spanish market, once.

Do UTM parameters from an email survive a GeoBeacon market switch?

Yes. When a shopper is moved to another market, by redirect or by accepting the popup, GeoBeacon keeps the path and the query string, so utm_source, utm_campaign and the email tool's own click identifiers arrive on the destination page and the visit is attributed to the campaign.

How do I stop the popup on a campaign landing page?

Add the page to the Exclusions list in GeoBeacon's Behaviour settings, for example /pages/black-friday. The script stays silent on that page in every market. For a single link, add ?geobeacon=off to the URL, which silences the script for that one page view only.

Does ?geobeacon=off switch the popup off for the rest of the visit?

No. It applies to the page view whose URL carries it and saves nothing in the browser. When the shopper clicks through to a product, that page is evaluated normally. Use the Exclusions list when a whole section of the store should stay quiet.