Hreflang module for Prestashop is very useful for sites that have similar content in multiple languages, the module tells Google and other search engines that your site has pages that are similar in meaning but aimed at different languages and/or regions by using hreflang tags.
Hreflang is code which will be placed in head section of your site to tell search engines that your site has pages that are similar in meaning but aimed at different languages and/or regions. Google official document about Hreflang.
For example, you have a page to sell strawberries, the page is available in French and English, urls of the page are http://example.com/strawberry (for English) and http://example.com/fraise (for French).
This Hreflang module will add this code to the
Why use hreflang tags? What’s the SEO benefit.
1. Let Search engines to send users to right pages. If a user from UK finding your site on Google, with this module search engines will send the user to the English version http://example.com/strawberry Without using hreflang, the user may be sent to the French version, obviously the user will leave your site, you will lose the user and your site will have high bouncing rate.
2. Prevents the problem of duplicate content.
Ability to adjust hreflang.
For example if you have a website which aimed at Australia, by default PrestaShop will use this hreflang tag.
<link rel="alternate" href="http://example.com/strawberry" hreflang="en-us" />
By actually, using “en-au” would make more sense if you armed at Australia only.
<link rel="alternate" href="http://example.com/strawberry" hreflang="en-au" />
Another example, if your site aims at all English speaking people, then use “en” would be better.
<link rel="alternate" href="http://example.com/strawberry" hreflang="en" />
“x-default” specifies where a user should be sent when none of the languages match the user\’s browser settings.
In the strawberry example we mentioned above, if a user search in Spanish, none of those two hreflang tags match, when that happens, the x-default will tell search engines to redirect users to English version.
Compatible with Multistore feature
It’s popular to use the PrestaShop’s multistore feature to create stores for different languages and regions instead of using Multilanguage feature, there are several advantages of doing that, like, each store can have completely design, each store can have different blocks. Then urls will be
Search engines will take them as two different sites, that’s wrong. With this module, it will add hreflang tags like this to each site to tell search engines they are from the same site but aimed at different languages and regions.
Compatible with ST-themes’ blog module
This module can add hreflang tags to pages created by the ST-themes’ blog module.
- PrestaShop 1.7
- PrestaShop 1.6
- All themes
How to install and upgrade.
This PrestaShop hreflang module can be installed easily without editing any files.
How to install? Use the “Upload a module” button on “BO > Modules” page to install the module.
How to upgrade? Use the “Upload a module” button on “BO > Modules” page to upload the new version to your site, it’s the same as how to install, don’t worry all your data will be safe, PrestaShop will just upload updated files to your site, it won’t reinstall this module.
How to get support.
If you have any questions with the module, post them out on the prestashop module support forum, we’ll help you out.
PrestaShop 1.7’s hreflang feature is basic, it can’t do any major features of this module mentioned above. If you install this module, then PrestaShop 1.7’s hreflang feature will be disabled.
Here is a free online hreflang validater http://flang.dejanseo.com.au/