Does Google Analytics slow down page loading?
Google analytics, undoubtedly, is a great tool and add to that it is free.
If you wish to monitor traffic analyze visitor traffic and trend of your website then you will not have any better option than Google Analytics.
Now the million dollar question is does it slow down the page loading?
If you are having a basic html page with few images and some javascripts then you wouldn’t be bothering about the negative effect of Google Analytics at all.
E.g. SwamiSEO website is mostly consists of html, some images and a javascript (the slowest component) and I wouldn’t be bothering even if Google Analytics slows down the page loading a little bit.
On the contrary if we have a dynamic website (backend/database interaction) like SwamiLaptops which has a lots of images then we need to think over affects of GA on page loading.
Being a rational man I don’t take any predefined concepts so I’m going to do experiment to find out if Google Analytics really slows down the page loading or not.
Experiment 1 – SwamiSEO
Without Google Analytics code the front page loading time is about 0.41 seconds with the page size of about 17.09 kb
With Google Analytics code the page loading time remains almost same to 0.41 seconds and page size is 17.26 KB.
Conclusion: Google Analytics doesn’t not slow down the page loading to cause any concern.
Experiment 2 – SwamiLaptops
Without Google Analytics the front page loading time is about 1.12 seconds with the page size of about 80.14 kb
With Google Analytics code the front page loading time is about 1.12 seconds with the page size of about 80.34 kb
Conclusion: Google Analytics doesn’t not slow down the page loading to cause any concern.
Above tests are by no means 100% accurate and done in laboratory environment, but they do provide a first hand conclusion that Google Analytics doesn’t slow down pages considerably.
GA is a small Javascript which is executed every time a page is loaded. Byt its virtue it will obviously take some time to execute a Javascript but I would say that GA doesn’t slow downpage loading to cause any concern.
Google Analytics and High Traffic Websites
If you have got millions of visitors per day then you may see some slowing down of page loading as it is pure mathematics.
Trade off
It is all about trade off between a great tool and page loading. If you don’t have a high traffic website then you should not be bothering about page loading.
For high traffic websites you have no choice but to use GA. Any other tool will also employ some code to be inserted in each and every page of your website which will obviously slow down page loading a little bit.
Best practice for inserting Google Analytics Code
1) Insert Google Analytics Code just before </body> tag.
With this rest of page will render before executing GA code and users may not see any significant affect of slowness if any.
2) Use common page to insert Google Analytics code
The best place to add GA code is in footer files if you have any. If you are using php/asp or any similar languages then it is easy to create a a common footer.php file and add GA code.
Another way is to create a new file name it as google_analytics.php and include this in the footer file.


16 Mar 2009 в 8:05 pm
Reason why it would load at the same time for you is that you did not clear your cache, if done so you would notice this, you should try it remove the cache from you browser and try loading the pages.
[Reply]
24 Apr 2009 в 12:10 pm
If you want to read a reader’s feedback
, I rate this post for 4/5. Detailed info, but I just have to go to that damn msn to find the missed pieces. Thank you, anyway!
[Reply]
08 May 2009 в 9:20 am
I think the results of this test does not indicate the true scenario. Cache needs to be cleared for true results.
For for first time loading, unless the Google Analytics code loads fully, the entire JavaScript actions on the page remains stalled. Also, at times it takes over 120 seconds for the page to load fully.
[Reply]
15 May 2009 в 2:40 am
Sometimes the message “waiting for google analytics” before the loading of the page takes a long time. However I am not quite sure if it is GA’s fault or my hosting fault.
[Reply]
12 Jun 2009 в 7:09 am
if you use safari 4, check out the Web Inspector tool (go to Preferences>Advanced, then check “show Develop in Menu”, then Develop>Web Inspector) It’ll give you a complete elaborate breakdown of what’s happening when you load any given webpage, for my blog, google analytics added a good 5 seconds to the overall loading time. Give it a try yourself!
[Reply]
06 Jun 2010 в 4:04 am
I live in Australia and I can tell you with absolute certainty that google analytics does slow dow page loading. Sometimes the page will load and then blank because of google analytics.
I see “waiting for google-analytics.com” all too much these days, it adds at least 10 seconds ro page loading time, assuming it doesn’t cause the request to time out. I checked my latently to the google analytics servers, it’s about 375ms. That is of course, with no load on my connection.
The servers must be in America or something. That’s fine for Americans, a lot of Europeans and the UK, as they actually have decent internet. But for Aussies, it’s hell.
[Reply]
Ajay Reply:
June 6th, 2010 at 12:07 pm
Hi Matt,
You might be right but 10 seconds of delay is hard to digest. I’ve been in India where the definition of broadband is 256kbps. Even there I didn’t see the delay of 10 secs as revealed by you.
Certainly with super broadband Internet connection you might not feel but still even with slow Internet connection it isn’t so slow.
Yes all Google servers are in USA and you are on the other end of the world so it might add additional latency for Australia.
Well there is not workaround for it apart from upgrading to a faster Internet connection.
[Reply]
Matt Reply:
June 6th, 2010 at 12:51 pm
Ok, 10 seconds may have been exaggeration, but the timing out thing was not.
I get pages timing out a lot. You know how google search links take you through a tracking gateway? well, I get stuck there, having to refresh multiple times to reach the page.
On some pages that use google analytics, I’ve had the page load to 90%, so I can see images and text, then the page goes white and I see “waiting for google-analytic.com” in the status bar.
[Reply]
12 Jun 2010 в 10:09 pm
The question was will Google Analytics cause your site to slow down and the answer is yes. Right now at the time of writing this Google-Analytics.com is not working so sites that have that in their pages won’t load the pages so yes, it can slow down and cause your site to not even load. It’s uncommon for google-analytics.com to be down this long which right now has been over 10 minutes, but it just shows that it is possible.
[Reply]
22 Jun 2010 в 8:59 pm
I live in the American Midwest, and yesterday/today the Google Analytics delays
have been HORRIBLE>
Any ABC news site and several newspapers were inaccessible. When I click on those
links, the story begins loading and then I’m redirected to Google Analytics…and
then it just keeps “transferring”. I tried rebooting my computer and all my
software is up to date. I have Windows Vista and never had an issue, before.
I tried loading up a story from ABCnews.com and got the blank page with
“transferring data from http://www.google-analytics...” at the bottom, and after
30 seconds of waiting I just got up from the computer, folded a load of laundry
and came back about 5 minutes later and it was STILL loading up.
Seems like that delay is getting worse, to me…it’s almost acting like a virus.
Courtney
[Reply]
Ajay Reply:
June 22nd, 2010 at 11:09 pm
That is really pathetic.
I’ve never come across any website which is blanked out by Google Analytics.
If people are seeing it then it is getting worse.
Time has come for Google Analytics team to do something to speed up.
[Reply]