I've just discovered http://drupal.org/project/googleverify, a mini-module that eases the setup of Google Webmaster Tools. From the description:

Small module to make using the Google Webmaster Tools site verification easier. Works with both the Meta Tag and the Upload File methods.

The module actually contains only a few lines, most of them are needless. It would be useful if Google Analytics module would implement this functionality (just add two new options in the settings), so the GoogleVerify project could be /dev/null'ed.

Let me know what you think. I'd be willing to provide a patch.

Comments

hass’s picture

Status: Active » Closed (won't fix)

What this modules does it already build into XML sitemap module... i think we don't need to implement this in GA, because we don't need this verification. You should install XML sitemap.. and maybe robotstxt or add the sitemap line yourself to your static robots.txt file :-)

darumaki’s picture

Google site verification is inside xml sitemap module ? You sure about that I've never seen this in the module admin pages.

sun’s picture

Status: Closed (won't fix) » Active

It's not. XMLsitemap has an option to submit the sitemap to various search engines. Google Webmaster Tools is a different application, closely tied to Analytics though.

hass’s picture

Status: Active » Closed (won't fix)

Google verify does nothing more then checking for the same google verification code you are using for XML sitemap via filename or header entry. If you add the verification number to xmlsitemap this one is also available for everything else. The URL doesn't change... "/[google verification code].html" if i remember correctly.

We also don't need this google verification code for GA. GA check validates with a correct google analytics ID.

dave reid’s picture

FYI, I created a much more general solution that works for nearly all search engine verifications: http://drupal.org/project/site_verify. We're ripping the verification code out of xmlsitemap as well in favor of the new module.