Cache a local copy of Google Analytics' urchin.js
Speed up your website by caching Google's urchin.js locally, and then refreshing it @nightly with this here script. Some background: http://tramchase.com/blog/broken-urchintracker-calls-google-analytics-down
#!/bin/sh # urchin.js local caching by Jamie Wilkinson <http://tramchase.com> # config DIR=/directory/where/you/want/js # work URCHIN=$DIR/urchin.js wget http://www.google-analytics.com/urchin.js -O $URCHIN.tmp if [ -s $URCHIN.tmp ]; then rm $URCHIN mv $URCHIN.tmp $URCHIN chmod 644 $URCHIN fi exit 0;