Title: Leverage browser caching for google-analytics.com/analytics.js
Last modified: August 31, 2016

---

# Leverage browser caching for google-analytics.com/analytics.js

 *  [Valdinia](https://wordpress.org/support/users/valdinia/)
 * (@valdinia)
 * [10 years ago](https://wordpress.org/support/topic/leverage-browser-caching-for-google-analyticscomanalyticsjs/)
 * Checking my site with seranking I get this recommendation:
    Leverage browser 
   caching for the following cacheable resources: [https://www.google-analytics.com/analytics.js](https://www.google-analytics.com/analytics.js)(
   2 hours) How could I accomplish this by using your plugin? Thank you
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [markworthen](https://wordpress.org/support/users/markworthen/)
 * (@markworthen)
 * [10 years ago](https://wordpress.org/support/topic/leverage-browser-caching-for-google-analyticscomanalyticsjs/#post-7441644)
 * I received a similar suggestion using [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights/):
 * > Setting an expiry date or a maximum age in the HTTP headers for static resources
   > instructs the browser to load previously downloaded resources from local disk
   > rather than over the network.
   >  Leverage browser caching for the following cacheable
   > resources: [http://www.google-analytics.com/analytics.js](http://www.google-analytics.com/analytics.js)(
   > 2 hours)
 * Thanks,
 * _[ Signature moderated ]_
 *  [markworthen](https://wordpress.org/support/users/markworthen/)
 * (@markworthen)
 * [10 years ago](https://wordpress.org/support/topic/leverage-browser-caching-for-google-analyticscomanalyticsjs/#post-7441662)
 * Ah, I found the answer on a StackOverflow post:
 * [PageSpeed Insights 99/100 because of Google Analytics – How can I cache GA?](http://stackoverflow.com/questions/29162881/pagespeed-insights-99-100-because-of-google-analytics-how-can-i-cache-ga#)
 * TL;DR – Don’t worry about it, as any solution is likely to cause more problems
   than it’s worth.
 * If you’re curious, the replies offer lots of technical details, most of which
   are over my head, but for the technically advanced it might be interesting.
 * This is my favorite response to the OP’s question:
 * “…run the Google insights URL on Google insights itself, have a laugh, relax 
   and get on with your work.” _[[link to full response](http://stackoverflow.com/a/33008777/3981406)]_
 * Here’s an image of the results when you run PageSpeed Insights on itself:
    [http://i.imgur.com/4ThHDLX.png](http://i.imgur.com/4ThHDLX.png)
 * ;^]

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Leverage browser caching for google-analytics.com/analytics.js’ is closed
to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [analytics.js](https://wordpress.org/support/topic-tag/analytics-js/)
 * [expiry date](https://wordpress.org/support/topic-tag/expiry-date/)

 * 2 replies
 * 2 participants
 * Last reply from: [markworthen](https://wordpress.org/support/users/markworthen/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/leverage-browser-caching-for-google-analyticscomanalyticsjs/#post-7441662)
 * Status: not resolved