Enter a reason for deleting this comment
I'm installing GoStats code (analytics) in my site, however, I have a question: is tracking code best installed in the <head> section or the footer? What are the advantages/disadvantages?
i think not so important where to install
Are you sure you want to delete this post?
I'm late but I would like to add to it.
It depends what you value more. If you load script in head section, it will slow your page down. On the plus side, you track more users.
If you don't load in header, there is chance the user might just press the back button before the script is loaded and you don't get analytics.
But if the script is something like Universal Analytics (Google Analytics) which loads asynchronously, you can place it anywhere and it won't hinder the page render.
You can add any where your tracking codes, where you want to track.. Normally users paste tracking code on home page for track whole website.
you need to paste your racking code under <head>Tracking Codes.</head>