404 Errors for cart and account pages in Google Search Console

404 Errors for cart and account pages in Google Search Console

VD10
Tourist
18 0 0

 

Hi all,

 

Getting some annoying 404 errors in Google search console for Shopify cart and account pages.

What is the best way to deal with these errors? Will these errors affect SEO. Snapshot attached.

 

404 errors.jpg

 

Replies 4 (4)
VD10
Tourist
18 0 0

Have not taken any actions yet.

Kudosi-Carlos
Trailblazer
246 25 115

Hello @VD10 

 

Those 404s are harmless system pages. Either ignore them or block them via robots.txt if you prefer a squeaky-clean crawl report. Neither the below approach will negatively impact your rankings. Here’s how to handle them:

 

1. Just ignore them
Shopify’s account and cart endpoints aren’t meant to be indexed—Google will eventually drop them from its crawl once it sees they’re always 404 or behind a login. No need to set up redirects or lose sleep over these.

 

2. Prevent Google from crawling them at all (optional)
If you’d rather keep your Search Console tidy, you can disallow those paths in your robots.txt so Google never tries to fetch them again:

User-agent: *
Disallow: /account/
Disallow: /cart

 

Paste that into Online Store → Themes → Edit code → templates/robots.txt.liquid (create the file if it doesn’t exist), then save. Google will re-crawl your robots.txt and drop those 404s over time.

 

 

3. Remove them from your sitemap
Shopify automatically omits account/cart pages from your XML sitemap, so you don’t need to worry there.

 

- Was this helpful? Click Like or Mark as Solution to support the community.
- Kudosi Product Reviews – Instantly import high-quality reviews from AliExpress, Amazon, eBay, Etsy, Temu and anywhere you want. Build trust fast, boost conversions, and kickstart your sales.
Start free trial
VD10
Tourist
18 0 0

Thanks Kudosi,

 

The last 404 error in the screeenshot is www.mydomain.com/*

How would I disallow that in the robot.txt file?

PieLab
Shopify Partner
55 1 15

Hi there, @VD10. The 404 errors are common and typically do not affect your SEO negatively as pages like /cart and /account/logout are functional URLs not intended for indexing at all. 

 

If the URLs aren't linked publicly and are just being discovered incidentally, it's safe to ignore the errors. Cheers! 🙂

Find the answer helpful? Give us a Like or Solution marked to help future merchants!

From PieLab with love: Feel free to explore our SearchPie for SEO and DECO for Product Labels solution. Happy selling! 🙂