Google Analytics

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
Is it just me or is Google analytics slowing things down. I'm discovering an increasing number of sites who hang during initial page load waiting for GA to connect. Pressing F5 usually clears the problem but it is becoming a little annoying.

Once the site is in the browser cache all is OK, it's only during the first visit that there is a problem. Note that I block cookies as well but that's never been a problem in the past.
 
yup, definitely a hang when loading websites for the first time and it says it's loading analytics.

As above, people have been telling me to stick the code at the end of the site but Analytics says to stick it at the start of the page before the closing head tag. Confusing.
 
Upvote 0

shpangle

Free Member
May 23, 2009
201
28
Leicester
yup, definitely a hang when loading websites for the first time and it says it's loading analytics.

As above, people have been telling me to stick the code at the end of the site but Analytics says to stick it at the start of the page before the closing head tag. Confusing.


Google changed the positioning of the Analytics code with the newer 'Asynchronous' code. The older Analytics code used to be positioned at the end, but now with the newer Asynchronous loading code it needs to be placed in the head.

I wonder if all these loading issues are related to sites with the old Analytics code or new?

Mick
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
It seems then that if the browser struggles to connect to GA when the code is at the top of the page the site simply won't load. This may well result in a number of first time visitors who will be lost forever. Just think of all those potential sales gone out the windows because the google servers are overloaded...

Yet another reason to leave Google and use one of the many better analytics providers (my vote as always is for getclicky).
 
Upvote 0

shpangle

Free Member
May 23, 2009
201
28
Leicester
The problem may be caused by peoples implementation of the Google Analytics tracking code, for instance putting the old tracking code in the head section of the website would be the wrong thing to do.

The newer Google analytics tracking code SHOULD be placed at the bottom of the head section and is designed to execute without blocking other code or content.

Mick
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
You may well be right. Either way it's causing problems for quite a lot of sites. Clear your cache and cookies and you will be surprised at how many sites hang - on some days it's almost every site running GA that I visit.
 
Upvote 0
GA Code says the following on Analytics:

Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag

Thats for all three variants, standard, advanced and custom.

I think the code was better at the end of the website personally but perhaps they thought it best to stick it up top so that it gets the data before people have to wait for any content to load? some websites are code filled nonsense.
 
Upvote 0

cmcp

Free Member
Jun 25, 2007
3,340
846
Glasgow
Yet another reason to leave Google and use one of the many better analytics providers (my vote as always is for getclicky).
Based on the analytics features I agree with you about getclicky. It's what I use, and it's spot on.

But fundamentally you're not solving anything by moving to another third party provider. The same risk is present, that you are relying on their uptime to render your site.

(From recent experience) this is also why js frameworks shouldn't be hosted by a third party. Your local js will get served but because the foundations don't load the site will throw up errors (or worse, not load).

I've noticed it too because of java script loading as already mentioned if you paste script bottom it i will take less time as paste on top.

If links are clicked before the javascript is loaded then those links won't be recorded, or any functions associated with the javascript won't be actioned.
 
Upvote 0

shpangle

Free Member
May 23, 2009
201
28
Leicester
I know I will probably get shot down for saying this...but have you ever considered that by using Google's analytics code, the website actually scores points with Google and gets credited for it ;) and that Google penalises websites that you something provided by another third party. They have the power after all!

Mick
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
I know I will probably get shot down for saying this...but have you ever considered that by using Google's analytics code, the website actually scores points with Google and gets credited for it ;) and that Google penalises websites that you something provided by another third party. They have the power after all!
On the other hand I moved a bunch of sites from GA to Getclicky and ranking stayed exactly where it was.
 
Upvote 0
On the other hand I moved a bunch of sites from GA to Getclicky and ranking stayed exactly where it was.

Maybe because the website was already crawled and listed at that point?

I always work from the assumption that tickling Google and making it happy gives you more points. E.g. adding to Google Analytics, Webmaster Tools and running a short AdWords campaign (£20) to make Google all smiley
 
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
Maybe because the website was already crawled and listed at that point?
Nope. Two were brand new sites, one inbound link, no PPC, no webmaster tools, sitemaps, GA.. no nuffin'. Both site were fairly niche and both rank near top on page 1.

People worry too much about what Google can or can't do. If you just follow the guidelines then most of the time a niche site won't experience any problems. You really don't need GA and all it's snooping, it's almost as bad as installing the Google Spyware Toolbar.
 
Last edited:
Upvote 0
People worry too much about what Google can or can't do. If you just follow the guidelines then most of the time a niche site won't experience any problems. You really don't need GA and all it's snooping, it's almost as bad as installing the Google Spyware Toolbar.

But if you follow the guidelines you don't care about google snooping do you?
 
Last edited by a moderator:
Upvote 0

fisicx

Moderator
Sep 12, 2006
46,840
8
15,469
Aldershot
www.aerin.co.uk
But if you follow the guidelines you don't care about google snooping do you?
Sorry me no understand. The guidelines are those offered by Google on how to build a website. It's pretty basic stuff that an awful lot of people ignore and as a result complain that Google doesn't like their website. There is no snooping other than the indexing robots and I don't mind them visiting!
 
  • Like
Reactions: MASSEY
Upvote 0

Latest Articles

Join UK Business Forums for free business advice