PDA

View Full Version : Speed up Google Analytics


GilbertZ
05-12-2007, 02:27 PM
I ran into a fascinating article today on askapache.com/webmaster/faster-google-analytics-with-a-local-urchinjs.html (anchor link was: speeding up analytics). I don't know if any Google officials post here, but I'm sure they follow it...so questions:
1. Does google condone taking the actions suggested here?
2. Is the following a mistake on Google's part? And if so, will they correct it?
Another big big reason is that even though Cache-Control headers are correctly set by google-analytics when serving urchin.js, Instead of responding to an If-Modified-Since header correctly with a 304 Not Modified header, indicating the file has not been modified, google-analytics instead returns the entire urchin.js file again, thus rendering the cache-control void.

htaccesselite
05-17-2007, 03:32 AM
I ran into a fascinating article today on askapache.com/webmaster/faster-google-analytics-with-a-local-urchinjs.html (anchor link was: speeding up analytics). I don't know if any Google officials post here, but I'm sure they follow it...so questions:
1. Does google condone taking the actions suggested here?
2. Is the following a mistake on Google's part? And if so, will they correct it?

I saw this article awhile ago and the discussion answered your questions.

1. Google does not specifically recommend this, but staff have said this is a good idea and does not violate any TOS or anything like that. Each person who starts using this technique results in major bandwidth and load reductions on googles servers.

2. Yes it appears that google is making a mistake here, perhaps purposefully so that urchin.js is never cached. But a Google Employee said that their have only been 1 or 2 changes to urchin.js the past year. Note this was said before the latest upgrade announcement.

GilbertZ
05-17-2007, 09:04 PM
Thanks for answering...I thought it was going to be a replyless thread...

I saw this article awhile ago and the discussion answered your questions.
I was asking because it's always good to double check sources, plus I wanted to get up to date info.