Geo Redirection

Ensure customers land on the right site for their region

This feature allows you to automatically redirect visitors to region-specific versions of your site based on their location. For example, you can send Canadian visitors to ca.merchant.com and UK visitors to uk.merchant.com. This ensures customers land on the right storefront, with the correct currency and localized experience.

To set up geo-redirects: 

  • Navigate to the multicurrency app (Apps > Shopify multi-currency)
  • Toggle on “Redirect based on Geolocation”
  • Ensure your default country is set
    • This defines the fallback for users not matched by any redirect, as well as the default country for users landing on the store for those who don't have a country set to their locale

    • Enter a 2-letter country code (e.g. US, FR, CA

  • Add redirects
    • For each country provide:
      • The country code in ISO format as it appears in Nyla properties
      • Domain URL (the destination the customer will be redirected, for example us.merchant.com, uk.merchant.com)
      • Optional: Add an OTHER rule to catch all unmatched countries that aren’t the default. To do this enter OTHER in the country field 

  • Save, queue and publish 

Key details: 

  • The user's IP address is checked to see whether it matches the default country code, and whether any redirection rule matches their detected country. The redirect happens server-side so no visit to the initial site is registered as an analytics event. 
  • If users manually specify their currency (e.g. by selecting it on each site's currency widget), then they will no longer be redirected. 
  • Adding ?redirect=false to any URL will temporarily prevent the customer from being redirected.
  • Adding ?locale=XX to any URL (where XX is the country code in ISO format) will save the user's preference, meaning they will not be redirected anymore.

Advanced Controls (via URL)

  • ?redirect=false — Temporarily disables automatic redirection

  • ?locale=XX — Sets preferred location to ISO country code (e.g., CA, FR)

  • Combine: ?redirect=false&locale=CA — Opt user into CA experience without triggering a redirect

How It Works

When enabled, Nyla checks the user’s IP address and compares it to your configured redirect rules:

User Location Redirected? Behavior
Matches a configured redirect ✅ Yes Redirects to that domain
Doesn’t match any rule, and isn’t the default country ✅ If OTHER is set Redirects to OTHER domain
Doesn’t match any rule, and is default country ❌ No User stays on current site
Doesn’t match anything and OTHER is not set ❌ No User stays on current site

Example Scenario

Your default country is US, and you configure:

  • CA → ca.merchant.com

  • UK → uk.merchant.com

  • OTHER → intl.merchant.com

A visitor from Canada will go to ca.merchant.com. A visitor from Germany (not explicitly listed) will go to intl.merchant.com. A visitor from the US will stay on www.merchant.com.