Go Dark Go Light
Stand with Ukraine!  How can you help?

Magento 2 Hreflang Tags Extension

Magento 2 Hreflang Tags Extension is a solution that allows you to add hreflang tags to your pages automatically or through the admin panel. No need to dive into code to add, edit or delete hreflang tags. We do it for you.

Notify search engines about page variants in different languages and let them pull out a localized page in search.

Boost your multi-language store with the Alternate Hreflangs Tags for Magento 2!

  • Generate alternate hreflang tags for products and categories automatically
  • Add hreflang tags for the homepage, CMS pages, and blog from the admin panel
  • Define custom locale code (for store views in the same language e.g. en_US, en_GB)
  • Enable/disable alternate hreflang tags for NOINDEX pages
  • Set x-default tag store view
one-time payment
Buy Now Free Trial
Purchase as part of the Magento 2 SEO Extra.
Generate hreflang tags automatically Magento
Choose what Magento pages to enable hreflang tags on
Add hreflang tags manually in Magento admin panel
Live Demo
Compatibility:Magento 2.3.0 - 2.4.7-p1 (CE, EE, ECE, B2B)
hyva compatible
Composer Package
PWA Ready!
Magento 2 Hreflang Tags Extension

Show Localized Pages in Search Results

Managing a multi-language store includes a lot of aspects. But the most important part is — alternate hreflang tags.

They tell Google about page alternatives targeted at different languages and countries.

This allows search engines to pull out a localized version of a page in search. So you not only attract more traffic but improve customers' experience as well.

magento hreflang tags
add hreflang tags in magento automatically

Generate Hreflang Tags Automatically

It’s easy to get overwhelmed when adding hreflang tags to your store. Especially if you have to do it multiple times for all your products and categories.

But not if you use the Magento 2 Hreflang Tags Extension.

It generates hreflang tags for products, categories, and homepages automatically. All you need is to enable the module. It covers the rest.

However, if your products and categories have different IDs, you can still add hreflang tags manually.

Add Hreflang Tags Through the Admin Panel

Once you delete a page, edit a URL key or add a new language you have to edit the hreflang tags in code.

At least, it was this way before the Magento Hreflang Tags solution.

You can now add, edit or delete hreflang tags in the Magento admin panel.

Just specify the page ID, or start typing a name and choose a corresponding option from the list. Anyone can do it. It is that simple.

magento hreflang tags in admin panel
hreflang tags custom locale code

Target Different Language Variants

If you offer separate pages in a language with region variants (e.g. US English, GB English, AU English) you have to tell search engines about it.

Use Alternate Hreflang Tags for Magento 2 to assign certain store views to regions and add custom locale codes.

Avoid duplicate content penalties and target visitors not only by their language but the location as well.

Make sure it's a good match!

Uncertain whether the Magento 2 Hreflang Tags Extension has all the features you're looking for, or if it aligns with your goals?

Add Hreflang Tags to More Than One Website

It is relatively easy to add hreflang tags in Magento with only one website. When there’s more, it’s hard to keep things simple.

However, we managed to.

Use different locale groups for different websites if you don’t want to “connect” hreflang tags between those websites.

Using hreflang tags can be simple with the Magento 2 Hreflang Tags Extension!

alternate hreflang tags magento 2

What is hreflang?

Hreflang attribute, referred to as rel="alternate" hreflang="x", is the HTML attribute that tells search engines about the language of your page and the page alternatives in other languages.


Why are hreflang tags important?

Hreflang tags help Google and other search engines to provide localized results and serve the page for users searching in a specific language and country. It improves user experience and makes pages in different languages more visible in SERP. Find more details in hreflang tags guide.


Can I install Magento 2 Hreflang Tags module via the composer?

Yes, you can. All our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository and find the composer installation commands available in the "My Downloads" section.


Will the extension work if I use different domain names for each store?

Yes, Magento 2 Hreflang Extension will work in case you have different domain names for different store views.

People Also Searched For
  • magento 2 hreflang
  • hreflang magento 2
  • magento hreflang
  • magento 2 hreflang tags
  • magento href extension
  • alternate tags magento
  • alt tags magento extension
  • alternate hreflang tag extension
  • alternate hreflang tags magento 2
  • magento alternate hreflang
Quick Overview Video

Show localized pages in search results and improve store stitching in your multi-language store with hreflang tags.

Check out how easy it is to configure Magento 2 Hreflang Tags extension.
Related Products
Magento 2 Currency Switcher
Currency Switcher
one-time payment
Magento 2 Language and Store Switcher Extension
Language and Store Switcher
one-time payment
Magento 2 Translation
one-time payment
Magento 2 SEO Extension
one-time payment
Magento 2 GeoIP Switcher
GeoIP Store Switcher
Special Price $149 Regular Price $178
one-time payment
Magento 2 Rich Snippets Extension
Rich Snippets
one-time payment
What our
clients say

As quick as ever to install (especially with the use of Magento 2 Zero Downtime Deployment), configuration is child's play to create a link between the initial content and the multilingual versions. Even with a very specific site, Magefan was there to guarantee us perfect compatibility in just a few hours. An essential tool for a multilingual site !

Samuel K.
Brands Who Trust Us
Magento 2 Hreflang Tags Extension
Live Demo