Why a shopper sees your geolocation popup twice
By Beacon Wave Studio · · 7 min read
A customer writes in, slightly annoyed. She told your store on Monday that she wanted to stay on the UK site. On Wednesday it asked her again. You check the settings and the remember period is 30 days. So what happened?
On Monday she tapped an ad in Instagram on her phone. On Wednesday she opened her laptop to buy. Those are two browsers that share nothing, and GeoBeacon remembered her answer in the first one. This post lists the situations where one person shows up as several browsers, which of them you can do something about, and which you should stop worrying about.
The answer is kept in the browser
When a shopper clicks a button in the popup, GeoBeacon writes one small entry to that browser’s local storage for your store’s domain: the choice and the time it expires. On every later page the script reads the entry first, and if it has not expired it does nothing at all. No detection, no popup. The details of the entry and the remember period are in how long to remember a shopper’s choice.
Nothing leaves the browser. That is the privacy argument for doing it this way, and it has a cost: the store has no idea that the phone on Monday and the laptop on Wednesday belong to the same person. A system that did know would need an account, a tracking cookie or a fingerprint, and each of those brings a consent question a small popup should not need.
Six ways one shopper becomes two browsers
| Situation | Why the answer is missing | How common |
|---|---|---|
| Phone, then laptop | Separate devices, separate storage | Very, for considered purchases |
| Instagram, Facebook or TikTok, then Safari or Chrome | In-app browsers keep their own storage | Very, for stores that advertise on social |
| Two browsers on one computer | Chrome cannot read what Safari stored | Occasional |
| Private or incognito window | Storage is discarded when the window closes | Occasional |
| Safari after a week away | Safari removed the script-written entry | Depends on how often shoppers return |
| Shopper cleared site data, or storage is blocked | The entry was deleted, or never written | Rare |
In-app browsers
This is the one that catches stores running paid social. A link tapped inside Instagram opens in Instagram’s own built-in browser, not in Safari or Chrome. The shopper answers the popup there. Later they type your address into their normal browser, or tap a link in your email, and arrive somewhere that has never seen them. From their side they have been asked twice by the same store on the same phone.
You cannot merge the two. You can make the first answer matter less, which is covered below.
Safari’s seven days
Safari limits how long a site’s scripts can keep data. Since 2020, WebKit deletes all script-writable storage for a site after seven days of Safari use without the person interacting with that site. Local storage is on the list. A shopper who answers your popup on an iPhone and comes back three weeks later can find the entry gone, whatever remember period you chose.
A visit with a tap or a click restarts the count, so regular customers are unaffected. The people who lose the entry are the ones who visited once and returned much later, and asking them again after three weeks is not unreasonable.
Private windows and blocked storage
A private window starts empty and throws its storage away when it closes, so every private session is a first visit. A few browsers and extensions go further and refuse storage entirely. GeoBeacon does not fail in that case. It carries on without a memory, which means the popup can appear on each page until the shopper leaves the pages that match a rule. These visitors are few, and they chose a setup where sites forget them.
Separate domains per market
Local storage belongs to a domain. If your markets live in subfolders, example.com/en-gb and example.com/en-ca, they share one domain and one entry. If they live on separate domains, example.co.uk and example.ca, each domain keeps its own. A shopper who answered on the .co.uk site has no entry on the .ca site.
In practice this matters less than it sounds, because a rule only fires when the detected country and the current store disagree. A Canadian who accepted the offer and landed on the .ca site is where the rule wanted them, and nothing is shown. How market URLs are set up is on Shopify’s side, under Markets and automatic redirection.
What you can change
- Make declining cheap. A shopper asked twice minds much less when the second time takes one tap. Keep both buttons visible, label the stay button plainly, and keep the text to one sentence.
- Prefer a bar to a centred card. A bar at the top or bottom leaves the page usable. A repeat question that does not block anything is easy to ignore.
- Use popup mode if you advertise on social. In redirect mode the in-app browser and the real browser each redirect once, and the shopper has no button to say no. The selector versus popup post explains why a visible country selector has to exist either way.
- Point ads at the right market. An ad shown to Canadians that links to the Canadian store triggers no rule in any browser. This removes the first popup, not only the second.
- Leave the remember period near 30 days. Raising it to a year changes nothing for a browser that never had the entry.
What not to do
Do not reach for a cookie set by a server, a login prompt or a device fingerprint to make the answer follow the person. Each one turns a courtesy question into tracking, and tracking needs consent in the EU and the UK. The trade is poor: you would ask for consent in order to avoid asking a simpler question.
Do not switch the popup off for mobile to hide the in-app case either. Mobile is where most international visitors arrive, and they are the ones the rule exists for.
Check it yourself
- Open your store in a normal window from a country that matches a rule, or add
?geobeacon=CAto simulate one. A simulated visit is never remembered, so use a real one for the next steps if you can. The options are in testing without a VPN. - Answer the popup and reload. It should stay quiet.
- Open the same page in a second browser on the same computer. The popup appears, because that browser has no entry.
- Open it in a private window, answer, close the window, and open a new private window. It appears again.
- Send yourself the link in an Instagram message and tap it on your phone. That is the in-app browser, and it is a third first visit.
Turn on the console log option in the block settings while you do this and the script prints why it stayed quiet or acted on each page. A remembered answer shows up as a skip.
A shopper who is asked on two devices has been asked twice in total. That is the price of a popup that keeps no record of anyone, and with GeoBeacon set to ask once per browser, in one sentence, with a clear way to say no, it is a small one.
Frequently asked questions
Why does my geolocation popup appear again for a shopper who already answered it?
The answer is stored in the browser where it was given. A different device, a different browser on the same device, an in-app browser such as Instagram’s, or a private window has no record of it, so the popup is shown there as a first visit. Safari can also remove the stored answer after seven days without a return visit.
Can GeoBeacon remember a shopper’s country choice across devices?
No. GeoBeacon has no accounts, no cookies and no server in the shopper’s path, so there is nothing that could tie a phone to a laptop. The choice is one small entry in the browser’s local storage for your store’s domain. A shopper with two devices is asked once on each.
Does Safari forget the choice sooner than the remember period I set?
It can. Safari deletes storage written by scripts for a site the person has not interacted with for seven days of Safari use. A shopper who returns within that time keeps the entry, and each visit restarts the count. A shopper who returns after it may be asked again even if your remember period is 30 days.
Should I set a very long remember period to stop repeat popups?
It helps less than expected. A longer period only affects browsers that keep the entry, and the repeats merchants notice come from new browsers, in-app browsers and private windows, which never had it. Thirty days is a sensible default. Making the popup quick to decline does more than extending the period.