kstnayem
Level 1
Write the reason you're deleting this FAQ
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?
Are you sure you want to delete this post?
ultimate
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. 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?