Geolocation popup gone after a Shopify theme change?

The new theme went live on Monday. The redesign looks good, the menus work, checkout works. On Thursday someone notices that visitors from Canada are no longer being offered Canadian dollars. Nobody touched the rules. There is no error anywhere. The popup has simply stopped.

This is the most common way a working geolocation setup goes quiet, and it has one cause. This post explains it, lists what moves with a theme and what does not, and gives a short check to run every time you publish, update or duplicate a theme with GeoBeacon installed.

The switch belongs to the theme

GeoBeacon reaches your storefront through a theme app embed. Shopify describes embeds in its theme app extension documentation: the app supplies a block, and the merchant switches it on in the theme editor under App embeds. That switch is saved in the settings of the theme you were editing. It is not a store-wide setting.

A store usually holds several themes: the live one, last year's, a draft a designer is working on. Each has its own list of embeds that are on or off. Installing GeoBeacon and enabling it once turns it on for one theme. Publish a different theme and the storefront now runs on settings in which GeoBeacon was never enabled. The script is not loaded, so no rule is evaluated and nothing is logged.

What moves with the theme and what stays with the app

SettingWhere it is storedAfter switching to a new theme
Embed on or offThe themeOff until you enable it
Popup colours, corner radius, backdrop, flagThe theme, on the embedBack to defaults: white card, dark button
Preview popup in the theme editorThe theme, on the embedOn, the default
Log decisions to the browser consoleThe theme, on the embedOff, the default
Country rules and their orderThe appUnchanged
Popup or automatic redirect, popup textThe appUnchanged
Exclusions, remember period, bot handlingThe appUnchanged

So the work of a theme change is small: one switch, and a minute of restyling if you had matched the popup to your brand. The colours are worth a look on any redesign, because a popup styled for the old palette may be wrong for the new one even if it had carried over. The styling guide goes through each control.

Four ways a theme changes, and what happens to the embed

A new theme from the Theme Store or an uploaded file. The embed is off. This is the case in the story above, and the one to plan for.

A duplicate of your live theme. The copy has the same settings as the original, so the embed is on with the same colours. Editing the duplicate and publishing it later is safe.

A theme update. When Shopify updates a Theme Store theme, it adds the new version to your library and brings your theme editor settings across. The embed normally comes with them. Check anyway, since an update is also the moment a developer may have replaced files by hand.

A theme built with Canvas. Shopify's Canvas editor cannot add or configure app embeds yet. That is a different problem from a switch that is off, covered in the Canvas post.

Enable it before you publish, not after

You do not have to wait for launch day. An unpublished theme can be customised like the live one, and the embed can be switched on there in advance.

  1. In Online Store, Themes, click Customize on the theme you are about to publish.
  2. Open App embeds in the left sidebar and turn GeoBeacon on. A sample popup appears in the editor if Preview popup in the theme editor is ticked.
  3. Set the colours, corner radius and backdrop to suit the new design, and save.
  4. Open the theme's preview link in a private window and add a test country to the address, as described in testing without a VPN. The preview is a real storefront page, so the rules run.
  5. Publish. Then load the live store once more and repeat the test.

The link on GeoBeacon's home page in the admin opens the theme editor with the embed ready to enable, but it opens your live theme. For a draft, go through Themes and Customize on that draft instead.

The editor shows a sample, the preview shows the truth

Two views of a draft theme behave differently, and mixing them up leads to false alarms. Inside the theme editor, GeoBeacon never acts on rules. It shows a sample popup so that you can style it, or nothing if the preview box is unticked. A popup in the editor tells you about colours, not about whether Canadians will be switched.

The preview link, the one you can send to a colleague, loads the draft as a shopper would see it. There the script detects the country, checks exclusions and applies rules. If something is not firing, tick Log decisions to the browser console on the embed, save, and read the reason in the console. The console log reference lists every message. Remember that this setting is per theme too, so it will be off again on the next one.

How to tell this problem from the others

A popup that stopped for everyone on the day a theme was published is almost always the embed. A popup that stopped for one country is a rule or a market. A popup that you do not see but customers do is usually your own remembered choice. The quickest test is the page source: open the storefront, view source and search for geobeacon. If nothing is found, the embed is off on the live theme. If it is found, the script is loading and the cause is elsewhere; work through the not-working checklist.

Put it on the launch list

Theme launches come with a checklist: redirects, analytics, the cookie banner, the favicon. App embeds belong on it, and not only this one. Every app that works through an embed, such as chat buttons, review widgets and consent banners, has the same switch in the same panel. Open App embeds on the old theme and on the new one side by side, and make the second list match the first.

For GeoBeacon the whole job is one switch and a few colours, because the rules live with the app. If you are choosing a geolocation app and expect to change themes, that separation is worth having. You can try it on a draft theme with GeoBeacon, which is free while it is in early access.

Frequently asked questions

Why did my geolocation popup stop after I changed my Shopify theme?

App embeds are switched on per theme. The new theme has never had the GeoBeacon embed enabled, so the script is not loaded and nothing runs. Open the theme editor on the new theme, go to App embeds, turn GeoBeacon on and save.

Do I have to set up my country rules again on a new theme?

No. Rules, popup text, exclusions and the other Behaviour settings are stored with the app in your store, not in the theme. Only the embed switch and the settings on the embed itself, such as colours, corner radius and the flag, belong to the theme.

Does duplicating a theme keep the app embed on?

Yes. A duplicate is a copy of the theme with its settings, so the embed is on in the copy if it was on in the original, with the same colours. A theme added fresh from the Theme Store or uploaded as a file starts with the embed off.

Can I test the popup on an unpublished theme?

Yes. Enable the embed on the unpublished theme, save, and open the theme's preview link. The preview is a real storefront page, so GeoBeacon runs there as it would live. Inside the theme editor it only shows a sample popup.