Effective
Does exactly what it's supposed to do.
Add hreflang tags to products, categories, CMS pages and the homepage of your Magento 2 store. Group store views per language and country, set an optional x-default, and check the setup with the built-in targeting test.
Test out this module for Free
Alternate Hreflang Tags
Check your email
We've sent a confirmation link. Click it to spin up your demo.
Setting up your demo...
This usually takes a few minutes. You can close this modal or wait for the result — we'll also send you an email when it's ready.
You're in the queue
Position: #
All demo slots are currently in use. You'll receive an email as soon as your demo is ready.
Your demo is ready!
Expires:
Credentials have also been sent to your email.
Something went wrong
We couldn't set up your demo. Please try again or contact support.





Alternate Hreflang Tags adds hreflang tags to the homepage, product pages, category pages and CMS pages of a Magento 2 store with more than one store view. Every page lists its counterparts in the other languages and countries, so a search engine knows which version belongs to which audience.
You set it up once in the admin: give each store view a language code, put the store views that belong together in a group, and the module writes the tags into the head of each page. There are no templates to edit and no tags to maintain by hand.
Version 2.6.0 adds a "Test targeting" button that reads your setup back and reports the mistakes that otherwise only show up later in Search Console.

Switch hreflang on separately for the homepage, product pages, category pages and CMS pages.
Store views in the same group become each other's alternates, with 20 groups available for separate shops or assortments.
The "Test targeting" button checks groups, language codes and base URLs, and shows for one product which store view points at which.
Per group, mark a store view as x-default or point to a CMS page with a country or language selector.
Limit tags to canonical URLs, keep whitelisted query parameters such as p, and skip pages marked noindex.
Pass the alternates to Magmodules Sitemap and Robots and add tags to Amasty Shop By Brand, Firebear Configurable Products and Magefan Blog pages.
Under "Targeting Settings" you fill the "Store Setup" table: one row per store view with a "Language Code" and a "Group". All store views in a group are treated as alternates of each other. The language code is a free text field, so you decide whether a store view is announced as nl, nl-nl or nl-be, and a store view can carry more than one code.
Groups keep separate assortments apart. If one set of store views sells the regular collection and another runs an outlet with different products, put them in "Group 1" and "Group 2", so pages only refer to store views that share the same catalog. There are 20 groups to choose from.
Within a group, products are linked by SKU and categories by ID. In a standard multi-store catalog there is nothing to map per product. A page only gets tags when at least two store views have a version of it.


A hreflang setup can look right in the admin and still be ignored by search engines. Since version 2.6.0 the "Test targeting" button under "Targeting Settings" reads the configuration back and lists what is wrong with it:
For each store view the test shows the number of hreflang links (the link to the page itself included), the language codes and whether the store view is active. Each problem belongs to a group, so you can look at one group at a time.
The test offers up to ten products to start with. For the chosen SKU it shows which store view points at which. If one store view does not point back, for example because the product is disabled, out of stock or not assigned to the website there, the test reports it, because Google drops an alternate set that is not reciprocal. The check runs inside Magento through store emulation, without HTTP requests, so staging passwords, redirects and caching do not get in the way.
Under "Alternate Hreflang Configuration" you choose where the tags appear: "Enable on Homepage", "Enable on Product Pages", "Enable on Category Pages" and "Enable on CMS Pages". Each page type has its own switch, so you can start with the catalog and add CMS pages later.
Products are matched by SKU and categories by ID within the targeting group. Products that are only visible in "Catalog" or only in "Search" get alternates too.
When the same item has a different SKU or category ID per store view, open the product or category and go to "Hreflang Override". Pick "Create new group" in "Alternate Link Group" and fill in "New Group Name". Products with the same group name are linked across stores as alternate language versions, and the same goes for categories.


CMS pages have no SKU or shared ID, and a contact page is often contact in one store view and kontakt in another. On the CMS page form, the fieldset "Alternate Language Settings" has the field "Alternate Language Category". Choose "Create new group" on the first page, name it in "New Category", and select that group under "Existing Groups" on the translated pages.
Pages in the same group get each other's hreflang tags. A page left on "No group (no hreflang)" gets none, which keeps one-off landing pages out of the set.
x-default tells a search engine which page to show to visitors whose language or region has no store view of its own. In "X-Default Setup" you add a row per group with "Add x-default" and choose the "Implementation":
The module does not add x-default on its own. The note in the admin advises against it for straightforward multilingual setups: search engines can work out the right page there, and a simpler setup leaves less room for errors. Discuss the choice with your SEO partner.


Three settings decide which URLs get tags:
p,page,limit, in the alternate URLs. Page 2 of a category then points at page 2 in the other store views.mm_meta_robots matches the Magmodules Sitemap and Robots module.Hreflang data can also go into your XML sitemap. Together with the Magmodules Sitemap and Robots module, "Sitemap Integration" has four switches, "Products", "Categories", "CMS Pages" and "Homepage", that add the alternates of each page type to the sitemap.
Under "Third Party Support" you select the modules whose pages should get tags as well: "Amasty Shop By Brand", "Firebear Configurable Products" and "Magefan Blog". A module that is not installed is shown in the list but cannot be selected. Since version 2.6.0, Amasty brand pages only link to store views in the same targeting group.

"Test targeting" button that checks groups, language codes and base URLs.
Reciprocity check for one product, run in the admin without HTTP requests.
NoIndex handling now covers category pages through "Category Attribute".
Amasty Shop By Brand pages link only to store views in the same group.
Debug settings renamed to "Debug Output On Page" and "Debug Mode".
Requires Magento 2.4 and PHP 8.1 or higher.
?show-alternate=1 to a URL. Visitors can do the same, so leave it off on a live shop.var/log/hreflang-debug.log. Errors are always logged. The "Debug & Logging" group also has a log viewer and a self-test.magmodules/m2-alternate-hreflang-graph-ql.Install Alternate Hreflang Tags, group your store views and run the targeting test. The tags then follow on the page types you switch on.
What our customers say
Does exactly what it's supposed to do.
Works exactly as expected. A perfect addition to the standard Magento settings.
We use the Amasty layered navigation extension. Out of the box, Amasty does not have a good Hreflang tag solution. Hence, we bought this extension. It works as it should and I am very happy with it.
A list of the most frequently asked questions from the Alternate Hreflang Tags extension for Magento 2. We've tried our best to help you with the installation, configuration and troubleshooting. If you do not find the answer you were looking for, you can always send us a message through this form.
Our plugins are regularly updated to ensure compatibility with the latest Magento release.
Quality

This extension is listed on the official Adobe Commerce Marketplace and has passed their review process for code quality, performance and security.
Adobe Marketplace approval means the extension follows Magento coding standards and integrates properly with the platform. Updates go through the same review process.

This extension includes full support for Hyva Themes. All frontend components, widgets and templates work natively with Hyva's Alpine.js and Tailwind CSS stack.
The extension works out of the box on Hyva and is tested with every new Hyva release to ensure continued compatibility.

This extension exposes its data and configuration through Magento's GraphQL API. You can query and mutate data directly from headless frontends or custom applications.
The GraphQL schema follows Magento's conventions and covers all key functionality of the extension. This makes it ready for PWA Studio, Vue Storefront or any other headless setup.

This extension is fully compatible with Adobe Commerce Cloud (Magento Cloud). It works with the read-only filesystem, the build and deploy pipeline and cloud-specific caching layers.
No additional configuration or workarounds are needed for cloud environments. The extension handles static content deployment and config management the same way as on-premise installations.

After purchase you get access to a private Composer repository with personal credentials. Install and update the extension with a single composer command, just like any other dependency.
Your Composer credentials are available in your account dashboard. Updates are published to the repository as soon as a new version is released, so you always have access to the latest version.
This extension is covered by 209 end-to-end tests using Playwright. These tests run automatically on every code change through our CI/CD pipeline.
The tests simulate real user interactions across checkout flows, configuration changes and edge cases to make sure everything works before every release.