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. How does one know where to insert the right strips of coding on the right pages for Canonical Links?

    How does one know where to insert the right strips of coding on the right pages for Canonical Links?

    Intermediate & Advanced SEO
    6 4 745
    • 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.
    • FrontlineMobility
      FrontlineMobility last edited by

      On my Website, I am the only SEO optimizer wizard person. I have to teach myself everything and I get overwhelmed a lot. I recently started using SEOMOZ and on my report it stated we had duplicate page titles and that it was bad and should be fixed quickly. So I did my research and found that I needed to use canonical links to reference one page to be indexed. However my problem lies in exactly how to add this coding to my site. I greatly appreciate any help or at least looking at this question.

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

        This is the format of the canonical tag

        You have to add this within the tags. But to getting the current page URL involves dynamic scripting and it depends on which CMS you are using.

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

          Hey

          Quite easy really just add the following snippet

          rel="canonical" href="Your URL Here" />

          This should be placed between the tags of the page.

          BUT.......

          Make sure you are using this correctly, if you have duplicate page titles due to canonicalisation (http://www.seomoz.org/beginners-guide-to-seo/basics-of-search-engine-friendly-design-and-development) then that's fine but if its just because you have duplicate page titles across your pages then they need to be rewritten.

          Hope that helps

          FrontlineMobility 1 Reply Last reply Reply Quote 3
          • FrontlineMobility
            FrontlineMobility @CraigAddyman last edited by

            Thanks for the coding, I still have a part left hanging at least maybe in my own mind it is. How does that strip of code reference the correct pages together? Does it just see there are duplicate pages and bundle them for the Search Engine? or do I have to place other codes in my site to target those pages?

            ClickValueMedia CraigAddyman 2 Replies Last reply Reply Quote 0
            • ClickValueMedia
              ClickValueMedia @FrontlineMobility last edited by

              Hi Justin,

              Yes you have to use the code on all pages that are marked as duplicate. So for example if you have 5 pages shoeing as duplicate content you will have one as main page or the master or whatever you want to call it. You tehn place the code supplied by Aaran and Craig in the head section of the other 4 pages.

              D

              1 Reply Last reply Reply Quote 0
              • CraigAddyman
                CraigAddyman @FrontlineMobility last edited by

                Hey Justin,

                Basically the bots follow the links so it might follow example.com and example.com/index.html once it get to your actual page it then reads the canonical tag which indicates which version is the correct version to use.

                Hope that helps

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Best way to link to 1000 city landing pages from index page in a way that google follows/crawls these links (without building country pages)?
                  lcourse
                  lcourse
                  0
                  7
                  54

                • Links / Top Pages by Page Authority ==> pages shouldnt be there
                  Neckermann
                  Neckermann
                  0
                  5
                  120

                • 301 Externally Linked, But Non-Producing Pages, To Productive Pages Needing Links?
                  OlegKorneitchouk
                  OlegKorneitchouk
                  0
                  4
                  103

                • Does Google still don't index Hashtag Links ? No chance to get a Search Result that leads directly to a section of a page? or to one of numeras Hashtag Pages in a single HTML page?
                  Muhammad_Jabali
                  Muhammad_Jabali
                  0
                  3
                  748

                • First Link on Page Still Only Link on Page?
                  GlobeRunner
                  GlobeRunner
                  0
                  3
                  97

                • Does having multiple links to the same page influence the Link juice this page is able to pass
                  AlanMosley
                  AlanMosley
                  0
                  5
                  796

                • Do in page links pointing to the parent page make the page more relevant for that term?
                  IM_Learner
                  IM_Learner
                  0
                  6
                  747

                • How is the link juice delivered between duplicate links on one page?
                  Dan-Petrovic
                  Dan-Petrovic
                  0
                  4
                  874

                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