Google analytics on top?

vegas

Account Disabled
Why they say google analytics wont work depending of the coding of your pages and also you must have it beneath head in order to track properly?
 
Who says that?
The a-sync tracking code should work just fine in the head, no matter the code.. unless you have really shoddy code..
 
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingOverview#customizedSetup

Where to Place the Tracking Code

The tracking code is designed to read data from your page after the content for the page has finished loading. For this reason, the snippet should be located just before the closing </body> tag for your web page. Once the content for your page has loaded, the tracking code, when executed, reads the content for your page following the Document Object Model (DOM). All information relevant to tracking is then used to establish page information, set/update cookies, and to send the GIF request to the Google Analytics servers.

By placing the script at the end of the page body, you ensure that the tracking code is executed as the last element of the DOM. If a given page load is interrupted for some reason, it is possible that the GIF request for that page view will not be executed. However, should you place the tracking code at the top of the page, any load interruptions might result in incomplete or inaccurate reporting anyhow, since the tracking code relies on page data for its reports.

Additionally, the physical placement of the tracking code call at the bottom of the page is more effective than using an onLoad() function to call the tracking code. If you use onLoad() to execute the tracking code, execution relies on the event model for the browser instead of the DOM. In such a situation, should a remote image fail to load on a page, onLoad() will not be called, whereas the DOM for the page could still load completely.
 
I actually prefer to put GA into my footer. Always have and probably always will. It may be one of the last things to load, but my pages load fairly quickly anyways!
 
I haven't heard such kind of statement before. Google analytic works for every code and it suggest you with proper suggestion which needs to be included in your website.
 
I actually prefer to put GA into my footer. Always have and probably always will. It may be one of the last things to load, but my pages load fairly quickly anyways!

Do agree with this. It is always better to put the code in footer rather than updating it in the header.
 
That thing is like a virus you all are in love with and with that it works with any code even java I might give it a shot ,what I dont like from it is that it renders feedback to google and other think from some time your crowd grows youll have to pay for analytics,its like a cigar of marihuana weeds cannabis that some smart guys gives you cigars for free for you to become addict and when your hooked you have to pay without mercy
 
That thing is like a virus you all are in love with and with that it works with any code even java I might give it a shot ,what I dont like from it is that it renders feedback to google and other think from some time your crowd grows youll have to pay for analytics,its like a cigar of marihuana weeds cannabis that some smart guys gives you cigars for free for you to become addict and when your hooked you have to pay without mercy

You are correct that it renders feedback to Google, and that's not always a good thing. As far as paying for Analytics, I don't see that coming. I think they need that to keep selling Adwords.
 
You know like walls talk,Ive heard that if they hear you are whispering of the system they take revange,but dont believe me
 
Back
Top