joshbreckman

Google Analytics Followup...

So yesterday afternoon I received an email from Google saying they were incorporating my change into the next release of Google Analytics. The ga.js file always point's to google's servers, so this should fix the problem fairly immediately once the change goes live.

I also want to address the following two "issues" brought up:

Issue #1: Is Microsoft to blame? Is Google to blame? Why did I say "you should know better" to Google?

Of course Microsoft is to blame for the root problem. They made a crummy web browser and this has made every web developer's life difficult ever since.

However, Google encourages webmasters to put a tiny snippet of javascript on the bottom of every single page on their site, which in turn references a centralized javascript file. This one file is referenced on millions of pages! Any change they make to this file affects these pages immediately! (Well... as soon as people's cache runs out)

Call me what you want, but I think this puts the burden on Google to make sure their stuff really works. It's their job to make sure that Google Analytics stays out of everyone's way and doesn't create any new problems on the web. Even if it means working around Microsoft issues. Any changes to ga.js should be tested in every way on every type of page before being pushed live. It simply affects too many pages not to. They should know better.

Issue #2: Apparently I was being sensationalistic and think that I never make mistakes.

Sorry?

I found a fairly serious problem in a javascript file referenced by millions of pages and I got excited about it. I found a solution and wanted to get it to google to get it fixed.

The only reason I know so much about these memory leaks is that I am often fixing them. It's a pain in the neck, but you learn what to look for after a while.

Someday I'll make a mistake. I'll write a sweet-ass blog entry when it happens.

from XKCD Fan on September 11, 2008:

Sweet ass-blog... Damn you XKCD, you've ruined my life.

from Gabriel Kent on September 11, 2008:

word. thanks for the fix.

from anonymous on September 11, 2008:

it's all good

from anon on September 11, 2008:

Don't worry about people moaning at you for blogging the way you did - if you'd sent a well mannered email to Google do you think they'd have bothered to do a thing about it?

I know from experience (with another widely used api on a mobile handset) that the only way you get changes is if you plaster the ineptitude across the web and make sure people know about it, it tends to speed things up rather a lot.

Don't go changing!

from Jimm Jo JO on September 11, 2008:

Nicely done dude. Looks good!

www.privacy.mx.tc

from BobFromHuddle on September 12, 2008:

Good work, I say - you found a bug, you fixed the bug, it happened to be a bug that will earn you attention. Ignore the bad, enjoy the good - you earned it.

from anonymous on September 14, 2008:

always point's to???

Your English teacher should be proud of you!

from Phil on October 9, 2008:

Josh > all