Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Web Hosting for WordPress (http://forum.bytesforall.com/forumdisplay.php?f=13)
-   -   Does it matter if Google Analytics code is in the footer? (http://forum.bytesforall.com/showthread.php?t=3172)

seventhyearfalling Aug 27, 2009 04:28 PM

Does it matter if Google Analytics code is in the footer?
 
Hello,

When I first switched to this theme, I read on the wordpress forums to put the Google Analytics code in the footer.php file. Ever since, I noticed that GA shows my website getting far less traffic than any other tracking plugin I've used. I've since read that it should be added through the ATO, so I've done that. Would anyone know if having the tracking code in the footer would explain the lower stats GA reported though?


Thanks,
7th

Flynn Aug 27, 2009 08:55 PM

Putting it into the footer would ensure that a hit gets counted only if the whole page was loaded. If a visitor backed out before the page finished loading then that visit would not be counted because the Google script at the bottom wasn't loaded yet. So the numbers should be lower but potentially more realistic

seventhyearfalling Aug 27, 2009 10:24 PM

Ah, I see. After putting it in the body via the ATO options, my hits started to match up with the others much better. Not sure what the issue was outside of page loading but that fixed it. Thanks for the info. Flynn!

SanityBreak Dec 20, 2009 12:04 AM

Quote:

Originally Posted by Flynn (Post 13586)
Putting it into the footer would ensure that a hit gets counted only if the whole page was loaded. If a visitor backed out before the page finished loading then that visit would not be counted because the Google script at the bottom wasn't loaded yet. So the numbers should be lower but potentially more realistic

Thanks for that tip. Time to move the stat counter :)

SanityBreak Dec 20, 2009 12:05 AM

Another thought... I know there are google analytic plugins. Do those also go in the footer or do they track all visitors even if the page isn't fully loaded?


All times are GMT -6. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.