Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Is there a way to remove or disable 'shpxid' tracking parameters in the url? These appears when visitors use external links to visit our Shopify store. This wouldn't be an issue if it didn't trigger a 302 when our partners share our alias domains and end up on our primary domain.
Also note, we only have one market active.
Hello!
The shpxid parameter and associated 302 redirects in Shopify, especially with alias domains, typically stem from Shopify Markets' "Automated redirections" setting, even if only one market is active. The primary solution is to disable this "Automated redirections" feature in your Shopify Admin under Settings > Markets > Preferences. While client-side JavaScript can clean the URL post-load, it won't prevent the initial 302 redirect. Disabling the automated redirects directly addresses the root cause.
Thanks for your response. I saw a reference to Shopify Markets in another thread but Settings > Markets > Preferences doesn't appear to be active in the current Shopify build. I found the direct link (https://admin.shopify.com/settings/market) but it now redirects to Markets on the main admin menu and I can't see any preference options. Do you know where "Automated redirections" settings are now found?
We have the same issue, but we don't seem to have preferences in markets, and I can't see anything about auto redirects.
Try disabling Online Store -> Preferences -> Automatic redirection
Wow, thank you James. You are wonderful. I wasn't sure whether to disable redirection to language, country, or both. I did both, and it worked.
Thank you James. You're a life saver!