Archive for November, 2008

Getting google analytics to play nice with your pages

My biggest peeve at the excellent Google Analytics is the fact that it uses document.write to insert its scripts. This can make your page hang for visitors (one blog post I read said up to 5 seconds).
I wrote a tiny library which will use a non-blocking appendChild and then poll for analytic's existence. [...]