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

Bug Clean up for QuickPwn

Not too long after releasing and updated PwnageTool and Quickpwn, the iphone-dev.org team has released an update to QuickPwn.
We’ve had some issues with iPod touch devices and the latest version of PwnageTool for the Mac, in certain conditions incorrect permissions will be used and the keychain doesn’t save passwords. So hold on and wait for the next release, we’ll push out the updated version via Sparkle as soon as it is tested (it is being tested right now).

Annoyed, hospitalized teen unplugs neighbor’s life support

Annoyed, hospitalized teen unplugs neighbor's life support -

Filed under:

It should probably go without saying that anything connected to a power source within the confines of a hospital has a fair shot at being pertinent to the livelihood of at least one individual, but obviously a 17-year old teenager in Germany needed the memo. After the perpetual noise of what would prove to be his neighbor's life support machine "got on his nerves," he proceeded to simply unplug the device without precaution in order to ensure that "he got his peace and quiet." Of course, we can only assume that the sirens and squeals that were emitted due to his misreckoning were immensely louder than the prior hum, but some folks just love to learn the hard way. Thankfully, medical personnel stepped in and saved the man from perishing, but the teen at fault lost a lot more sleep after that whilst being questioned by police.

[Via El Reg, image courtesy of NAIAD]

 

Read | Permalink | Email this | Comments


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

[EnGadget]

Comcast fires employees for talking about P2P filtering

It looks as though Comcast has fired a few employees for talking out of script.
In the wake of the discovery that Comcast is blocking some peer-to-peer traffic (and even blocking some Lotus Notes e-mails), the company is attempting to keep the PR machine well-oiled by giving customer tech support reps some talking points. And if they deviate from the script and admit that Comcast has been using Sandvine to send forged TCP reset packets, they're likely to lose their jobs.

Adobe says Acrobat, Reader vulnerable to hacks

This is a disturbing as most white pages and manuals ranging from automobiles and computer motherboards are in PDF format. Even eBooks could be an easy way for a hacker to gain access to your machine, illegal books put online could be a trap for unsuspecting downloaders.
Adobe says Acrobat, Reader vulnerable to hacks - BOSTON (Reuters) - Adobe Systems Inc, whose software is used by millions of people to read documents sent over the Internet, said on Wednesday some of its programs contain yet-to-be-fixed flaws that make computers vulnerable to attack. On October 5, Adobe posted a notice on its Web site that said it had unknowingly incorporated vulnerabilities into versions of Adobe Reader and Acrobat software that could allow malicious programs to get on to a PC without the user's knowledge.

Fastcgi and the dreaded aborted: select() failed

I was getting reports of "500 Internal Server Errors" on two of my web servers. And after further investigation it looks like it was related to the following error.

(4)Interrupted system call: FastCGI: comm with server "php-fastcgi.fcgi" aborted: select() failed

After doing some reasearch I stumbled upon the following patch.

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/3de22bc415d3da02?pli=1