Google Analytics JavaScript Error (cannot access optimized closure in ga.js

Filed under: Geek Speak,Google Analytics Tips,Programming
Tags: , ,
By: Eric Riggleman @ 10:27 pm December 6, 2009

Well, for those of you who are developers out there, you may have noticed that if you’re using FireBug 1.4.5 , you may be getting a JavaScript error caused by in ga.js. ga.js is the JavaScript file that Google Analytics uses to allow developers to track traffic/usage statistics for their website, but recently FireBug in FireFox has been producing an error for developers everywhere.

Continue reading for screen-shots and some more details!

ga.js JavaScript Error in FireBug

ga.js JavaScript Error in FireBug

The bad news: You have to look at it, and you know that it’s going to tear you apart because you love to write code that’s error free, and you can’t stand seeing a JavaScript error on a website you’ve built, even if it’s not your fault!

The good news: It’s harmless. I’ve read elsewhere that some users have had problems with this error effecting other JavaScript code, but I haven’t seen this on any of my sites. Analytics still works properly and is still tracking your site.

The solution: Wait it out, let’s hope that FireBug can fix the underlying issue and hopefully we’ll get FireBug /Google Analytics working smoothly together sooner than later.

UPDATE:
A visitor sent in this URL from Mozilla.org, which describes a similar issue…
-and-
we checked the change log for Google Analytics and it appears that changes are being made to the setCookiePersistence function that may be part of the problem?

What are your thoughts?

Share

2 Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.