Magento 2 Hreflang Extension allows you to add language tags to avoid content duplication and communicate with Google about different languages and store views of your website.
Here is what an Hreflang tag looks like.
<link rel="alternate" href="http://example.com" hreflang="es-es" />
<link rel="alternate" href="http://example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="http://example.com/pt/" hreflang="pt-pt" />
Hreflang tag is essential for multi-lingual websites. This helps you to improve your SEO rankings and avoid content duplicates across multi-regional and multi-lingual pages. You can add Hreflang tags on your product pages, categories, and other store pages.
With Magento 2 Hreflang tags extension you can also set the “X-Default” store for users who do not belong to any specific storefront. Hreflang tags implementer is developed as per the guidelines defined by Google.
The following are the powerful features of the Magento 2 Hreflang Tags extension.
- Add Hreflang tags to store views, multi-store and multi-website level
- Generate tags for products, categories, CMS Pages
- Set X-Default store view for generic users
- Add both country & language code in Hreflang tags
- Select a current or the desired country
For Multi-Store View & Multi-Domain Level
Magento 2 Hreflang Tag Implementer helps you generate Hreflang tags either for the complete domain that hosts multiple stores, and store views, or apply them across different domains.
Add On Products, Categories, & CMS Pages
With the help of this extension, you can enable Hreflang tags for products, categories, and CMS pages of your eCommerce website. Let the search engine know different versions of your pages translated into multiple languages to avoid any duplicate content penalty.
Define X-Default Store For Generic Users
Hreflang Tag extension enables you to specify the X-default store for the users who belong to neither of the storefronts you have configured for various regions. Select an X default store view that is generic in nature to cater to the needs of the rest of the users.
Here is an example of an x-default tag i.e.
<link rel="alternate" href="http://example.com/" hreflang="x-default" />
Add Language & Country Codes
With Magento 2 hreflang tags implementer, you can add both language and country codes in your Hreflang tags. This helps you to target specific language/store views to specific countries.