Hey Scott --
Do you have Firebug installed?  What is the error in the console?

Where do you have the script include for Analytics in your code?  Since
you're offline, the script include will fail.  Then, if you have code like:
  var pageTracker = _gat._getTracker();
  pageTracker._initData();
  pageTracker._trackPageview();

It will fail.  Javascript code after this will then not get run.

Maybe do a try/catch around the Analytics code?  Or do an if statement to
see if the analytics stuff exists before running it.  Alternatively, you can
check if your online.  I think there are a few different options.

-Ben

On Wed, Sep 10, 2008 at 5:54 AM, Scott Kingsley Clark <[EMAIL PROTECTED]
> wrote:

>
> Another note, it looks like the google handle has already been started when
> Gears goes to init it. I'm not familiar with javascript as much as I am with
> PHP, but I took all the same code out of WordPress and onto a static html
> page. I started removing bits and pieces and I tried removing ONLY the
> google analytics code and gears kicked on. So it's not a WordPress issue.
> The google analytics code is being pulled in from google's site and the code
> uses the same 'google' javascript handle or variable or whatever it may
> actually technically be called.
>

Reply via email to