undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Adding hreflang tags - better on each page, or the site map?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

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

Intermediate & Advanced SEO
4
6
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • john_marketade
    john_marketade last edited by Jun 3, 2015, 1:45 PM

    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
    • gfiorelli1
      gfiorelli1 @john_marketade last edited by Jun 4, 2015, 2:24 PM Jun 4, 2015, 2:24 PM

      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
      • john_marketade
        john_marketade @MattAntonino last edited by Jun 4, 2015, 1:23 PM Jun 4, 2015, 1:23 PM

        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 Jun 4, 2015, 2:24 PM Reply Quote 0
        • gfiorelli1
          gfiorelli1 last edited by Jun 4, 2015, 10:52 AM Jun 4, 2015, 10:52 AM

          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
          • MattAntonino
            MattAntonino last edited by Jun 3, 2015, 8:34 PM Jun 3, 2015, 8:34 PM

            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 Jun 4, 2015, 1:23 PM Reply Quote 1
            • john4math
              john4math last edited by Jun 3, 2015, 4:02 PM Jun 3, 2015, 4:02 PM

              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
              • 1 / 1
              1 out of 6
              • First post
                1/6
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              Browse Questions

              Explore more categories

              • Moz Tools

                Chat with the community about the Moz tools.

              • SEO Tactics

                Discuss the SEO process with fellow marketers

              • Community

                Discuss industry events, jobs, and news!

              • Digital Marketing

                Chat about tactics outside of SEO

              • Research & Trends

                Dive into research and trends in the search industry.

              • Support

                Connect on product support and feature requests.

              • See all categories

              Related Questions

              • BobGW

                How many pages for a new site for Google to sink it's teeth into

                page authority on-page seo internal linking site structure content development

                Hello, I've got a high traffic site I'm building. Is 20 articles enough to start or should I start with 40 or 60 to not flop? I've got good internal linking. I've got: 3 10X articles
                17 cornerstones so far. Worked hard so far. Do I launch? or wait for 40? 60? I know thousands is best. Competitors have much more. Thank you, Bob

                Intermediate & Advanced SEO | Dec 3, 2024, 10:10 AM | BobGW
                0
              • BrandBuilder

                New Site (redesign) Launched Without 301 Redirects to New Pages - Too Late to Add Redirects?

                We recently launched a redesign/redevelopment of a site but failed to put 301 redirects in place for the old URL's. It's been about 2 months. Is it too late to even bother worrying about it at this point? The site has seen a notable decrease in site traffic/visits, perhaps due to this issue. I assume that once the search engines get an error on a URL, it will remove it from displaying in search results after a period of time. I'm just not sure if they will try to re-crawl those old URLs at some point and if so, it may be worth it to have those 301 redirects in place. Thank you.

                Intermediate & Advanced SEO | Sep 18, 2015, 7:48 PM | BrandBuilder
                0
              • 94501

                Better to 301 or de-index 403 pages

                Google WMT recently found and called out a large number of old unpublished pages as access denied errors. The pages are tagged "noindex, follow."  These old pages are in Google's index. At this point, would it better to 301 all these pages or submit an index removal request or what? Thanks... Darcy

                Intermediate & Advanced SEO | Mar 31, 2015, 1:21 PM | 94501
                0
              • VanguardCommunications

                Is it okay to copy and paste on page content into the meta description tag?

                I have heard conflicting answers to this.   I always figured that it was okay to selectively copy and paste on page content into the meta description tag.....especially if the onpage content is well written.    How can it be duplicate content if it's pulling from the exact same page? Does anybody have any feedback from a credible source about this? Thanks.

                Intermediate & Advanced SEO | Jul 22, 2014, 8:50 PM | VanguardCommunications
                1
              • MSWD

                Splitting a Site into Two Sites for SEO Purposes

                I have a client that owns a business that really could be easily divided into two separate business in terms of SEO.  Right now his web site covers both divisions of his business. He gets about 5500 visitors a month.  The majority go to one part of his business and around 600 each month go to the other. So about 11% I'm considering breaking off this 11% and putting it on an entirely different domain name.  I think I could rank better for this 11%.  The site would only be SEO'd for this particular division of the company.  The keywords would not be in competition with each other. I would of course link the two web sites and watch that I don't run into any duplicate content issues. I worry about placing the redirects from the pages that I remove to the new pages.  I know Google is not a fan of redirects.  Then I also worry about the eventual drop in traffic to the main site now.  How big of a factor is traffic in rankings? Other challenges include that the business services 4 major metropolitan areas. Would you do this?  Have you done this?  How did it work? Any suggestions?

                Intermediate & Advanced SEO | Oct 15, 2015, 5:04 PM | MSWD
                0
              • AndrewY

                Max # of Products / Links per Page on E-Commerce Site

                We are getting ready to re-launch our e-commerce site and are trying to decide how many products to list per category page.  Some of of our category pages have upwards of 100 products.  While I'd love to list ALL the products on the root category page (to reduce hassle for customer, to index more products on a higher PR page), I'm a little worried about having it be too long, and containing too many on-page links. Would love some guidance on: Maximum number of internal links on a page If Google frowns on really long category pages Anything else I should be considering when making this decision Thanks for your input!

                Intermediate & Advanced SEO | Feb 25, 2012, 3:28 AM | AndrewY
                2
              • pulseseo

                Does Google crawl the pages which are generated via the site's search box queries?

                For example, if I search for an 'x' item in a site's search box and if the site displays a list of results based on the query, would that page be crawled? I am asking this question because this would be a URL that is non existent on the site and hence am confused as to whether Google bots would be able to find it.

                Intermediate & Advanced SEO | Nov 7, 2011, 11:56 AM | pulseseo
                0
              • EricPacifico

                Should the sitemap include just menu pages or all pages site wide?

                I have a Drupal site that utilizes Solr, with 10 menu pages and about 4,000 pages of content. Redoing a few things and we'll need to revamp the sitemap. Typically I'd jam all pages into a single sitemap and that's it, but post-Panda, should I do anything different?

                Intermediate & Advanced SEO | Jul 14, 2011, 3:44 AM | EricPacifico
                0

              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
              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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.