Downloading, and loading Google analytics script locally and daily with Drupal Cron
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.