CodeClerks

I'm installing web analytics code



Enter a reason for deleting this comment

I'm installing web analytics code

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?

Comments

Please login or sign up to leave a comment

Join
sanfora

i think not so important where to install




Are you sure you want to delete this post?

ultimate

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.




Are you sure you want to delete this post?

webexpert1313

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>




Are you sure you want to delete this post?