What is Hreflang and Why Does It Matter?
What is it?
A `hreflang` tag is a small piece of HTML code that lives in your page's header. It tells Google what language a page is written in and what geographic region it's intended for. It also links all the different versions of that same page together (e.g., your English/US version, your French/France version, and your English/UK version).
Why is it important?
This tag solves two huge problems for Google: 1) It prevents Google from seeing all your translated pages as 'duplicate content' of each other. 2) It ensures Google shows the correct version of your page to the correct user (e.g., showing your French-language, Euro-priced page to a user searching from France). This is critical for a good user experience and for ranking in international search results.
How to Do It (The Shopify Markets Way)
The good news: Shopify automates this. When you properly set up your languages and domains/subfolders using the Shopify Markets feature, Shopify automatically generates and inserts all the correct `hreflang` tags into your theme's code. You don't have to write them yourself.
Your job is to do the setup in Shopify Markets correctly. Once you define your markets (e.g., 'France'), add languages ('French'), and assign a domain or subfolder (`yourstore.fr` or `yourstore.com/fr`), Shopify handles the technical SEO implementation.
Common Pitfall
A common mistake is using a simple, third-party translation app that *doesn't* integrate with Shopify Markets. This might translate your text, but it often fails to add the crucial `hreflang` tags, leading Google to see your translated pages as low-quality duplicates. Always use Shopify's native functionality (like the 'Translate & Adapt' app) as your foundation.
DijiPilot Academy Access Required
This comprehensive masterclass (4.1.7 - International SEO for Shopify Markets (Difficulty: Advanced | Path: Scale)) is locked. Upgrade your plan to unlock the full technical roadmap.
Loading lesson roadmap for Phase 4.1.7...
Questions & Answers
Reviewing this step? Browse questions from other DijiPilot users below. If you are stuck, check the existing answers to bridge the gap between setup and success.