Google Site Verification
Created: Last updated:
This is just a minor update but it was almost vexing me for quite some time now.
About site verification
For the Webmaster Tools to work properly Google requires you to verify the site with the tool. This is commonly known as site verification with Google and in their own words from the help page:
Because privacy is important to Google, we need to know you own a site before we'll show you certain information about it or enable you to use our tools. Verification doesn't affect PageRank or affect your site's performance in Google's search results.
The method used in the past and by many is uploading a html file to the root of the site but their are others. Uploading such a html file seamed so old- fashioned anyways.
HTML file versus meta tag
Apparently Google accepts the Analytics code as a verification but although I have the code on this site I got constantly errors since I removed the HTML file from the root.
Then I discovered that Google has yet another method which is adding the information into a meta tag in the document's head. Takes a little bit more resources but what the heck—it's just a few more lines of code amongst thousands.
So I finally got my head around this and added the code to the core. Now it is simply adding the verification code to the configuration and the meta tag is in the head.