The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Adding hreflang tags - better on each page, or the site map?

    Adding hreflang tags - better on each page, or the site map?

    Intermediate & Advanced SEO
    6 4 858
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • john_marketade
      john_marketade last edited by

      Hello,

      I am wondering if there seems to be a preference for adding hreflang tags (from this article).  My client just changed their site from gTLDs to ccTLDs, and a few sites have taken a pretty big traffic hit.  One issue is definitely the amount of redirects to the page, but I am also going to work with the developer to add hreflang tags.  My question is - is it better to add them to the header of each page, or the site map, or both, or something else?  Any other thoughts are appreciated.  Our Australia site, which was at least findable using Australia Google before this relaunch, is not showing up, even when you search the company name directly.

      Thanks!Lauryn

      1 Reply Last reply Reply Quote 0
      • john4math
        john4math last edited by

        I think all the implementations work just about the same.  We chose to do it in our sitemaps because that was the easiest for our developer to implement.  You should choose one or the other, there's no need to do multiple implementations.

        1 Reply Last reply Reply Quote 1
        • MattAntonino
          MattAntonino last edited by

          It depends on the setup of your site, to be honest.

          If you have a Wordpress, Joomla, etc. with really easy access header sections that you can put the code in once and it's done forevermore no matter what pages are added, that's the simplest way.

          If your dev can script it to add to each page through the sitemap, that's also a one & done way.

          The only thing you really don't want to do is have to add a hreflang tag to every new page you add to the site. As long as you can avoid that, you should be right. We had a client add it to their sitemap but the sitemap wasn't auto-generating the tag so each time they updated they had to re-implement the tags. That was a frustrating time ... now we've got it automatically updating so it's much easier to maintain.

          john_marketade 1 Reply Last reply Reply Quote 1
          • gfiorelli1
            gfiorelli1 last edited by

            First of all remember that the hreflang annotation is not necessarily needed in every page.
            Said that, it really depends on your devs facilities what method to use, if in-code or using the sitemaps.

            Both work fine, and what you should not do is using both at the same time, because the possibility of creating contradictory hreflang annotations increases.

            1 Reply Last reply Reply Quote 2
            • john_marketade
              john_marketade @MattAntonino last edited by

              Thank you so much.

              Does it suffice if we put this code in the header across the site, or does each unique url need to have a specialized url in the code.

              Ex:

              Is the following good for the entire site:

              Vs.

              AND

              AND

              Etc...up to 100+ pages....

              gfiorelli1 1 Reply Last reply Reply Quote 0
              • gfiorelli1
                gfiorelli1 @john_marketade last edited by

                Yes, your own second guess is the correct one.

                The hreflang in URL based, not domain base, so you have to specify it for every single URL that needs it.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • I have a metadata issue. My site crawl is coming back with missing descriptions, but all of the pages look like site tags (i.e. /blog/?_sft_tag=call-routing)
                  Rajesh.Prajapati
                  Rajesh.Prajapati
                  0
                  2
                  43

                • Site moved. Unable to index page : Noindex detected in robots meta tag?!
                  effectdigital
                  effectdigital
                  0
                  4
                  1.7k

                • Hreflang tags on just one page?
                  GastonRiera
                  GastonRiera
                  0
                  2
                  299

                • Adding a Canonical Tag to each page referencing itself?
                  JulesGCC
                  JulesGCC
                  0
                  9
                  233

                • Would be the network site map page considered link spam
                  DennisSeymour
                  DennisSeymour
                  0
                  2
                  42

                • Adding Meta Languange tag to xhtml site - coding help needed
                  mlm12
                  mlm12
                  0
                  9
                  2.7k

                • How would you handle 12,000 "tag" pages on Wordpress site?
                  M_D_Golden_Peak
                  M_D_Golden_Peak
                  0
                  9
                  1.1k

                • Should I use the main keyword in the title tag for the site on all category pages?
                  ikomorin
                  ikomorin
                  0
                  6
                  990

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy