Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » Running WordPress » Web Hosting for WordPress »

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


  #1  
Old Aug 27, 2009, 05:28 PM
seventhyearfalling
 
4 posts · Aug 2009
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
  #2  
Old Aug 27, 2009, 09:55 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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
  #3  
Old Aug 27, 2009, 11:24 PM
seventhyearfalling
 
4 posts · Aug 2009
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!
  #4  
Old Dec 20, 2009, 01:04 AM
SanityBreak
 
8 posts · Dec 2009
Quote:
Originally Posted by Flynn
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
  #5  
Old Dec 20, 2009, 01:05 AM
SanityBreak
 
8 posts · Dec 2009
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?

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add Google Analytics code TheSurvivalMom Forum How-To 3 Apr 15, 2011 03:58 AM
cant get rid of google analytics code since i updated to Atahualpa theme? 123davelee Sidebars & Widgets 8 Aug 15, 2009 11:49 AM
[SOLVED] Google analytics in footer ninjaraul Post-Kicker, -Byline & -Footer 3 Aug 9, 2009 02:14 AM
Google Analytics plug-in rendering error code. acemaker Plugins & Atahualpa 2 Jun 28, 2009 07:07 AM
Google Analytics fratelli78 Atahualpa 3 Wordpress theme 1 May 21, 2009 07:12 PM


All times are GMT -6. The time now is 10:28 AM.


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