Why is the Geolocation app not redirecting properly on third visit?

Hello!

Something interesting is happening on a site I’m working on, I wanted to ask if someone has had the same experience or if you can check if the same happens to your stores or the stores you are working on, stores that use the Geolocation app from shopify.

This store has US as primary market and UK as a secondary market, this UK market has its own subdomain so, the primary is storename.com and the secondary is uk.storename.com

(I tested it using a VPN)
This is the case:
When opening the store for the first time (setting the VPN in US) but going to storename.com it automatically redirects me to the correct market and URL. (Works!)

If I open it for a second time, again going to storename.com it loads the store but a popup appears and send me to the correct market and URL. (Works!)

If I do this again for a third time, going to storename.com, I am not redirected nor does the popup appear and the store stays at the same URL (the primary market). (it doesn’t work!)

Has anyone else experienced this or has this happened to you before?
It’s an issue I’m facing and it’s giving a bad experience to the users, I installed another app and it works correctly, so it’s not a problem with the markets and the domains I think.

Please let me know if you have any comment about this!

Probably a cookie is set, stopping the redirection. You can change the cookie duration to session only so it would redirect every time. I can help you out if you send me a message.

I have a similar issue but the pop-up is disabled in my case. So customers are being redirected on the first visit but never redirected after that.

I found there’s a Cookie set by Shopify so I don’t think @SergeWebsites there’s anything we can do.

1 Like

There certainly are things we can do! We can unset the cookie with JS code, or force redirection even with the cookie set, for example.