Twitist Forums
Pls where to put google analytics code in blogger,how much time google analytics take to track web? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: General Social Media & Marketing Forums (/forum-8.html)
+--- Forum: SEO Search Engine Optimization (/forum-30.html)
+--- Thread: Pls where to put google analytics code in blogger,how much time google analytics take to track web? (/thread-134915.html)



Pls where to put google analytics code in blogger,how much time google analytics take to track web? - Zam - 04-08-2014 08:25 PM




- David - 04-08-2014 08:27 PM

The correct answer here would be to add head tags to your file. You should be using valid html markup for all your pages, and including head tags (even if empty - though certain other tags within head tag are required, depending on what type of document you are serving. Like..title tag and some meta tags...) is part of a validly marked up document. Not to mention that it hurts your SEO efforts not to have it (with relevant info, like aforementioned title and meta tags..).

However if you insist on not having a head tag in your document, you can place the GA code anywhere; in the head tag is just the optimal place - according to some people.

The logic behind putting it higher up is to give it a chance to track, even if a person tries to leave the page before it is done loading (closing the browser, clicking the redirect button, maybe js on the page redirects, etc...).. However, in my experience, I do not really think these are valid reasons for putting the tracking code high up on the page.

In fact, I would argue against tracking hits such as those. My main question/thought about that is...how can you rightfully say a user viewed the page if they immediately left it, even before it was fully loaded? But that's just IMO.