Downloading, and loading Google analytics script locally and daily with Drupal Cron I'm using Drupal Google Analytics module for some time; It works perfectly and gives me the data I need.

Yet, since instilling it, I get the following notification on Google Pagespeed Insights:



Do you know a way to load the script locally and daily in Drupal so to prevent this notification?

Is there a way to make add a automation to Cron to download the famous ga.js script daily from Google, load it, and then, the next day, delete it, and repeat the process?
This has been built into the Google Analytics module for sometime. In the configuration form, under Advanced Settings there's a Locally cache tracking code file checkbox. It will persist a local cached version of the JS code for day before a cron run will re-cache it.