Why Google Search Console reports that your Shopify store's cart.js is blocked

A JSON-LD for SEO customer emailed me with a problem they were having with Google Search Console and blocked pages.

Hi I need your help big time please 266 pages have come backed blocked from Google

Google Search Console blocked cart.js

Those blocked resources aren't a problem, that's actually what you want.

The /cart.js url is blocked by Shopify because that is the code that runs when someone adds a product to their cart.

Shopify blocks it because they don't want Google or other search engines to use that url, otherwise they'd be adding products to carts and clearing out your inventory.

What usually happens is that your theme references the /cart.js url on the product page, which is getting detected by Google. In this case, it's on 266 product pages which is why there are 266 errors reported.

It's a core part of Shopify and your theme. So even though Google Search Console considers an error, you can just ignore it.

Though I can't promise any results with it, after seeing the additional traffic and sales some customers are getting, installing JSON-LD for SEO might be one of the highest ROI decisions you make today.

Install JSON-LD for SEO

Eric Davis

Would you like to get a daily tip about Shopify?

Sign up for Eric's Daily Shopify Tips to get my daily email with a tip for Shopify every morning.

Each tip includes a way to improve your store: customer analysis, analytics, traffic, SEO, customer acquisition, Rich Results, CRO... plus plenty of puns and amazing alliterations.

Plus you'll get free access to my Premium Resource Center for free.

Join 4,400+ other Shopify store owners and sign up before the next tip is sent.

I won't send you spam. Unsubscribe at any time. Powered by ConvertKit

Topics: Google search console Seo

Would you like a daily tip about Shopify?

Each tip includes a way to improve your store: customer analysis, analytics, customer acquisition, CRO... plus plenty of puns and amazing alliterations.