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. Online Marketing Tools
    4. Do you canonicalise UTM URLs?

    Do you canonicalise UTM URLs?

    Online Marketing Tools
    15 6 1.7k
    • 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.
    • SwanseaMedicine
      SwanseaMedicine @Eric_S last edited by

      Hi Eric,

      Thanks for your help.

      I don't quite follow; how can you add a canonical from http://www.yoursite.com/some-page?utm_source=facebook&utm_medium=social

      to

      http://www.yoursite.com/some-page

      If the former doesn't actually exist as a page, but only as a referrer, like a bit.ly?

      All of our pages are automatically self-canonicalised, but I've read that it's best practice to canonicalise all URLs back to the main.

      Cheers,

      Rhys

      LoganRay 1 Reply Last reply Reply Quote 0
      • Alick300
        Alick300 last edited by

        Hi Rhys,

        No need to do any thing if all of your pages is self canoncalised. If you want you can use

        User-agent: *
        Disallow: /*?utm

        in robots.txt as well.

        Thanks

        davebuts 1 Reply Last reply Reply Quote 1
        • LoganRay
          LoganRay @Eric_S last edited by

          Good answer Eric! 🙂

          Eric_S 1 Reply Last reply Reply Quote 0
          • LoganRay
            LoganRay @SwanseaMedicine last edited by

            Rhys,

            The self referring canonical on http://www.yoursite.com/some-page will also be applied when parameters are appended to that URL. If your pages are already self-canonicalized, you don't have anything to worry about.

            Also, what do you mean by this statement? "All of our pages are automatically self-canonicalised, but I've read that it's best practice to canonicalise all URLs back to the main." Are you saying canonicalize all pages to the homepage??

            SwanseaMedicine 1 Reply Last reply Reply Quote 0
            • SwanseaMedicine
              SwanseaMedicine @LoganRay last edited by

              Hi Logan,

              Sorry, not the homepage. I meant canonicalise all UTM URLs, like

              http://www.yoursite.com/some-page?utm_source=facebook&utm_medium=social

              to

              http://www.yoursite.com/some-page

              1 Reply Last reply Reply Quote 0
              • davebuts
                davebuts @Alick300 last edited by

                You definitely shouldn't block all user agents from crawling UTM URLs.

                This will mean that links from external sites to you UTM URLs are not crawled - so you'll be losing out on any potential benefit from those links.

                If you want to block UTMs to clean up your Moz crawl report, go with what Eric mentioned above:

                User-agent: rogerbot
                Disallow: /*?utm

                Cheers,

                David

                (note: edited comment to help avoid confusion about using UTM parameters internally)

                ThompsonPaul Eric_S 2 Replies Last reply Reply Quote 0
                • ThompsonPaul
                  ThompsonPaul @davebuts last edited by

                  RE your first point - UTM parameters should NEVER be added to links pointing to other pages within the same site. There aren't a lot of absolutes in Analytics, but that's one of them. Doing so totally borks you analytics of any visitor who clicks on of those internally-marked links.

                  1 Reply Last reply Reply Quote 0
                  • Eric_S
                    Eric_S @LoganRay last edited by

                    Thanks Logan! Of course, it was yourself that taught me.

                    Rhys, as some have said, if you use internal links my suggestion may not be for the best. Good luck with deciding how to move forward and don't forget to update us on what you did too!

                    1 Reply Last reply Reply Quote 0
                    • Eric_S
                      Eric_S @davebuts last edited by

                      I think this is an excellent point. If there is benefits from using the UTM on internal links, what should we do - is it a matter of either blocking all UTMs with the script or allowing search engines to crawl all UTMs?

                      ThompsonPaul 1 Reply Last reply Reply Quote 0
                      • ThompsonPaul
                        ThompsonPaul @Eric_S last edited by

                        You CANNOT use UTM parameters internally on a site, Eric. Doing so will ruin your Analytics data regardless of whether you block crawling or whatever.

                        To track behaviour on internal links, you apply GA's Event Tracking instead. You can also gather a great deal of useful link-clicking behaviour quite easily by utilising Enhanced Link Attribution in GA as well.

                        Paul

                        davebuts Eric_S 2 Replies Last reply Reply Quote 1
                        • davebuts
                          davebuts @ThompsonPaul last edited by

                          Hi Paul,

                          Thanks for the input. I'm definitely not saying to use UTM tracking on internal links, but I do see it happen quite a bit.

                          This has gone down a different path than what I think was intended so I'll update my first comment to help avoid any confusion.

                          Cheers,

                          David

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

                            Hey all,

                            Glad this has generated a lively discussion! For clarity, my UTM URLs are exclusively external (primarily from social or AdWords).

                            Based on the advice above, because the canonical page is self-canonicalising, I don't think I'll bother with canonicalising the UTM URLs.

                            Also, for what it's worth, I'm not a huge fan of event tracking, always found it rather clunky. I tend to use Next Page Path in analytics, or even heatmapping.

                            Cheers,

                            Rhys

                            1 Reply Last reply Reply Quote 0
                            • Eric_S
                              Eric_S @ThompsonPaul last edited by

                              Thanks Paul. Makes a lot of sense and clears things up.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              • Does urls acts as double if the trailing slashes remove?
                                RossKernez
                                RossKernez
                                0
                                6
                                56

                              • URLS in search results.
                                jasongmcmahon
                                jasongmcmahon
                                0
                                2
                                61

                              • Service name differs from our URL
                                Linda-Vassily
                                Linda-Vassily
                                0
                                2
                                81

                              • What url should I enter for Search Console
                                LoganRay
                                LoganRay
                                0
                                3
                                220

                              • URLs indexed Vs Submitted
                                StickyRiceSEO
                                StickyRiceSEO
                                0
                                8
                                4.2k

                              • Url grabber?
                                Travis_Bailey
                                Travis_Bailey
                                0
                                5
                                1.4k

                              • Advanced Regex Question for URL Matching
                                xerox432
                                xerox432
                                0
                                4
                                178

                              • Variables in URL.
                                oznappies
                                oznappies
                                0
                                5
                                951

                              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