How to Add Hreflang Language Tag in Blogger Blog

 

How to Add Hreflang Language Tag in Blogger Blog












Have you came across above error in Google Search Console while tracking your                             site's search performance?

The error clearly states that "Your site has no hreflang tags. Google uses hreflang                                 tags to match the user's language preference to the right variation of your pages."

If you have no idea about hreflang tag. Don't worry, we would give a brief                                 introduction here and then tell you how to add it in your blog.
The hreflang tag (also referred to as rel="alternate" hreflang="x") tells                         Google and other search engines about the language of our blog or website.                           Based on the hreflang tag, Google and other search engines serve the                                    correct language or regional URL in Search results.

For more details on hreflang tag, like what is it, when should we use it,                                         what’s the SEO benefit of using this tag.

Let's directly jump to our core topic of discussion today. 

Adding hreflang tag in our Blogger is very simple and easy.                                                                 Just follow the below steps:
  1. Add the HTML link element containing hreflang attribute in the header section                                  (i.e below <head> tag) of your blog/website's template editor. For example,


    Targeting English speakers 
    <link rel="alternate" href="http://example.com" hreflang="en" />
      Targeting English speakers in Ireland
    <link rel="alternate" href="http://example.com/en-ie" hreflang="en-ie" />
    Here, 
    • The href attribute refer to the URL of our blog. Therefore just replace             "example.com" with the URL of your blog 
    • The hreflang attribute value refers to the language and optionally                                 the region of our alternate URL. We should keep in mind that specifying                        the region alone is not valid. We could either specify the language tag or             combination of language and region code separated by hyphen(-).                                   For configuring this follow the step 2 
  2. Configuring the language & region values
    Depending upon your websites that targets users from different country and/or                                 different regions, you could set the hreflang attribute value.                                                     You could find the different language tags and region code from below links:
    https://en.wikipedia.org/wiki/ISO_639-1 (language in ISO 639-1 format)
    https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 (region in ISO 3166-1 Alpha 2 format)

    Let's see some examples to understand it better.
    • en: English content, independent of region (valid)
    • en-ie: English content, for Ireland region (valid)
    • ie: for Ireland region (invalid, as only specified the region )
That's it. You have done it. If you have any suggestion or any query then don't                                       forget to put your comments in the comment box. 

No comments:

Post a Comment