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

Microsoft changes their mind about allowing virtulization of Vista Home and Premium

No virtualization for home or premium? Is a ploy to take more money back from the consumer to buy the "super-duper-more-expensive" version so that you can do virtualization?
Microsoft ditches about-face on virtualization restrictions at 11th hour -

Microsoft this week was about to relent and allow the (legal) virtualization of Windows Vista Home Premium and Home Basic. Then the company pulled the plug on the announcement, but there are signs that a change is still possible.

Read More...

[Ars Technica]
Read More

CE-Oh no he didn’t, part XXXV: NBC sez piracy hurts ‘corn growers’

CE-Oh no he didn't, part XXXV: NBC sez piracy hurts 'corn growers' -

Filed under: ,

Although some may argue that piracy is (at least on some level) beneficial, it looks like NBC has taken that sentiment to the opposing extreme with its latest comments. In a purported filing with the FCC calling for enhanced regulation of the internet in an attempt to stifle evil P2P activity, NBC blurted out a string of text that it surely hoped would be overlooked. Alas, hardly any ridiculous claims go unseen these days, so now we're faced with this gem: "In the absence of movie piracy, video retailers would sell and rent more titles. Movie theaters would sell more tickets and popcorn. Corn growers would earn greater profits and buy more farm equipment." There's absolutely no need for us to pick apart the aforementioned quote, after all, we're fairly certain the absurdity shines right through on its own.

[Via TechDirt, image courtesy of Monsanto]

 

Read | Permalink | Email this | Comments


Office Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life!

[EnGadget]
Read More

Featured Mac Download: Monitor your Mac with iStat menus

Featured Mac Download: Monitor your Mac with iStat menus - istat-menus.png

Mac OS X only: Donationware application iStat menus integrates system statistics like CPU, RAM, HD, and Network usage into your Mac's menubar.

iStat menus is completely customizable, so you can include only those stats that you want (enabling all of the available stats would mean a lot of menubar clutter). In the past we discussed how to display your system activity in the dock, but iStat menus takes this idea to an entirely new level of system monitoring. iStat menus is donationware, Mac OS X only.

[LifeHacker]
Read More