Author
Message
DamonHD
Posts:6158
Moderator
Member since: 2006-11-30
:: Quote ::
Subject: Analytics Async JavaScript
Hi,

I finally switched my Analytics JavaScript from the ancient Urchin code to the new shiny async code, though I've left it at the foot of the page for now for safety.

On the basis of less than a day's use I'd say I at least haven't broken anything! B^>

Is everyone else already using the async code (which is intended to avoid slowing down your page loads on the end-user's machine? Am I just late to the party?

Rgds

Damon
February 08, 2011 02:02PM
Joshua
Posts:2831
Administrator
Member since: 2007-03-16
:: Quote ::
Subject: Re: Analytics Async JavaScript
I'm somewhere in between. Using the GA.JS but not the async code. I'll replace it somewhere in time (I saw it's the default code at the moment).
February 08, 2011 02:55PM
Harold
Posts:2494
Senior member
Member since: 2006-11-30
:: Quote ::
Subject: Re: Analytics Async JavaScript
What "should" be the benefit?

What's involved? Swapping one bit of code for another on every page?

And is there a help file with instructions you can point me to?
February 09, 2011 03:03AM
James
Posts:1757
Moderator
Member since: 2006-11-29
:: Quote ::
Subject: Re: Analytics Async JavaScript
I guess I'm using some old code. The page load times seem OK to me. What are the benefits of the new code to Google / us ?
February 09, 2011 07:53AM
Ian C. Purdie
Posts:2220
Senior member
Member since: 2008-12-12
:: Quote ::
Subject: Re: Analytics Async JavaScript
Quote:
I finally switched my Analytics JavaScript from the ancient Urchin code to the new shiny async code, though I've left it at the foot of the page for now for safety
I'm with everyone else, what new code?

As one of our facist politicians said:

"Please Explain"
February 09, 2011 08:03AM
DamonHD
Posts:6158
Moderator
Member since: 2006-11-30
:: Quote ::
Subject: Re: Analytics Async JavaScript
Nominally you swap the tracking code on each page, though if you are using templates you may only have to change one thing.

Nominally this mechanism talks to Google Central asynchronously, ie without blocking the page load, so should give a better user experience and/or more reliable reporting.

Here's some examples:

[code.google.com]

I was prompted to do this by the FireBug/PageSpeed add-on in FF.

Rgds

Damon
February 09, 2011 09:11AM
Ian C. Purdie
Posts:2220
Senior member
Member since: 2008-12-12
:: Quote ::
Subject: Re: Analytics Async JavaScript
I'll check later after I finish resurrecting everything after usual HD crash experience.
February 09, 2011 07:06PM
Harold
Posts:2494
Senior member
Member since: 2006-11-30
:: Quote ::
Subject: Re: Analytics Async JavaScript
Thanks, Damon. Sounds worth doing, but not urgent. Fortunately with DW I can do multi-file find and replace, so should be able to do it for the whole site by pressing one button...
February 10, 2011 03:39AM

Sorry, you do not have permission to post/reply in this forum.