Alternate Hreflang Tags

Compatible With: Community 2.0, 2.1, 2.2

Tech Specifications

Current Version:
Stable Build
18 December, 2018
Extensions, Marketing, SEO/SEM
License Type:


Automatically add Alternate Hreflang Tags on the right storeviews following the multi-language Hreflang requirements from Google.

Other Extensions by Magmodules


Back to top

Many Magento®2 stores translate content on the product and category pages into different languages in order to cater to customers from different parts of the world. 

With the hreflang tag extension, which is commonly known as rel="alternate" hreflang="languagecode", each page's language is made known to Google so that it will match users searching in that language to pages which are in the same language. The Hreflang enhances your SEO without you having to code it yourself.

With this extension you can Group the right language storeviews together so the Href Lang tags will be generated to tell Search Engines if there are any alternative languages available for the product, category or Homepage.


In this way, the group with Href Lang Tags will look like:

< link rel=”alternate” hreflang=”nl” href=”” >

Tell's Google that the specific product or category is also available in dutch.

< link rel=”alternate” hreflang=”nl-be” href=”” >

Tell's Google that the specific product or category is also available in dutch but for the country Belgium.

< link rel=”
 alternate” hreflang=”fr” href=” >

Tell's Google that the specific product or category is also available in french.


New: Alternate HrefLang Tags for CMS Pages

The HrefLang Tag Extension can recognize the different urls for the products and categories based on the different store-views, but for CMS pages it's made up from a different data structure. With the new CMS categorize functionality, it's now possible to categorize them to connect them with categories to connect them with the half long tags. Every CMS page with the same connected category tag will be will be identified as alternate pages.

For example, there can be three store-views with three distinct "contact us" pages:

[storeview] - identifier: contact-us

[storeview] - identifier: neem-contactop

[storeview] - identifier: Kontakt


By giving each of the three CMS pages the category "contact us", the three pages will be linked as related and the hreflang tag will be added automatically.


What is the rel=”alternate” hreflang=”Languagecode”?

Introduced in 2011, the Hreflang attribute indicates the page language and makes the relationship between content pages of different languages known to search engines such as Google. This is handy for Magento®2 shops which have multiple storefronts in varying languages catered towards a variety of consumers while selling the same products. If different storefronts selling the same product are linked with the Hreflang attribute, search engines will know which page to direct the customer to. A product page with both a Spanish and an English version will be tagged as "Español" by using hreflang="es”.

A customer with an IP address from a Spanish country will be directed from the Google search result to the Spanish page version instead of the English one. By ensuring that your target consumers are directed to the most relevant page in their language, your bounce rate will decrease and your conversions will increase.

Instead of targeting consumers based on their language, we are also able to target consumers based on their country. For instance, a Belgium storefront using a Dutch language pack. Using two different stores, a Dutch storefront and a Belgium storefront, we are able to target different consumers with different product pages: a Dutch one (hreflang="nl-nl") and a Belgium one (hreflang="nl-be"). This is especially handy when it comes to geo-targeting consumers for changes in currency, shipping costs, seasonality, and culture.


Technical Product Features

  • Made according to the latest Google standards
  • Specially designed for Magento
  • Easy to set configuration
  • Easy installation
  • Positive SEO effect


Extension Features

  • Turnkey Alternate Href Lang Tag Solution
  • Easy and Fast configuration
  • Build by the latest Google Standards
  • Comes with complete Documentation
  • Works with the latest versions of Magento 2

Release Notes

Back to top


  • Compatible with CE: 2.1 2.2
  • Stability: Stable Build
  • Description:

    * Fixed product alternate check


  • Compatible with CE: 2.1 2.2
  • Stability: Stable Build
  • Description:

    * Improved debug output messages
    * Small bug fixes


  • Compatible with CE: 2.1 2.2
  • Stability: Stable Build
  • Description:

    * Added CMS Pages Href Lang Tag compatibility


  • Compatible with CE: 2.1 2.2
  • Stability: Stable Build
  • Description:

    * Added compatibility for Magento 2.2


  • Compatible with CE: 2.0 2.1
  • Stability: Stable Build
  • Description:

    * Extended groups


Back to top
The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Q & A

Back to top


Back to top