logo

We’re like the in-house digital marketing and web development team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you..

Birmingham office:
+44 (0)121 288 3449

 

Amsterdam office:
+31 (0)20 8932923

 

nina@elancreative.studio

Google cannot access CSS and JS files on your website
3841
post-template-default,single,single-post,postid-3841,single-format-standard,qode-core-1.3,ctcc-exclude-AN,ajax_fade,page_not_loaded,,pitch child-child-ver-1.0.0,pitch-ver-2.3, vertical_menu_with_scroll,smooth_scroll,side_menu_slide_from_right,grid_1300,blog_installed,wpb-js-composer js-comp-ver-6.3.0,vc_responsive

Google cannot access CSS and JS files on your website

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

Nina Young About the author

I studied mathematics at university, taught myself software development, honed my skills with multinational companies such as IBM and have set up and sold my own businesses. My perspective covers the all important period when a business moves from small and successful to substantial and market-leading, and my personal experience allows me to provide online solutions that give business leaders mastery of their online presence and control over business development.

No Comments

Leave a Comment: