How the HREF Lang tags works for your Magento store

Dit is een artikel over de extensie Alternate Hreflang Tags voor Magento 2. We hebben ons best gedaan bij het opstellen van dit helpartikel. Als je het antwoord niet kunt vinden, kun je ons altijd een bericht sturen via het dit formulier.

Are you using the HREF Lang tags in your Magento ® store?

When you have a international SEO strategy on your multi-language store in Magento implementing the hreflang tag is a good way to get the content right for the certain countries and regions to specify the right country for the specific content and prevent duplicate content.

Using the HREF Lang Tags in your Magento® Store


The href lang tag is introduced by Google in December 2011 and is designed to serve the correct language or regional URL in the Google Search results. For example, we take the dutch store-view, there is a big chance you can use the content for a Belgium store as well so you implement the same content on your .be domain but off course, you want to clarify this double content and that’s where you can use the href lang tag. In this way you can tell to Google what content is specified for the right county.

Another language example could be the UK and the USA, both are English and there is a big chance that you just duplicate the content but also in this matter it’s a good idea to tell Google where the right content is located for the specific country so Google can display this in their Search Engine Results without having a duplicate content problem or send the customer to the wrong page. The Hreflang tag is a signal for Google and not a directive.


In this way, the Href Lang Tags will look like;

<link rel=”alternate” hreflang=”nl-nl” href=”http://www.yourmagentostore.nl” />
Tell's Google that this page is in dutch but for the country Netherlands

<link rel=”alternate” hreflang=”nl-be” href=”http://www.yourmagentostore.com/” />
Tell's Google that this page is in dutch but for the country Belgium

<link rel=”alternate” hreflang=”fr-be” href=”http://www.yourmagentostore.fr/” />
Tell's Google that this page is in French but for the country Belgium

another example;

<link rel=”alternate” hreflang=”en-gb” href=”http://www.yourmagentostore.uk” />
Tell's Google that this page is in english but for the country United Kingdom

<link rel=”alternate” hreflang=”en-ca” href=”http://www.yourmagentostore.ca” />
Tell's Google that this page is in english but for the country Canada

<link rel=”alternate” hreflang=”en-au” href=”http://www.yourmagentostore.au” />
Tell's Google that this page is in english but for the country Australia

<link rel=”alternate” hreflang=”en” href=”http://www.yourmagentostore.com” />
Tell's Google that this page is for all other english countries

or;

<link rel=”alternate” hreflang=”en” href=”http://www.yourmagentostore.com” />
Tell's Google that this page is in english

<link rel=”alternate” hreflang=”es” href=”http://www.yourmagentostore.es” />
Tell's Google that this page is in Spanish

Check if your Href lang tags are working

You can use the http://flang.dejanseo.com.au/ tool to see if the href lang tags are implemented in the right way on your Magento store. The tool checks the source of your Magento® product or Magento® CMS page to see if there are any alternative tags in the source and if so, what they tell. For example, we’ve checked our Rich Snippet Suite extension for Magento®, as you can see it sees the alternate URL and the specific language for that page, in this way we prevent the duplicate content and tell Google what to do.

Implement the Href lang in your Magento® Store

When you have a multi-domain/ multi-language Magento® store and you want to use the HREF lang tags to specify the right languages for Google you can implement the code manually in the sources or you can use our Multi-Language Alternate href lang tag extension. These extensions allow you to set the right language or region codes to all your product automatically, you can group the CMS pages to tell Google which CMS page is equal on the certain Languages.

The Magento® HREF Language Tag Extension is available here

Direct Help

At Magmodules, our support team is here to help you every step of the way. If you can't find a solution in our Knowledgebase, simply fill in the form below. We are in the Central European Timezone, and all your details are securely sent to us.
The more information you provide, the better we can assist you. Trust us to guide you through any challenge and ensure a seamless experience with our products and services.
Support by e-mail contact@magmodules.eu
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google Deze week
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 15 dagen geleden
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 20 dagen geleden
star star star star star
star star star star star
Rick Manders
Dit is nog eens een modulemaker! Stopt niet tot het werkt, blijft enthousiast. Grote dank!
Google 29 dagen geleden
star star star star star
star star star star star
L vd B
Topservice van Magmodules dat maak je niet vaak meer mee! Toen we tegen vervelende problemen aanliepen met onze Mollie betalingen, klopten we in eerste instantie aan bij Mollie zelf. Helaas bleef een reactie lang uit en de hulp die wij kregen was niet echt constructief. Gelukkig bracht Frank van Magmodules daar meteen verandering in. Hij pakte het probleem direct op, dacht actief met ons mee en nam echt de tijd om alles helder uit te leggen. Niet alleen werd het probleem snel opgepakt, maar we leerden onderweg ook nog wat bij over de technische achtergrond. Kortom: Magmodules levert niet alleen een goed Magento product, maar staat er ook echt als het nodig is. Zo’n service zie je tegenwoordig niet vaak meer! Dankjewel Frank.
Google 13 May 2025
star star star star star
star star star star star
Jeroen Custers
Zeer professionele Magento plugin developer met hele goede ondersteuning.
Google 30 Apr 2025
star star star star star
star star star star star
Rick Manders
De snelheid van reageren en het niveau van meedenken zijn bewonderingswaardig! Uniek bij een modulebouwer! Een kleine vijf jaar ervaring met Magmodules en telkens staan ze voor je klaar bij inhoudelijke vragen. Goed bezig.
Google 28 Apr 2025
star star star star star
star star star star star
Richard van Beckhoven
Excellent service yet again from the Magmodules team that provide super support, quickly understand the issues and deliver solutions that are stable and work. Greatly appreciate your help.
Google 24 Apr 2025
star star star star star
star star star star star
Ernests Roberts Verins
the support responded very quickly
Google 13 Mar 2025
star star star star star
star star star star star
Jesse Williams
I've been using their google reviews software for a year now, without issues. I had a question recently and emailed them, and was responded to within a fee hours. Fantastic service. Truly great.
Google 06 Mar 2025