International SEO for markets
Markets includes built-in features that help your store follow international SEO best practices. When you configure markets with domains, languages, and localized content, the technical requirements that search engines expect from international stores are handled automatically, including hreflang tags, canonical URLs, sitemaps, and crawler access.
On this page
URL structure for international markets
The URL structure that you choose for your international markets affects how search engines perceive and rank your store in different regions. You can use subfolders, subdomains, or top-level domains for each market. To configure the domains for each of your markets, refer to managing international domains.
| Option | Example | Domain authority | Setup complexity | Best for |
|---|---|---|---|---|
| Subfolders | yourstore.com/fr/ | Shared with primary domain | Lowest | Most stores |
| Subdomains | fr.yourstore.com | Independent | Medium | Clear market separation |
| Top-level domains | yourstore.fr | Independent, strongest local signal | Highest | Strong local presence in specific countries |
Subfolders
Subfolders, such as yourstore.com/fr/, share domain authority with your primary domain. All the SEO value that your primary domain has accumulated also benefits your international subfolders.
Subfolders are recommended for most stores because:
- They're the easiest to set up and manage.
- No additional domain registration is required.
- Hreflang tags connect all subfolder versions automatically.
Subdomains
Subdomains, such as fr.yourstore.com, are treated as separate sites by some search engines. They build their own domain authority over time, which means that they start with less SEO value than subfolders.
Subdomains are useful when you need clear separation between markets. The benefits include:
- Clear separation between markets.
- Independent domain authority for each market.
Subdomains require DNS configuration for each subdomain.
Top-level domains
Top-level domains, such as yourstore.fr, provide the strongest local SEO signal for a specific country. Search engines treat country-code top-level domains as a strong indicator that the site is relevant to customers in that country.
Top-level domains are best for stores with a strong presence in specific countries and the resources to manage multiple domains. The benefits include:
- Strongest local SEO signal in the destination country.
- Independent domain authority for each country.
- Clear brand presence in each market.
Top-level domains require separate domain registration and management for each country.
Translated and localized content
Search engines reward unique, localized content. Translating your store content word-for-word is a good start, but adapting content for each market can improve your rankings further.
You can use the Translate & Adapt app to translate and adapt content for each market:
- Translated content: Translate your store into multiple languages. Translated pages are served at market-specific URLs, such as subfolders, subdomains, or top-level domains, giving search engines distinct content to index for each language.
- Adapted content: Create market-specific content that goes beyond translation. For example, you can adapt product descriptions, promotional text, or legal information for specific regions without changing the content in other markets.
Automatic hreflang tags
Hreflang tags tell search engines which version of a page to display to customers based on their language and region. Without hreflang tags, search engines might display the wrong language version of your store to customers, or flag your translated pages as duplicate content.
Hreflang tags are generated automatically based on your market and language configuration. When you assign a domain, subfolder, or subdomain to a market with a specific language, the appropriate hreflang tags are added to every page on your store.
For example, if you have:
yourstore.com: English, United Statesyourstore.com/fr/: French, Franceyourstore.com/de/: German, Germany
Hreflang tags that reference all three versions are added to every page on your store, so search engines know which version to serve to which audience.
Automatic hreflang tag structure
Each hreflang tag includes a language code and an optional region code:
en-us: English for the United Statesfr-fr: French for Francede: German for all regions
An x-default hreflang tag also points to your primary domain. This tells search engines which version to display when no other hreflang tag matches the customer's language or region.
Hreflang tag generation considerations
Review the following considerations for hreflang tag generation:
- Hreflang tags are generated only for markets that have a distinct domain, subdomain, or subfolder. If all your markets use the same URL with no language or region distinction, then there aren't any alternate versions to reference.
- Hreflang tags update automatically when you add, remove, or change market domain and language settings.
- To opt out of automatic hreflang tag generation, you can update your theme's Liquid code. Opting out isn't recommended for most stores.
Automatic canonical URLs
Canonical URLs tell search engines which version of a page is the primary version when multiple URLs serve similar content. This prevents duplicate content issues that can dilute your search rankings.
Canonical URLs are set automatically on all pages to point to the primary version of each page. When you have multiple market-specific versions of the same page, for example yourstore.com/products/shirt and yourstore.com/fr/products/shirt, each version has a self-referencing canonical URL and hreflang tags that connect all versions together.
This signals to search engines that these are related but distinct pages for different audiences, not duplicate content.
International sitemap generation
Sitemaps help search engines discover and index all the pages on your store. For international stores, sitemaps need to include all language and region-specific versions of each page.
Sitemaps are generated automatically and include all market-specific URLs. When you add a new market with a subfolder, subdomain, or separate domain, the sitemap is updated to include all pages for that market.
Each URL in the sitemap includes hreflang annotations so that search engines can understand the relationship between different language and region versions of the same page. To submit your sitemap to search engines, refer to finding and submitting your sitemap.
Search engine crawler access
Search engine crawlers need to access all versions of your store to index them properly. Redirecting crawlers based on location would cause them to index only one version of your store.
Automatic redirection applies to customers, but search engine crawlers are excluded. When a crawler visits your store, it receives the content for the URL that it requested, without being redirected to a different market version. This means that all versions of your store are indexed correctly.
When you've activated automatic redirection, your customers still receive it. Only known search engine crawlers are excluded.
To customize how crawlers access your store, you can edit your robots.txt.liquid file.