Alternate Hreflang Tags for Magento 2
4.9 13 Based on 13 reviews




Magento 2 Hreflang Tags Extension for International & Multilingual SEO
Automatically Send Customers to the Right Language and Country Version
International Magento 2 stores often serve customers across multiple languages, countries, currencies, and store views. Without correct hreflang tags, Google and other search engines can show the wrong page version in regional search results — confusing customers and weakening the value of your localized content.
The Hreflang Tags extension for Magento 2 automatically adds accurate alternate hreflang tags to products, categories, CMS pages, and the homepage. This helps search engines understand exactly which page belongs to which language or region, so the right version ranks for the right audience.
Built for Magento 2 merchants, agencies, and developers, the module removes the need for manual code changes and delivers a cleaner international SEO setup directly from the Magento admin.

Products

Categories

CMS Pages

Improve International SEO with Accurate Magento 2 Hreflang Tags
A Magento 2 store with multiple store views often targets different countries, languages, and customer groups. Without proper hreflang tags, search engines may serve the wrong version of a page to users, reducing the impact of your localized content and your international rankings.
The Hreflang Tags extension automatically adds the correct alternate URLs for products, categories, CMS pages, and store views. This gives Google clear signals about which version belongs to which language or region.
Whether you run separate stores for the Netherlands, Belgium, Germany, the United Kingdom, or a global audience, the module makes sure visitors are directed to the most relevant version of your Magento 2 storefront.
By automating hreflang generation, you strengthen international SEO, reduce duplicate content issues, and deliver a better user experience across every market.


Automated Hreflang Tags for Every Magento 2 Page Type
The Hreflang Tags extension inserts alternate hreflang tags programmatically, so merchants never have to add them manually to Magento templates or page source code. The setup stays manageable even when your store holds thousands of products, categories, CMS pages, and store views.
For the homepage, the module uses your Magento CMS configuration to identify the correct page and add the matching hreflang references. For products and categories, the extension links alternate versions based on your connected store views.
This automated approach keeps hreflang output consistent across the entire storefront. When content exists in multiple languages or regional versions, the extension gives search engines clear signals about every available alternative.
For merchants, that means far less manual SEO work. For developers, it provides a structured Magento 2 module that follows Magento conventions instead of relying on hardcoded frontend changes.
Hreflang Tags for Magento 2 CMS Pages
Magento can map relationships between products and categories through store views, but CMS pages usually need extra structure. Contact pages, service pages, landing pages, and informational content often have different URL keys per store view.
The Hreflang Tags extension solves this by letting you group CMS pages as alternate language or regional versions. For example, you can link separate contact pages across store views such as contact-contact, contact-us, and contact.
Once grouped, the module automatically adds the correct hreflang tags to each CMS page. This gives search engines a clear relationship between localized page versions and helps customers find the right page for their language or region.
It's ideal for international Magento 2 stores that use CMS content for localized landing pages, customer service pages, regional information, or market-specific campaigns.


X-default Hreflang Support for Global SEO
The x-default hreflang attribute acts as a fallback signal when no specific language or regional version is the best match for a user. It's essential for global homepages, language selectors, and pages that aren't targeted at a single market.
With x-default support, your Magento 2 store can tell search engines which page to show when no localized version is clearly preferred. This creates a cleaner international SEO structure and improves how users are guided from the search results to your store.
For stores serving multiple countries from one Magento installation, x-default is especially valuable when a general page should act as the default entry point. The extension adds this signal automatically, without any manual template changes.
Automatically adds hreflang tags to Magento 2 products.
Automatically adds hreflang tags to Magento 2 categories.
Connects CMS pages across store views for localized SEO.
Supports x-default hreflang fallback logic.
Reduces duplicate content issues in international stores.
Works with Magento store-view structures and localized page setups.
A Complete Hreflang Solution for Magento 2 Store Views
Managing hreflang tags manually becomes difficult the moment your Magento 2 store expands across multiple countries, languages, or store views. Every product, category, CMS page, and homepage version needs to reference the correct alternatives.
This extension delivers a complete solution for adding hreflang tags across the most important Magento page types. Instead of editing templates or writing custom code, merchants configure the logic once and let the module generate the output automatically.
The module is especially valuable for international stores where regional differences matter — shipping costs, currency, VAT rules, product availability, localized page text, or country-specific campaigns.
By connecting the right page versions, the Magento 2 Hreflang Tags extension helps search engines serve the most relevant result to every user and supports a more consistent customer experience across all markets.

Technical Details: Who This Magento 2 Hreflang Extension Is For
The Hreflang Tags extension is configured directly in the Magento 2 admin and uses your Magento store views to determine the correct language and regional alternatives. After configuration, the module automatically adds hreflang tags to the frontend source code for every supported page type — products, categories, CMS pages, and the homepage.
Merchants never have to edit theme templates or add hreflang tags page by page. CMS page relationships can be configured so that pages with different URL keys are still treated as alternate versions of the same content. This matters for localized content pages, where Magento doesn't automatically create the same relationship structure it builds for catalog pages.
Developers benefit from a Magento-specific implementation that follows Magento coding standards and includes practical debugging options. The module suits stores using multiple store views, international catalogs, localized CMS content, and regional SEO strategies.
Store owners benefit from a clearer SEO setup, less manual work, and better control over how international customers reach the correct version of the webshop.
SEO, Visibility, and Business Impact
Correct hreflang implementation helps search engines understand which Magento 2 page to show to which audience. This improves the relevance of organic search results for international visitors and reduces confusion between similar localized pages.
For merchants, the business value is concrete: customers land on pages that match their language, region, currency, and content expectations. That supports a better user experience, lowers the risk of incorrect regional landing pages, and helps international Magento stores maintain a cleaner SEO structure across products, categories, CMS pages, and store views.
13 of many customers
Rate this plugin with 9.7 out of 10
Effective
Great Product!
Simple but works smoothly
It works as it should and I am very happy with it.
Great Module
Great Extension
Works great!
Great Extension
Great product
Goed!
Thanks
What i was looking for
Great Extension
Top Plugin
Knowledgebase
All familiar Help articles
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.
Changelog 2.4.1 is released on 2 February 2026
Our plugins are regularly updated to ensure compatibility with the latest Magento release.
-
Improvements:
- Added comprehensive unit and integration test suite with CI workflow Bugfixes:
- Removed entity_type_id filters from EAV attribute queries to fix compatibility issues across installations Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added query parameter whitelisting, allowing specific URL parameters (such as pagination) to be preserved in hreflang URLs. Improvements:
- Improved Adobe Commerce compatibility by mapping entity_id to row_id for products and categories.
- Added duplicate hreflang detection with logging to help identify configuration issues.
- Improved alternate URL query handling when products are linked through an alternate category. Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added Manual product/category hreflang grouping option Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Improvements:
- Auto add x-default if not set in target data Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added support for Magefan Blog Improvements:
- Don't load frontend template is module is disabled
- Remove UrlRewrite::METADATA from url index query for better result Bugfixes:
- Fixed Adobe Commerce support Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- GraphQL support. Improvements:
- Enhanced source model for CMS alternate categories used in inline editing. Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added support for PHP 8.4 and Magento 2.4.6
- Added support for Magmodules Sitemap module
- Refactored code for better caching Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added additional options to set x-default (single url vs. store-view) Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Added support for multiple tags per storeview Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Refactored x-default option in admin Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Features:
- Implemented extra caching layer for optimal performance on stores with a high number of store-views Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Fixed issue with check on debug log option Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Fixed issue with return type declaration when custom canonical module is used Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Fixed issue with return type declaration when custom canonical module is used Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Fixed issue with return type declaration when custom canonical module is used Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Added support for Firebear Configurable Products Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Added support for Firebear Configurable Products Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Added support for Firebear Configurable Products Minimum requirements:
- Magento 2.3.x & PHP 7.4
-
Changes:
- Revamped admin config
- Remove alternate urls for stores that are disabled Minimum requirements:
- Magento 2.2.x & PHP 7.3
-
Changes:
- Small Code Cleanup Minimum requirements:
- Magento 2.2.x & PHP 7.1
-
Changes:
- Fixed check on general enabled flag / option Minimum requirements:
- Magento 2.2.x & PHP 7.1
-
Changes:
- Make Logger component compatible with Monolog 2.0 (Magento 2.4.4 support)
- Replaced deprecated _redirect method
- Declared visibility on all constants Minimum requirements:
- Magento 2.2.x & PHP 7.1
-
Changes:
- Refactored header template file for cleaner output without extra line endings / indents Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Fixes:
- Fixed ACL role for config settings Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Changes:
- Get category url from UrlRewrite for better performance when using lots of storeviews Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Changes:
- Added fallback on getting product url by store id for faulty records in url_rewrite table Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Changes:
- Updated version check in Admin
- Fixed compilation issue in Magento 2.2 and lower Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Changes:
- Added compatibility for Amasty Shop By Brand
- Moved all config options to config repository interface
- Coding styles and check on exclusive canonicals Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Changes:
- Changed alternate hreflang url getter Minimum requirements:
- Magento 2.2.x & PHP 7.x
-
Features:
- Refactoring of code
- Added extensive self-test function
- Added extensive error log function
- Added extensive debug log function
- Added compatibility for Magento 2.4 Fixes:
- Fixed simple prices for configurable offer markup Minimum requirements:
- Magento 2.2.x & PHP 7.x
100% Unencrypted Code quality guaranteed.

Adobe Commerce Marketplace Approved
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.

Hyvä Compatible Plugin
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.

GraphQL Made Ready
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.

Magento Cloud Support
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.

Private Composer Repo
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.
Playwright E2E Tests (15)
This extension is covered by 15 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.