Geolocation popups inside Instagram, TikTok and WhatsApp
By Beacon Wave Studio · · 7 min read
A growing share of storefront visits never touch Safari or Chrome. They start as a link in a WhatsApp chat, a product tag on Instagram, a TikTok bio, a Snapchat ad, and they open in the browser built into that app. Shopify's 28 October 2026 changelog added Microsoft Advertising and Snapchat to Campaign Autopilot, with X Ads to follow, which means more paid clicks arriving through exactly those browsers. For a store running a geolocation popup or redirect with GeoBeacon, there are two different things hiding behind one link: the preview fetcher that reads the page to draw a card, and the shopper who taps it. This post is about telling them apart, and about what the shopper's browser does and does not remember.
Two visitors per link
When someone pastes your product URL into WhatsApp, the app fetches the page once, from a server, to build the preview with the title and image. Facebook, Telegram, Discord, Skype and Pinterest do the same. That fetch is not a shopper. It has no country worth acting on, it will not click a popup button, and if a redirect fires on it the preview card may end up showing the destination page rather than the one that was shared. Then a person taps the card, and that is a shopper, in a browser that lives inside the chat app.
GeoBeacon separates the two with its bot check, which is on by default under Behaviour as Ignore bots and crawlers. The script tests the browser's user agent string against a pattern that covers the generic words, bot, crawl, spider, headless, preview and lighthouse, and the named fetchers: facebookexternalhit, WhatsApp, Telegram, Discord, Skype, Pinterest, Embedly and the command line tools curl, wget and python-requests. A browser driven by automation that sets the webdriver flag counts too. A match stops the script before any detection happens and logs the reason as bot, which you can see in the console log described in every skip and decision reason.
The practical result: preview cards are built from your page as the default market shows it, with no redirect and no popup markup in the way, and your ad platform's link checker, which usually identifies itself with one of those words, sees a normal page.
The in-app browser is a real browser
The person tapping the card is in a WebView, a stripped down browser the app embeds. Instagram, Facebook, TikTok, Snapchat and WhatsApp all have one. Their user agents are the device's normal mobile browser string with an app token added, and none of those tokens match the bot pattern, so GeoBeacon treats the visit as what it is: a shopper. Detection runs the same way as anywhere else, by asking Shopify's localization discovery endpoint for the suggested country and language, which Shopify derives from the connection and the browser's settings. The rules run, the popup shows or the redirect fires, exactly as in Safari.
Two things are different about the environment, and both are about space. The viewport is shorter, because the app keeps its own bar at the top and often one at the bottom, and there is no address bar. The first means a popup sized for a phone screen can sit lower than you expect and the stay option can be the part that is cut off; test it in the real app, not in a desktop browser's device mode. The second means a redirect to another domain gives the shopper no visible sign that anything changed, which is the strongest argument for the popup mode over the silent redirect for social traffic. The popup versus redirect post weighs that choice in general; inside an app, it tilts further towards the popup.
What the in-app browser remembers
When a shopper picks a country, or dismisses the popup, GeoBeacon stores that choice in the browser's local storage for the number of days set under Remember the visitor's choice. The detection result itself is cached for six hours in session storage, per tab. Both of those live in whichever browser made them. An in-app browser is a different browser from Safari on the same phone, with its own storage that the two do not share.
So a shopper who chose the UK store in Safari last week, then taps your link in Instagram today, is a new visitor to GeoBeacon and sees the popup once more. That is not a bug and there is no way around it short of the apps sharing storage with the system browser, which they do not. It is one more reason to keep the popup short and the choice obvious. After that first tap, the choice is kept inside the Instagram browser for the remember period, as long as the app keeps its web storage; apps clear it on their own schedule and a shopper who signs out or reinstalls starts again. How the remember period works in general is in how long to remember a shopper's country choice.
The opposite direction has the same effect. A shopper who taps Open in browser from the in-app menu lands in Safari or Chrome with whatever that browser remembers, which may be nothing, and gets the popup there if it is their first visit in it. The product page URL survives the hop; the choice does not.
Redirects to another store from inside an app
If a rule sends visitors from a country to a separate store on its own domain, the redirect works inside a WebView the same as anywhere. Two caveats. The confirmation step for external URLs, if you have it on, is a second tap in a cramped viewport, so keep its copy to one line. And when the redirect lands on a page that runs its own GeoBeacon, the referrer rule is what stops the second store from bouncing the shopper back; in-app browsers generally send the referrer on a same-tab navigation, so the known hosts list does its job, but it is worth a test from the actual app since referrer policies differ between them.
UTM parameters and the ad click
Paid social links carry tracking parameters, and a redirect that dropped them would blind your reporting for the clicks you paid most for. GeoBeacon keeps the query string when it redirects, so utm_source, utm_campaign and the platform click identifiers travel to the destination market or store. The Google Ads, UTM and gclid post covers that behaviour; the same applies to Snapchat's and Microsoft's click parameters, since the script copies the whole query string rather than a list of known names.
How to test it
- Send yourself the link in WhatsApp and wait for the preview card. The image and title should be the shared page's, not a redirected one. If they are wrong, confirm Ignore bots and crawlers is on and clear WhatsApp's preview by sending a slightly different URL.
- Tap the card. You should see the same popup you see in Safari, with the stay button fully visible above the app's bottom bar. Pick a country.
- Close the chat, reopen it, tap the link again. No popup: the choice was remembered inside WhatsApp's browser.
- Use Open in browser. In Safari the popup appears if you have not chosen there before. That is expected.
- Open the console log on a desktop, or use a remote inspector on the phone, and read the decision reasons for each step. A fetcher shows bot; a remembered visitor shows remembered; a first visit shows the rule that matched.
Repeat the first two steps from Instagram and from the ad platform's preview tool when you launch a campaign on a new channel. The bot pattern is deliberately broad, but a new platform's fetcher with an unusual user agent would be treated as a shopper, and the preview card is where you would notice.
What this does not change
Country detection is the same in every browser, in-app or not, and so are the rules; there is no separate setting for social traffic and none is needed. What differs is memory and space. Expect one more popup per app the shopper uses, design the popup so its choices survive a short viewport, and prefer asking over silently redirecting when the shopper cannot see the address bar. The changelog's list of channels at changelog.shopify.com will keep growing; the behaviour above covers whichever browser the next one ships with.
Frequently asked questions
Why does the geolocation popup show again when a shopper opens my link from Instagram?
Because the Instagram in-app browser has its own storage, separate from Safari or Chrome on the same phone. The remembered choice lives in the browser that made it, so the first visit through Instagram starts fresh. Later taps inside the same app reuse that choice for as long as the Remember setting says and the app keeps its storage.
Does the WhatsApp or Facebook link preview trigger a redirect?
No. The services that fetch a page to build a preview card identify themselves in the user agent, and GeoBeacon's bot check matches WhatsApp, Telegram, Facebook, Discord, Skype and Pinterest fetchers among others. With Ignore bots and crawlers on, they get the page as it is and no popup or redirect.
Is a shopper in the TikTok or Snapchat browser treated as a bot?
No. In-app browsers are real browsers with a real person behind them, and their user agents do not match the bot pattern. They get the same country detection, rules and popup as any mobile visitor, and the same remembered choice, stored in that app's own web storage.
Should I use a redirect or a popup for traffic from social apps?
A popup, in most cases. In-app browsers have a cramped viewport and no address bar to show a domain change, so a silent redirect to another store or domain is more disorienting there than on a desktop. A popup that names the country and the price currency, with a clear stay option, keeps the shopper oriented.