Google cannot access CSS and JS files on your website

by | Aug 3, 2015 | 0 comments

Our FAQ will show you how to fix the problem which has recently started appearing in Google Analytics: “Google cannot access CSS and JS files on your website” appearing in their Google Analytics account since the end of July 2015. This directly coincides with the latest Google Panda update so CSS and JS files are now being indexed by Google too (for reasons we will discover).

In the meantime here’s what you can do to fix this error:

General Fix for All Websites

Add the following lines in your robots.txt file

User-Agent: Googlebot
Allow: .js
Allow: .css

For WordPress Websites

To solve your issue, you should add the following lines in your robots.txt:

Allow: /*.js$
Allow: /*.css$

If you don’t have a robots.txt then create one with this content:

User-agent: *
Disallow: /wp-admin/
Allow: /*.js$
Allow: /*.css$

For Magento Websites

Add the following lines to your robots.txt

User-Agent: Googlebot
Allow: .js
Allow: .css

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

elan creative

We’re like the in-house website design and support team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
hello@elancreative.studio

freelance-website-designer s

QUOTE

Get a free quote for your website design project:

Privacy Overview
Elan Creative webdesign Haarlem

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.