homepage Welcome to WebmasterWorld Guest from 54.242.126.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Where do I put my Google Analytics code?
MrWumpus

5+ Year Member



 
Msg#: 4134155 posted 6:00 pm on May 17, 2010 (gmt 0)

I've been adding GA to several sites and last week I was using the new asynchronous snippet, which they said to put just before the closing </HEAD> tag.

This week, they no longer offer the old snippet and now the default is the asynchronous snippet, but now they give these directions:

Copy the following code, then paste it onto every page you want to track immediately after the opening <body> tag.


But if you read elsewhere in their help, they're still saying put it just before the closing </HEAD> tag.

I just want to be sure before I manually change dozens of static and dynamic pages. I also wonder whether I should now be moving the GA code on the other sites down immediately after the <body> tag?

Edit: Just read over at the official GA forum that any references to after <BODY> is a bug and should be ignored. The asynchronous code goes immediately before the closing </HEAD> tag.

 

suzukik

5+ Year Member



 
Msg#: 4134155 posted 6:47 pm on May 20, 2010 (gmt 0)

Just read over at the official GA forum that any references to after <BODY> is a bug and should be ignored. The asynchronous code goes immediately before the closing </HEAD> tag.


Would you tell me the URL of the thread?

MrWumpus

5+ Year Member



 
Msg#: 4134155 posted 6:50 pm on May 20, 2010 (gmt 0)

Here you go:

[google.com...]

suzukik

5+ Year Member



 
Msg#: 4134155 posted 8:33 pm on May 20, 2010 (gmt 0)

Thanks!

Tiger_SEO



 
Msg#: 4134155 posted 4:42 am on May 22, 2010 (gmt 0)

Don't question it, just do what Google says. Google directions are updated and maintained very well. If you have any ongoing concerns, put it on a few pages and check out the results - change, or not, accordingly.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved