Geolocation popup and newsletter popup on one Shopify store
By Beacon Wave Studio · · 7 min read
A shopper from Germany lands on your .com store for the first time. Before the hero image has finished loading they have a cookie banner along the bottom, a country popup in the middle asking whether they want the EU store, and a newsletter popup sliding in over both to offer ten percent off. Three decisions, zero products seen. Most of them pick the one with the biggest X.
Each of those boxes was added by a different person for a good reason. The problem is only that they arrive together. This post is about running a geolocation popup from GeoBeacon next to a newsletter popup and a consent banner so that a first visit has at most one thing to answer at a time, and most visits have nothing.
Three popups, three different jobs
It helps to be clear about what each box is for, because the order follows from it.
- The consent banner is a legal requirement in many regions and often gates the other two: a newsletter app that drops a tracking cookie may have to wait for it. It is usually anchored to an edge rather than centred, and it is the one you have least control over. The cookie banner post covers how GeoBeacon sits alongside it.
- The country popup corrects something about the page the visitor is already looking at: currency, shipping destination, language, sometimes which store entirely. Its value drops with every second, because every second is spent reading the wrong prices. It needs one answer and then it should disappear for a month.
- The newsletter popup asks for something. It has no urgency at all; a visitor who has seen two products and a price in their own currency is far more likely to give an email than one who has seen nothing. It benefits from being late.
One box fixes the page, one asks a favour, one is a formality. The one that fixes the page goes first, the favour goes last.
When GeoBeacon opens, and why it does not wait
GeoBeacon's storefront script runs when the page's HTML has loaded. It checks whether there is anything to do at all, asks Shopify which country the visitor appears to be in, and if a rule matches it either opens the popup or redirects. There is no delay setting and no scroll trigger, and that is deliberate. A country popup that appears after twenty seconds interrupts a visitor who has already chosen a product in the wrong currency; it is the one message that should come before the content, not after it.
It is also quick to be done with. The popup has two buttons, the default copy is a single sentence, and closing it in any way counts as an answer: Stay here, the Escape key and a click on the dimmed background all mean stay. Whatever the choice, GeoBeacon stores it in the browser and does not ask again for the remembered period, 30 days unless you change it. The remembering post discusses that number. For this topic the point is that the country popup is a one-time cost per visitor per month, not a per-visit one.
Make the newsletter popup wait
Since GeoBeacon will not move, the newsletter popup has to. Every mainstream email app has a trigger setting; use one of these, in order of preference:
- Second page view. Show the newsletter form only to visitors who have viewed at least one more page. By then the country question has been answered or remembered, and the visitor has demonstrated some interest. This is the cleanest separation.
- Scroll depth. Trigger at 40 to 50 percent of the page. A visitor who scrolls that far has read something, and the country popup, if there was one, is long gone.
- A timer of at least fifteen seconds. Weaker, because a slow reader may still be deciding on the country popup, but far better than the two to five second defaults many apps ship with. GeoBeacon's popup is answered in under five seconds by most people, so fifteen leaves room.
- Exit intent on desktop. The newsletter asks for something as the visitor leaves, which never collides with a popup that opens on arrival.
Avoid the one setting that guarantees a collision: showing the newsletter popup immediately on the first page view. If the app offers nothing else, exclude the landing pages where the overlap happens, which is the next section.
Use pages to separate them
GeoBeacon can be kept off specific paths with its exclude paths setting, and the exclude pages post goes through the syntax. The usual use is keeping it off checkout and account pages, but it works just as well for popup hygiene. If a campaign landing page carries a newsletter form that must fire on arrival, exclude that path from GeoBeacon; visitors arriving there have already been targeted by country in the ad, so the country question is mostly answered.
The reverse also works. Many email apps let you restrict the popup to certain page types. Restricting it to product and collection pages, and keeping it off the home page, means the home page shows only the country popup and the newsletter form appears once the visitor has moved into the catalogue.
Position, so that even an overlap is survivable
Sometimes the overlap cannot be fully engineered away: a consent banner that must appear first, a newsletter app with a stubborn trigger. In that case make sure the boxes do not sit on top of each other. GeoBeacon's popup can be placed in the centre, at the top or at the bottom of the viewport. If your consent banner is at the bottom and your newsletter popup is centred, put the country popup at the top, where it reads as a notice bar rather than a modal and leaves both other boxes visible.
GeoBeacon's popup is drawn above almost everything else on the page, so a theme element will not cover it. Two apps that both insist on being on top will stack in whatever order the browser decides, which is why timing and pages are the real fix and position is the fallback. Keeping the country popup short matters here too: its text fields are capped, and the popup copy post has examples that fit in a sentence.
Or remove the country popup from the first visit entirely
GeoBeacon has a redirect mode as well as a popup mode, per rule. In redirect mode a visitor from a matched country is sent to the right store without being asked, which takes one box out of the first visit altogether. The popup versus redirect post weighs it up properly. The short version: redirect when a country has one obvious store and nothing to discuss, pop up when a visitor might reasonably want to stay. Shopify's own automatic redirection for Markets takes a similar view, redirecting rather than asking, and the trade-offs are the same.
Redirecting also helps the newsletter popup indirectly: the visitor lands on the correct store and sees that store's popups in its own order, instead of answering a country question on one store and then a newsletter question on another.
A first visit that works
Put together, a visitor from Germany on the .com store sees this: the consent banner along the bottom, which they accept or dismiss; the GeoBeacon popup in the centre asking whether they want the EU store, answered with one click; the EU store, with prices in euros. The newsletter popup appears on their second page there, or when they scroll past the fold, and is answered by someone who has already decided to look around. Next month, when they come back, there is no country popup at all, because GeoBeacon remembers.
Three boxes still exist. None of them arrive together, and only one of them asks for anything. That is the whole trick, and most of it is a trigger setting in your email app rather than anything in GeoBeacon.
Frequently asked questions
Which popup should a first-time visitor see first, country or newsletter?
Country. It fixes the currency, shipping and language the visitor is about to look at, so it has to come before anything else they read. GeoBeacon opens as soon as the page has loaded; set the newsletter popup to wait, either on a timer of fifteen seconds or more, or until the visitor has scrolled or viewed a second page.
Can I delay the GeoBeacon popup to avoid overlapping with my email popup?
No, GeoBeacon has no delay setting. It opens at page load because a late country popup is worse than an early one: by then the visitor has read prices in the wrong currency. Delay the newsletter popup instead, which every email app allows, or exclude the landing pages where the two would collide.
Does the geolocation popup come back if the visitor closes it?
Not for the remembered period, 30 days by default. Clicking Stay here, pressing Escape or clicking outside the box all count as a choice and are stored in the browser, so a returning visitor sees no country popup at all until that period ends or they clear site data.
Should I turn off the geolocation popup and use redirect mode so there is one fewer box?
It is an option when every country in a rule has an obvious single store, and it removes one popup from the first visit entirely. Where a visitor might legitimately want the other store, a popup that remembers the answer for 30 days is still the kinder choice. Either way the newsletter popup should wait.