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. E-Commerce: Random Cart ID Redirects

    E-Commerce: Random Cart ID Redirects

    Technical SEO Issues
    6 3 479
    • 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.
    • G2W
      G2W last edited by

      Hi All,

      I'm having an ecommerce cart issue. Basically, each time a purchase is made, the cart pops up with a unique id (eg www.mysite.com/cart.php?action=add&product_id=3728), This is being caught by MOZ scans as an individual page in some instances.

      Could I simply add Disallow: /cart.php to my robots.txt to nix this issue? In theory it should keep all subsequent query strings from being indexed, right?

      Thanks!

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

        Generally you always disallow the cart page in e-commerce sites. The reason being is that some spiders like baidu, will make fake shopping carts when spidering your site. If you keep track of your abandoned cart rate, this will wreak havoc on your stats.

        When you disallow the cart.php, it will keep the whole page from being indexed, which ideally is not a bad thing. More than likely the way your cart works is it uses ajax to post the product to that page silently to add it to the cart. But at the same time if you go to site.com/cart.php it will more than likely take you to the cart screen. There really is no inherit value in having that page indexed by search engines. If people are coming to that page, it will also skew your numbers when you are trying to figure why people are dropping out of the checkout process.

        CleverPhD 1 Reply Last reply Reply Quote 4
        • CleverPhD
          CleverPhD @LesleyPaone last edited by

          I would add, you want to also no follow, noindex all links to any of your shopping cart pages.  Ideally, if you have your cart pages in a given folder, you can disallow the whole folder and take care of things as a group.

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

            Thanks, Lesley. I've just added the cart page to the disallow list.

            LesleyPaone 1 Reply Last reply Reply Quote 0
            • LesleyPaone
              LesleyPaone @G2W last edited by

              No problem. What platform do you use, because you can include what CleverPhD said as well, it really just depends on how the headers of the template are generated. I am not familiar with a platform that uses directories for the cart pages, but I am sure that some exist. One thing to watch out for if you try to no follow a whole directory is, some carts put all of their secured (ssl) pages in the same place. This could include the contact page, which you want to leave index able. If you are not familiar with coding in the platform, I would avoid it, because if you got the conditional code wrong, you could de-index a portion of your site accidentally.

              G2W 1 Reply Last reply Reply Quote 0
              • G2W
                G2W @LesleyPaone last edited by

                I'm using Interspire's shopping cart system with a few modifications. There's absolutely no official support for it at this point, so I appreciate your help.

                The cart is a standalone php page, so I think that just blocking that off should be sufficient.

                Thanks!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Moving E-Commerce Store to Subdomain?
                  Everett
                  Everett
                  0
                  10
                  159

                • E-commerce website
                  AbacoDigital
                  AbacoDigital
                  1
                  8
                  177

                • E commerce SEO
                  SEO5Team
                  SEO5Team
                  0
                  4
                  84

                • Impact of keywordchange for e-commerce
                  David-Kley
                  David-Kley
                  0
                  3
                  54

                • Sitemap Question - E-commerce - Magento
                  iFong
                  iFong
                  0
                  4
                  195

                • Redirect a 301 Redirect
                  RedCaffeine
                  RedCaffeine
                  0
                  5
                  98

                • Canonicalization Issue | E-commerce
                  JesusD
                  JesusD
                  0
                  5
                  194

                • Changing E Commerce platforms
                  RyanKent
                  RyanKent
                  0
                  8
                  662

                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