How to Build a Store-Switcher Across Separate Shopify Stores + Keep Google MC & hreflang Clean?

Topic summary

A merchant is transitioning from a single Shopify store with Markets to separate stores on different domains (CA, EU, US) to support local payment methods, content, and fulfillment. They need solutions for three technical challenges:

1. Cross-store switcher implementation:

  • Requires a language/region selector that redirects users between separate domains (not Markets within one store)
  • Wants both manual toggle and optional auto-redirect based on geolocation
  • One commenter shared a live example (nile.ch / eu.nile.ch) using a popup selector before redirect

2. Hreflang tag configuration:

  • Needs proper cross-domain hreflang implementation so Google displays the correct regional store in search results
  • Current setup causes the primary site to compete with new regional stores
  • Recommendations include implementing hreflang tags on each store linking to corresponding regions and using canonical tags to prevent duplicate content indexing

3. Google Merchant Center setup:

  • Each domain requires separate product feeds with local pricing, shipping, and tax details
  • Suggested tools include Multi Store Hreflang Tags app, Multifeeds app, ShoppingFeeder, and DataFeedWatch

Technical solutions offered:

  • JavaScript-based manual region switcher with URL mapping
  • Geolocation API integration (ipinfo.io, MaxMind) for auto-detection
  • Apps like Geolocation Redirect, Langify, or GTranslate for automation

The discussion remains open with the original poster seeking redirect implementation guidance rather than feed management solutions.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I could really use some advice from merchants who run multiple Shopify stores.

Background

  • Until now we had one primary store with Shopify Markets enabled for Europe, the US and Canada.
  • Sales have grown fast, and each market now needs its own setup (local payment methods, unique content, local 3PL, etc.).
  • So we created dedicated stores on separate domains for CA, EU, etc.

The roadblock

  • We want a language/region switcher on every storefront that sends visitors to the correct domain (and lets them switch back).
  • If we keep everything inside a single store via Markets, Google Merchant Center won’t let us verify multiple domains in new GMC accounts.
  • If we move to separate stores, we need clean hreflang tags so Google shows the local store in each country—right now the primary site competes with the new ones.

What I’m looking for

  1. A proven way to add a store-level switcher (manual toggle + optional auto-redirect) that just jumps to the other domain, not another Market inside the same store.
  2. Best practice for cross-store hreflang so search engines pick the right site, not the main one.
  3. Any tips on keeping Google Merchant Center happy when each store has its own domain and feed.

Have you solved something similar? Which apps, theme edits, or custom scripts worked for you? Anything you’d avoid in hindsight?

Check https://www.digitaldarts.com.au/hreflang-tags-shopify – there is a lot of knowledge there and they have an app exactly for your situation https://apps.shopify.com/multi-store-hreflang-tags

It seems like you’ve already put a lot of effort into setting up your store. Here are some ideas and practices to help you address your current challenges:

1. Store-level Language/Region Switcher

To create an easy way to switch between stores on different domains, you can use either a manual toggle or auto-redirect based on the user’s location. Here’s how to set up both options:

Manual Toggle: This is a straightforward solution. You can add a dropdown or a language/region button in your store’s header or footer. When the user selects their region, the site will redirect them to the related domain. You can use JavaScript to adjust the URL based on the chosen region.

Example:

function switchRegion(region) {
var regionUrls = {
'CA': 'https://ca.yourstore.com',
'EU': 'https://eu.yourstore.com',
'US': 'https://us.yourstore.com'
};
window.location.href = regionUrls[region];
}

Auto-Redirect: For automatic region detection, you can use the user’s IP address to redirect them to the right domain. A geolocation API like ipinfo.io or MaxMind can help find the region. When a user first visits your store, it can auto-redirect based on their location but still provide a manual switch if necessary.

Example:

fetch('https://ipinfo.io/json?token=your_token')
.then(response => response.json())
.then(data => {
const region = data.country;
if (region === 'CA') {
window.location.href = 'https://ca.yourstore.com';
}
// Add additional conditions for other regions
});

2. Best Practices for Hreflang Tags

To help Google recognize the regional versions of your site, follow these steps for hreflang tags:

Implement hreflang on each store: Each store should have hreflang tags that link to the corresponding regions. You can add this in the <head> section of your HTML or through HTTP headers. For example:


Link hreflang tags across stores: Ensure that each store includes hreflang tags pointing to the other regional domains. This prevents Google from favoring the main store over the regional stores.

Self-referencing hreflang tags: Each page in your store should have a self-referencing hreflang tag that points to its own URL. This indicates that it is the correct regional page.

3. Google Merchant Center & Multiple Domains

Google Merchant Center Account Setup: Since each store uses a different domain, you’ll need a separate Google Merchant Center account for each one. Each account must be verified with its respective domain, and you need to ensure proper product feeds for each domain.

Separate Product Feeds: Set up individual product feeds in Google Merchant Center for each domain. For example:

CA Feed for ca.yourstore.com
EU Feed for eu.yourstore.com
US Feed** for us.yourstore.com

Each feed should reflect the local market with specific pricing, shipping, and tax details.

Avoid Duplicate Content: To stop Google from indexing multiple versions of the same product, use the canonical tag on each product page. This should point to the correct regional version.


Apps & Tools to Consider

Geolocation Apps: Apps like Geolocation Redirect or Shopify Geolocation can help set up auto-redirects or create a region switcher.
Multi-Country Support Apps: Tools like Langify or GTranslate can assist with language/region switching and have built-in hreflang support.
Google Merchant Center Integration: Apps such as ShoppingFeeder or DataFeedWatch enable you to manage and automate product feeds for multiple Merchant Center accounts.

You can use 1 store with multiple markets, but you will need to use a different data feed app that allows this, for my clients I use multifeeds: https://apps.shopify.com/multiple-google-shopping-feeds

Thanks, but I’m already using a more advanced feed app, so that isn’t an issue for me. My problem is how to set up the redirects correctly between stores and create a switcher that won’t show the Canada market but will automatically send users to the Canadian site, and so on.

You can check nile.ch and eu.nile.ch. Depending on the country you are, we implemented a popup with a country and language selector, and based on that we redirect to the correct store. We could have forced the redirect, but we let the user to do a final selection before that.