Does exist reason to put google analytics in head and not in the end of body?
(I working on big website that its works in this way)
Option 1:
<head>
<script src="http://www.google-analytics.com/ga.js"></script>
</head>
Option 2 – in bottom of body :
<body>
//html code
<script src="http://www.google-analytics.com/ga.js"></script>
</body>
Edit1:
Also the same question with jquery ui
Edit2:
add ga.js in the end of script (fix)
Thanks
I suggest to use the asynchronous google analytics code.
Asynchronous Google Analytics
If you use the non-asynchronous code and put it into the head section, it may block the load of your website if the ga code would be slow to load, because it waits until the scripts are loaded. And because google analytics is an external script you may have no influence on the load performance (normally it should not matter, but it can happen that even google has server problems).
So, no i don’t see a real reason to do it that way.