Test a geolocation popup on a password-protected store

The last two weeks before a store opens are spent behind a password page. The theme is nearly done, markets are set up for three countries, a friend in Toronto has the password and a list of things to click. Somewhere on the list is the geolocation popup, and nobody is sure how to check it. The store is closed. Does the popup even run?

It does, with one exception that is easy to remember. This post explains what GeoBeacon does on a password-protected store, where it deliberately stays quiet, and a way to test every rule from your own desk before the password comes off.

What the password page changes

When password protection is on, Shopify sends every visitor without the password to one page, at the path /password. After they enter the password, the storefront behaves as it will after launch: the same theme, the same markets, the same app embeds.

GeoBeacon keeps a short list of paths where it never acts, because switching country there would break what the shopper is doing. Checkout and the cart are on it. So are customer accounts, app proxy pages and the bot challenge page. The password page is on it too.

Where the popup can appear on a store that is not open yet
PlaceDoes the popup or redirect run?
The password pageNever
Storefront pages after entering the passwordYes, according to your rules
The theme editorNo rules run. A sample popup is shown if the preview setting is on.
Cart, checkout and customer accountsNever

Why the password page is left alone

Picture the alternative. A visitor from Canada arrives at a closed store and, before they can type the password, a popup offers to take them to the Canadian market. Accepting it loads the Canadian version of the same password page. Nothing was gained, and the one thing the visitor came to do was interrupted.

In automatic redirect mode it would be worse. People would be moved between market URLs before they had seen a single product, and a tester would have a hard time telling whether the redirect or the password form was misbehaving. A closed store has one job, which is to ask for the password. The script lets it.

Testing each rule from your desk

You do not need testers in other countries, and you do not need a VPN. GeoBeacon accepts a country in the URL and treats the visit as if it came from there.

  1. Open the store and enter the password.
  2. In the Shopify admin, open the theme editor for the theme you will launch with and check that the GeoBeacon app embed is switched on. Embeds are set per theme, as the post on popups that vanish after a theme change explains.
  3. Go to any storefront page and add ?geobeacon=CA to the address. You should see what a Canadian visitor would see: the popup with your texts, or the redirect if that is your mode.
  4. Repeat with one country from each rule, one country that only the catch-all rule covers, and one country no rule covers. The last should produce nothing at all.
  5. Accept the popup once per destination and check where you land: the right market URL, the right currency in the header, the right language.

A visit forced this way is not remembered. You can run ten countries in a row in the same browser and each one starts clean, which is what you want when testing. The full method, with the cases it cannot cover, is in testing a redirect without a VPN.

Turn on Log decisions to the browser console in the app embed settings while you test. Each page view then prints one line saying what the script decided and why. On the password page the line reads skipped: excluded-path, which is the confirmation that the exclusion is doing its work. The post on the console log lists every reason you can meet.

Four things that trip people up before launch

The market is not active yet

A rule that sends visitors to a market checks that the country is one your storefront offers right now. If the Canada market is still being prepared and has not been activated, Canada is not on that list, and the rule does nothing. The console shows country-not-offered. This is the most common pre-launch surprise, and it is a correct answer: there is nowhere to send the shopper yet. Activate the market, or note the rule as untested until you do.

The theme you are testing is not the published one

Many teams build the launch theme as an unpublished copy and view it through a preview link. The app embed setting belongs to each theme, so switch it on in the theme you are previewing, and again in whichever theme ends up published. An embed that is on in the old theme and off in the new one is the classic reason a popup disappears on launch day.

The theme editor shows a sample

Inside the theme editor no rules are evaluated. If Preview popup in the theme editor is on, you see a sample popup for Canada so you can adjust colours and texts. It appears whichever countries your rules cover, and it says nothing about whether they work. Use it for design and the storefront for behaviour. Styling is covered in the theme editor settings post.

Automated checks see nothing

If the agency runs automated browser tests against the staging store, those sessions are skipped when the option to skip bots is on, because an automated browser identifies itself as one. A screenshot tool that shows no popup is not evidence of a fault. Check with a normal browser.

What your testers will see

Anyone with the password is a real visitor as far as the script is concerned. Your friend in Toronto gets the genuine experience: detected as Canadian, offered the Canadian market, remembered for the number of days you set. That is useful, since it is the only test that involves real detection from a real network.

It can also confuse a reviewer who was asked to proofread product pages and keeps being moved to another market. Two links help. A link ending in ?geobeacon=off opens that page with the script silent, so the reviewer sees the default storefront. And a link with a forced country shows a specific market's popup to someone who is not there. Put both in the testing notes next to the password.

Remember your own browser too. If you accepted or dismissed the popup without a forced country during setup, that choice is stored for the remember period, and the popup will not return until it expires or you clear the site data. A private window gives you a first visit again. More on that in how long a choice is remembered.

Search engines and a closed store

While the password is on, crawlers cannot reach your pages, so nothing the popup does has any effect on search. The question matters from the hour you open. If you chose automatic redirects, read redirects without hurting SEO before launch day, while changing the mode costs nothing. A popup is the safer default for a new store with no traffic history.

The hour you remove the password

Nothing in GeoBeacon needs switching on at launch. The rules, the embed and the texts are already live behind the password, and they simply start meeting more visitors. A short list for that hour:

  1. Remove the password and open the storefront in a private window. The home page should load with no popup if you are in your home market.
  2. Add a forced country for each market and confirm the popup once more on the public URL.
  3. Check that every market you wrote a rule for is active.
  4. Confirm the app embed is on in the published theme, not only in the copy you tested.
  5. Turn off console logging. It is harmless, but there is no reason to leave it on.
  6. Ask one person abroad to visit without any parameter and tell you what they saw.

If you later put the password back, for maintenance or between seasonal drops, the same rule applies in reverse. The password page shows no popup, and everything behind it keeps working for those who have the password.

In short

A password-protected store is a good place to test geolocation rules, because everything except the password page behaves as it will in public. Force a country in the URL, read the console line, check where each rule lands, and make sure the markets and the theme you tested are the ones that go live. Then the popup is one item on the launch list that is already ticked.

Frequently asked questions

Does a geolocation popup show on the Shopify password page?

No. GeoBeacon never runs on the password page. A visitor who has not entered the store password sees only that page, with no popup and no redirect. Once they are inside, the popup follows your rules on every other storefront page.

Can I test geolocation rules before my Shopify store is launched?

Yes. Enter the store password, then add ?geobeacon= and a two-letter country code to any storefront URL, for example ?geobeacon=CA. The script treats you as a visitor from that country and shows what your rules would do. No VPN is needed.

Why does my rule do nothing on a store that is not live yet?

The usual cause is a market that is not active. A rule that sends shoppers to a market only acts when that country is among the countries your storefront currently offers. Activate the market, or test with a country that is already offered, and the rule responds.

Should I turn the geolocation app off until launch day?

There is no need. Behind the password page the only people who can see the popup are those you gave the password to. Leaving it on lets them test it with everything else. If reviewers find it distracting, give them a link with ?geobeacon=off.