Tutorial: How to add Hreflang Tags to localize your website – Day Translations

Tutorial: How to add Hreflang Tags to localize your website – Day Translations

September 16, 2019 8 By Bernardo Ryan


today web sites around the world serve users content translated in multiple languages that’s how everyone can get access to the internet around the world Google uses HREEFLANG attributes to make sure the right language is shown in the right region today we’re going to show you how to create different language URL for your website in other words we’re going to teach you HREFLANG tags HREFLANG tags tell Google what language your pages in by looking at its URL so let’s pretend that your website is called we love to program dot com you want to launch the Spanish version of your website for customers in Spain so you can let Google know that this page is the Spanish version of the english equivalent in a few ways number 1 HTML link element in the header in the main HTML head section of we love to program dot com you can add a link element that points to the spanish version like this simply go to your url adding an es local at the beginning also it’s required to link the English page with the Hreflang tag so we include the alternate version has an en locale at the end similarily at the same a Hreflang tags on the Spanish page es dot we love the program dot com this ensures that the two pages are interlinked and Google will identify them as different language versions of the same page number two your site map if you don’t want to use hreflang markup at all then you can simply submit your sitemap in its different language versions this is a simple way of achieving the same results here we are adding the Spanish version of the URL links to the english version and just like we did for the HTML link process we need to link the English page to the Spanish page too again we can use hreflang tags in two ways one HTML link element in the header or two adding the tags directly on your sitemap for effortless localization of your website contact us and let us manage it for you thank you for watching