Magento 2 Hreflang Tags Extension | Alternate Hreflang Language

Magento 2 Hreflang Tags Extension is a dedicated solution for international SEO that helps merchants and developers add hreflang tags to their websites automatically or manually directly in the admin panel for products, categories, CMS, default pages and Magefan Blog. It covers alternate hreflang tags with both language and country codes and allows you to separate hreflangs between websites using different locale groups. This Alternate Hreflang module assigns self-referencing tags for all store views and adds hreflang URLs to the Magento XML sitemap.

Magefan Hreflang Language Extension is part of the Magento 2 SEO Suite.

$99
one-time-payment-info
one-time payment
Add to Cart
Not
a subscription
60 days
money back
365 days
of free support and updates
one-time-payment-info
Lifetime
access to source code
magento 2 hreflang tags
magento assign hreflang tags automatically
implement hreflang tags magento
add hreflang tags in magento dirrectly in the admin panel
Live DemoLive Demo
Compatibility:Magento 2.3.0 - 2.4.9 (CE, EE, ECE, B2B)
Version:2.5.0
Downloads
1,191 downloads
Composer
Composer
Mage-OS
Mage-OS
Hyva
Hyvä
Breeze
Breeze
PWA
PWA ready
Made in Ukraine
Cloud
Made in Ukraine
Made in Ukraine

Manage Alternate Hreflang Tags in Magento Admin Directly

Adding hreflang tags to a website usually requires editing the code every time you launch or change URLs to the page. With the Magento 2 Hreflang Tags Extension, you manage the entire process in the admin pane with no developer or code editing required.

Generate Hreflang Tags for Magento Automatically

Magefan Hreflang Language Extension generates hreflang tags for products, categories and the homepage automatically once you enable it. The module matches pages across all store views without any editing or linking on your part.

If you have separate websites or catalogues that use different IDs per store view, you can still add or adjust hreflang language tags directly in the admin panel.

Improve your multi-language stores using hreflnag tags regardless of your setup.

enable hreflang tags in magento 2
add alternate hreflang tags in magento admin

Add Hreflang Tags to All Pages via Admin

Add hreflang tags for the rest of the pages — CMS, contact, customer account, and other core pages — manually, directly from the admin.

Just open the page editing screen and fill out hreflang tags for a corresponding page for another store view. Magento 2 Hreflang Tags Extension assigns the hreflang language for both sides automatically, keeping every language linked from a single edit.

Running a Magefan Blog? Enable hreflang tags for blog posts and categories manually too.

Include Hreflang Language Tags in XML Sitemap

Help search engines discover localised pages without any extra crawling, using Magento Alternate Hreflang Extension.

Enable one option to include all hreflang links in your XML sitemap.

Make sure Google discovers alternative localised pages and countries you target faster.

add hreflang urls to magento xml sitemap
translation extensions that sets hreflang tags automatically

Automate Hreflang Tags Across All Magento Pages

If you want to scale faster and spend less time managing hreflang tags in Magento, use Magefan Magento 2 Language Translator.

It offers a handy store switcher for every page on your store, which allows content pages to share the same IDs.

Magefan Translator automate hreflang tags across all Magento pages while translating those pages automatically.

Improve International SEO with Magento 2 Hreflang Tags Extension

Magefan’s Hreflang Tags Module for Magento gives you full control over hreflang languages, regions, self-referencing tags and locale groups. This allows you to set up hreflangs across multiple websites and improve international SEO exponentially.

Enable Country Codes in Hreflang Tags

Selling the same language to different regions ( US English, GB English, AU English)?

Enable country codes in hreflang tags to differentiate regions based on default Magento locale settings or set custom locale codes for each store view.

Help search engines serve a personalised version of the page to the right audience, based not only on language, but region too. And avoid duplicate content penalties for near-identical language store views.

enable country codes in hreflang tags in magento
multi website magento hreflang tags

Keep Separate Hreflang Language Tags Across Websites

Separate alternate hreflang language tags between websites in a multi-website setup.

Magento 2 Hreflang Tags Extension allows you to use different locale groups for different websites to keep unrelated content separate.

This tells Google not to treat unrelated website content as alternative versions of each other.

Use Self-Referencing Hreflang on all Pages

Define the fallback page if the visitor’s language or region doesn’t match any of the existing alternatives on your store.

The Hreflang Language Extension adds a self-referencing x-default tag automatically to every enabled page based on your settings.

Tell Google what version of the page to serve in search results by default.

magento self referencing x default tag

Magento Hreflang Language Use Cases

Add hreflang attributes to Magento pages in different scenarios, regardless of your setup — one or multiple websites, one or multiple store views per site. Locale group settings allow you to decide whether to connect store views between websites or keep them separate.

relevant

One Website with Multiple Store Views.

This is one of the most common setups, which works out of the box. All store views within the same website share the same local group, so the Magento Hreflang Tags extension assigns different page versions without any extra settings.
relevant

Multiple Websites. One Store View Each.

If you run multiple websites and each represents a different language, assign the same locale group to each of those websites. This will connect hreflang language tags between those websites, so each website is treated as an alternative version.
relevant

Multiple Websites. Multiple Store Views.

When your websites serve different markets or different catalogues that shouldn’t reference each other, use different locale groups for each website. This keeps Magento hreflang tags scoped to store views within each website, without relating multiple websites.

Why Do You Need Magento 2 Hreflang Tags for SEO?

Hreflang tags in Magento 2 improve international SEO across all store views by telling search engines which version of the page to show to a visitor in search results based on their language or location. Without them, Google may treat near-identical regional pages as duplicate content or send visitors to the wrong language version, which causes them to bounce back.

FAQs

What is hreflang?

collapsible icon
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.

Does Magento offer hreflang tags by default?

collapsible icon
Magento doesn’t have any native admin settings for alternate hreflang tags. Adding them in Magento usually requires editing theme templates for each page manually, which makes it hard to maintain and update those tags across all store views. Most multi-language Magento setups use dedicated hreflang tag modules to simplify the management.

What is the best Magento Hreflang Language Extension?

collapsible icon
The Magento 2 Hreflang Tags Extension by Magefan is considered one of the most complete options, because it covers the entire hreflang setup from one place, including automated hreflang generation for products and categories within the same website, reciprocal hreflang assignment directly from the admin panel, custom locale groups and country codes, and self-referencing x-default tags for both multi-language and multi-website setups.

How to add hreflang tags for multiple websites in Magento?

collapsible icon
If you have multiple websites within one Magento and want to connect them, assign the same Locale Group to each website so their store views reference each other in hreflang tags. If you don’t want store views between separate websites to be connected, add separate Locale Groups to link store views only within the same website.

How to add hreflang tags (or other meta tags) to pages in Magento?

collapsible icon
With the Magefan Hreflang Tags extension, you can add hreflang tags to pages directly in the admin panel via the Alternate Store View Localisation section. Just navigate to the page you want to add the alternate tags to, find the Alternate Store View Localisation field and start typing the name of the page in the alternative language field. It automatically adds hreflang tags in the code and updates them accordingly when the URLs change.

How to add custom locale to hreflang tags in Magento?

collapsible icon
If there is no locale you need in the Stores > Configuration > General > Locale Options > Locale select box, you can add a custom locale code, e.g. en-MY or en-SG, for hreflang tags via the Custom Locale Code option via Stores > Configuration > Magefan Extensions > Hreflang Tags > Locale Options.

How to add country codes to alternate hreflang tags in Magento?

collapsible icon
Enable the Locale Depends on Region option in Stores > Configuration > Magefan Extensions > Hreflang Tags > Locale Options and set a Custom Locale Code if needed to add a country code to hreflang tags in Magento.

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

Feature Highlights

Automatic hreflang tags

Generate alternate hreflang tags for products and categories automatically

No-code hreflang tags assignment

Add hreflang tags to Magento pages directly from the admin panel

Default x-default support

Set x-default hreflang tags to specify the default page for each store view

Region targeting

Enable region codes in hreflang tags to improve targeting and differentiate same-language variants

Locale groups

Use locale groups to differentiate between store views and hreflang tags for different websites within the same admin

XML sitemap support

Add hreflang tags to your XML sitemap automatically to improve SEO and pages discoverability
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 Language Switcher Extension
Language Switcher
$89
(12)
Direct customers to a corresponding store view based on their location or browser language. Improve the store switching.
Magento 2 Translation
Translation
$99
(33)
Translate any text or page in your store manually or automatically. Integrate AI-powered translations to speed up localisation.
Magento 2 Currency Switcher
Currency Switcher
$89
(21)
Provide better experience for your customers. Display prices in customers' local currency based on their location.
 

Reviews about Magefan Hreflang Tags Extension

Magento 2 Hreflang Tags Extension
Live Demo
chevron-up Top
Stand with Ukraine! How can you help?
Find out more