Hi, from a newbie, I am after a little advice. I have tried and failed in adding the verification code to my site, i can get to my main page php file, but cannot for the life of me, enter the code in the correct place! Any advice welcome Thanks in advance
Depends on the version of your Analytics code. For older _gat version. Its better to put before the </html> tag as it does have minor impact on page load speed. For newer asynchronous version _qat, you can put it right under <body> tag. Since it loads asynchronously, the performance impact is much lower. miker9586: What do you mean by correct place? You mean the PHP script breaks when you put in the code or it just doesn't appears in the HTML page? Cheers, Felix
Thanks for replys Felix, what i mean by correct place is, i have added the code in varoius places as you have all suggested i.e <body> </html> and a couple of other places, that have been suggested. The code does appear in the HTML but it will NOT verify where ever i put it. I can use certain aspects of analytics, i.e sitemap is ok, crawler access and more,these are all showing data. But google are not able to collect any other data due to the verification code! i.e No data showing on my dashboard. Hope that makes sense Thanks
The verification code is for Google webmaster tools, not Google Analytics. Sitemaps, crawler access etc - all this is Google Webmaster tools data - nothing to do with Google Analytics at all. To track your site with Google Analytics you need to set up a profile with Google analytics http://www.google.com/analytics/ and generate tracking code.
Good to hear that. Just wanted to inform you that you can also verify your site by uploading the file with verification code. This option is more reliable as sometimes webmasters makes changes on the page and remove the meta tags.