[Resolved] leverage browser caching google analytics js in WordPress

To resolve the error of leverage browser caching http //www.google-analytics.com/analytics.js (2 hours) in Google Pagespeed insights you need to install the plugin

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:

 

leverage-browser-caching-beheben-teaser-1030x550

 this plugin will help you to save the Google Analytics file (analytics.js) locally to be able to cache it for longer than 2 hours for a better PageSpeed score!

Another plugin that does the job equally well.

Complete Analytics Optimization Suite (CAOS)

 A plugin that inserts the Analytics tracking code into the header or footer, saves the analytics.js file locally and keeps it updated using wp_cron().
#Tags
leverage browser caching google analytics js
leverage browser caching http //www.google-analytics.com/analytics.js (2 hours)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s