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. Technical SEO Issues
    4. Hreflang tag implentation

    Hreflang tag implentation

    Technical SEO Issues
    15 3 765
    • 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.
    • ahyde
      ahyde @BlueprintMarketing last edited by

      Thanks for running this.

      The deeptrawl says that there are no hreflang tags in place. If you view the sitemap.xml files on the site you can't see any there either. However they're definitely in the files I'm giving to my colleague to upload.

      I matched the structure of the tag to the two case studies you put in your first post...

      BlueprintMarketing 1 Reply Last reply Reply Quote 0
      • BlueprintMarketing
        BlueprintMarketing @ahyde last edited by

        • Here is the next test
        • Use this link to see in the the site
        • http://crawl.blueprintmarketing.com/projects/reports/69930?ro=991e4a1c6d5086bd0bd4d0965e3b6037ed69b692
        • PDF
        • http://cl.ly/3G2h3u464400
        • Files
        • http://cl.ly/3G2h3u464400
        • http://searchengineland.com/how-to-implement-the-hreflang-element-using-xml-sitemaps-123030
        • https://search.nerdydata.com/search/#!/searchTerm=http://www.swann.com//searchPage=1/sort=pop
        • sitemap
        • http://cl.ly/text/1d2E2h3P022J
        • http://cl.ly/text/0t0T3T2p210h
        • https://cl.ly/Xjb3
        1 Reply Last reply Reply Quote 0
        • BlueprintMarketing
          BlueprintMarketing last edited by

          Look at your site maps

          • http://www.swann.com/us/sitemap.xml
          • http://www.swann.com/au/sitemap.xml
          • http://www.swann.com/ca/sitemap.xml
          • http://www.swann.com/uk/sitemap.xml

          See https://support.google.com/webmasters/answer/2620865?hl=en

          D5MUoY2.png

          ahyde 2 Replies Last reply Reply Quote 1
          • ahyde
            ahyde @BlueprintMarketing last edited by

            This is the beginning of my sitemap for the UK subfolder, as far as I can see we're following both the case studies you posted and the Google advice on the structure. But as you point out when you view the sitemap online it's not showing the hreflang tags.

            <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>http://www.swann.com/uk/dvrs-kits</loc>
            <lastmod>2014-07-23</lastmod>
            <changefreq>daily</changefreq>
            <priority>0.5</priority></url>
            <url><loc>http://www.swann.com/uk/dvrs-kits/1080p</loc>
            <lastmod>2014-07-23</lastmod>
            <changefreq>daily</changefreq>
            <priority>0.5</priority></url>
            <url><loc>http://www.swann.com/uk/dvrs-kits/960h</loc>
            <lastmod>2014-07-23</lastmod>
            <changefreq>daily</changefreq>
            <priority>0.5</priority></url></urlset>

            1 Reply Last reply Reply Quote 0
            • ahyde
              ahyde @BlueprintMarketing last edited by

              I think I might see the problem. I'm only referencing the alternative pages with the hreflang tag, I've not included the site itself. it should be:

              <url><loc>http://www.swann.com/uk/dvrs-kits</loc>
              <lastmod>2014-07-23</lastmod>
              <changefreq>daily</changefreq>
              <priority>0.5</priority></url>

              ahyde 1 Reply Last reply Reply Quote 0
              • ahyde
                ahyde @ahyde last edited by

                I've updated the site maps but the hreflang tags still aren't showing when you view the site map...

                BlueprintMarketing 1 Reply Last reply Reply Quote 0
                • BlueprintMarketing
                  BlueprintMarketing @ahyde last edited by

                  So I will test the site map agin
                  after you made the XML sitemap did you tell Google about language and country targeting?
                  Use tell Google Webmaster tools to Geo target the subfolders?
                  http://www.google.com/webmasters/
                  Check your listing all over the world
                  
                  http://www.isearchfrom.com/
                  
                  https://support.google.com/webmasters/answer/2620865?hl=en&ref_topic=2370587
                  
                  You need the site map to look like this.
                   <url><loc>http://www.example.com/english/</loc> **This is the URL we want to be indexed**
                      <xhtml:link rel="alternate" <strong="">This tells Google there is an alternate version of the URL
                             hreflang="de" **This tells Google the language we’re targeting with the alternate version (German)**
                             href="http://www.example.com/deutsch/" **This tells Google the URL of the alternate version**
                             />
                      <xhtml:link rel="alternate" <strong="">This tells Google that there is an alternate version of the URL
                             hreflang="de-ch" **This tells Google the language and country we’re targeting with the alternate version (German and Switzerland)**
                             href="http://www.example.com/schweiz-deutsch/" **This tells Google the URL of the alternate version**
                             />
                      <xhtml:link rel="alternate" <strong="">This tells Google that there is an alternate version of the URL
                             hreflang="en" **This tells Google the language we’re targeting with the alternate version (English)**
                             href="http://www.example.com/english/" **This tells Google the URL of the alternate version**
                             /></xhtml:link></xhtml:link></xhtml:link></url> 
                  

                  Important note - the example above is only for one URL which has three alternate versions. The following code is an example of a full XML sitemap which includes three URLs, each with three alternate versions.

                   <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url> <loc>http://www.example.com/english/</loc> </url> <url> <loc>http://www.example.com/deutsch/</loc> </url> <url> <loc>http://www.example.com/schweiz-deutsch/</loc> </url></urlset> 
                  
                  I will use Deep Crawl to look for hreflang it site maps.
                  
                  You might want to use the header way if it is not working.
                  
                  Thomas
                  
                  ahyde 1 Reply Last reply Reply Quote 0
                  • gfiorelli1
                    gfiorelli1 last edited by

                    The answers you received here in the thread are correct:

                    your sitemap implementation is wrong, because it commits a classic mistake: self-referencing hreflang annotations are missing.

                    In other words, you must declare that the URL http://www.example.com/uk/dvrs-kits is the one Google must show to English speaking users in the UK.

                    So you must add this:

                    Seeing the changes taking place in the SERPs is not immediate.

                    ahyde 1 Reply Last reply Reply Quote 2
                    • ahyde
                      ahyde @BlueprintMarketing last edited by

                      Thanks Thomas. That is how our sitemap now reads. It just seems odd that when you access map via a browser the hreflang tags don't appear...

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

                        Thanks.. it took me a while but I did realise that one eventually.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Setting up hreflang tags
                          Roman-Delcarmen
                          Roman-Delcarmen
                          0
                          6
                          401

                        • H1 Tags the same as Title Tags and other meta questions
                          Houses
                          Houses
                          0
                          3
                          629

                        • HREFLANG No Return Tag Error
                          SoulSurfer8
                          SoulSurfer8
                          0
                          9
                          4.4k

                        • Hreflang Tags - error: 'en' - no return tags
                          DirkC
                          DirkC
                          0
                          4
                          645

                        • Using hreflang tags properly.
                          absoauto
                          absoauto
                          0
                          3
                          125

                        • Canonical Tags on Parameter Pages With Hreflang
                          TeespringMoz
                          TeespringMoz
                          0
                          3
                          860

                        • Do H2 tags carry more weight than h4 tags?
                          evolvingSEO
                          evolvingSEO
                          0
                          3
                          1.3k

                        • Hreflang Tag great for Google, what about Bing or others?
                          MattAntonino
                          MattAntonino
                          0
                          2
                          327

                        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