Speed up Google Analytics with a local urchin.js

Over at the Ask Apache site there is an article about Google Analytics and how to speed up your page load. You can read it here: Speed Up Google Analytics with Urchin.js Ever notice that sometimes your sites take a while to load all the way because google’s urchin.js file is taking forever? You may recognize this problem when you see something similar to this in your browsers status bar “Transferring data from google-analytics.com…” Time To Setup? 4 minutes I got tired of seeing that all the time and so I set up an automated cronjob that runs every 12 hours and downloads the latest version from google, and saves it to my website directory, then I reference /urchin.js instead of http://www.google-analytics.com/urchin.js.. and my site loads a lot faster!

Over at the Ask Apache site there is an article about Google Analytics and how to speed up your page load. You can read it here: Speed Up Google Analytics with Urchin.js

Ever notice that sometimes your sites take a while to load all the way because google’s urchin.js file is taking forever?

You may recognize this problem when you see something similar to this in your browsers status bar “Transferring data from google-analytics.com…”
Time To Setup?

4 minutes I got tired of seeing that all the time and so I set up an automated cronjob that runs every 12 hours and downloads the latest version from google, and saves it to my website directory, then I reference /urchin.js instead of http://www.google-analytics.com/urchin.js.. and my site loads a lot faster!

Take a look at the source for this page if you want to see what is going on (look at the bottom)
There are 2 pretty major things that you accomplish by hosting urchin.js locally

1. You Enable persistant connections
2. You ensure that the correct 304 Not Modified header is sent back to your site visitors instead of reserving the entire file.


Did you like this article?


0 Shares:
You May Also Like

DeviceAnywhere lets devs play with 500 phones over the net

DeviceAnywhere is a company that wires cellphone hardware into servers, which are then accessible over the internet. Mainly used by software developers and for cross platform development, instead of buying all the phones you can just rent them and use them over the internet.
Talk about the ultimate iPhone hack. Mobile Complete, a software-services company, has pulled an iPhone to pieces and lashed it to a remote-controlled server. Every input and output on the dissected iPhone is electrically hooked up to the net, providing access to would-be iPhone programmers over the web.
Read More

NEC’s VersaPro VY10A/C-4 laptop lasts 14.5-hours on a single charge

I would definitely want to have this laptop. Battery life is one of the key reasons why I like laptops, having to pull out the old charger and find a plug in a coffee shop or Bread Garden is not fun.
NEC's VersaPro VY10A/C-4 laptop lasts 14.5-hours on a single charge NEC's latest VersaPro UltraLite Type VCwon't appeal to any hardcore gamers or mobile movie cutters, but the casual joe (or jane) will likely find its hardware plenty capable of handling those everyday tasks. What's more is that this sucka claims a whopping 14.5-hours of life if you utilize the extended battery, which is pretty impressive for a 12.1-incher.
Read More