Webmaster Tools Verification Plugin for WordPress & WordPress MU

by RustedBucket on December 31, 2009

All three of the major search engines offer some kind of website service. The most popular being Google Webmaster Tools. Yahoo offers Site Explorer and Bing has Webmaster Center. All three require that you verify your site and offer various methods to do so. This plugin uses the meta option and inserts a meta tag in your sites section of your site.

If you’ve used WordPress.com then this will look familiar since it’s based on that tool.

Installation is simple:

  1. Download the plugin from WordPress.org.
  2. Copy it to the wp-content/plugins or wp-content/mu-plugins directory of your blog.
  3. Enable the plugin in your admin panel.
  4. An option for Webmaster Tools will appear under Tools.
  5. Enter the verification code for each service you wish to use

FAQ

  • Where do I get the verification code?
    Go to either Google Webmaster Tools, Yahoo Site Explorer, or Bing Webmaster Center, find the option to add/verify a new site then select the meta option. You be provided with a piece of code and instructions to add it to your site.
  • What do I do with the code once I have it?
    All you need is the actual content= code, the plugin will automatically format the meta tag when it inserts it.
    Ex.: Google will give you a piece of code like this: <meta name='google-site-verification' content='dBw5CvburAxi537Rp9qi5uG2174Vb6JwHwIRwPSLIK8'>
    You want to copy the code: dBw5CvburAxi537Rp9qi5uG2174Vb6JwHwIRwPSLIK8 and paste it in the input box for Google.
  • I’m using WPMU but I don’t want the plugin automatically activated for each site. Can I just put it in the wp-content/plugins directory so each blog owner can choose whether or not they want it activated?
    You sure can. Just be sure not to copy it into both locations.

Support
If you like this plugin and want to support me, leave a comment or check out my donations and support page!

DeliciousFacebookDiggMixxRedditRSS FeedStumbleUponTechnoratiTwitterGoogle

{ 29 comments… read them below or add one }

mydealcracker January 1, 2010 at 4:16 pm

Hello:
Your plugin looks like it should be very easy to use but it still did not verify my blog. What really happens after you put in your codes and hit “save changes”? At that point my codes disappear, is that suppose to happen?

Reply

James January 1, 2010 at 4:32 pm

After you add your code a meta tag should be placed in your header before the . Check that and let me know if it’s putting it there.

If your code is disappearing then your not entering the correct code. You want just the number between the single quotes in content=’xxxxxxxx’.

Reply

mydealcracker January 2, 2010 at 9:53 am

Google is finally seeing my code but it is saying that the code is wrong. I have tried with various little adjustments but it is still saying that : “Verification failed. Your meta tag is incorrect. Show found meta tag”. Unfortunately, I had stop concentrating on yahoo and bing codes and the spaces are filled with backstrokes “\\\\\” and I can not get them deleted. In addition, I am now unable to save any changes to google code section because now when I press save it just stays in the loading phase and never completes.

Reply

James January 2, 2010 at 10:20 am

I looked at your source and I’m not real sure how you ended up with all those slashes. Regardless do this. Delete these 3 keys from your database using something like phpMyAdmin.

DELETE FROM wp_options WHERE option_name = ‘verification_services_codes[google]‘;
DELETE FROM wp_options WHERE option_name = ‘verification_services_codes[yahoo]‘;
DELETE FROM wp_options WHERE option_name = ‘verification_services_codes[bing]‘;

This should get you back to the blank form. Your Google code is still wrong (as it says). It should be just this code: xyERUGbd0dSVf9jNcCbb6DkJDmczB0VFaUVDt8JMh6s

In the code Google gave you there is a line content=”xyERUGbd0dSVf9jNcCbb6DkJDmczB0VFaUVDt8JMh6s” you want just the alphanumeric string between the quotes. The same goes for Yahoo and Bing.

Try that and report back.

Reply

mydealcracker January 3, 2010 at 12:38 am

Thank you, I finally got google to verify my site. It was easy after I did what you said. Unfortunately I am still failing with yahoo and bing.

Reply

James January 3, 2010 at 7:44 am

I just tested Yahoo and Bing. Bing worked right away and Yahoo says it could take up to 24 hours for them to verify, so keep checking them. I looked at your source again and it looks correct now.

Reply

mydealcracker January 4, 2010 at 12:30 pm

I only got google and yahoo verified.

Reply

Andryan January 6, 2010 at 8:44 pm

Error… Google can’t find the code. Please help me.

Reply

James January 6, 2010 at 10:42 pm

Looking at your source the code looks correct. However, you have this in your robots.txt file:
User-agent: *
Disallow:

Which I believe is blocking all spiders and probably Googles. Remove it and try again… let me know what happens.

Reply

Rebecca January 9, 2010 at 8:39 am

Thank you for such a clear and easy to follow set of instructions! I’ve been trying to work out how to do this for about an hour and couldn’t follow other advice I found. You have saved me from potentially hours more frustration!

Reply

James January 9, 2010 at 8:53 am

Great Rebecca, glad it helped you out.

Reply

Andryan January 10, 2010 at 12:52 am

Where I can find and edit that robots.txt?

Reply

Dan February 12, 2010 at 9:18 am

Nice – thank you!

The only problem is the plug-in gives me a 400 Error when I try and save changes – but I think this is a server problem rather than a problem with the plug-in.

Reply

Dan February 12, 2010 at 5:11 pm

Got it working… Web host needed to ass mod_security exclusion rules. Awesome plug-in!

Reply

James February 15, 2010 at 12:04 pm

Great, glad to hear you got it working Dan.

Reply

Scott February 27, 2010 at 11:34 am

Hey James!

I’m having the same problem as mydealcracker…I’m getting backslashes when I hit submit, which gives me an error when webmaster tools goes out to verify. Here is the code:

‘ogfIxn-idgKTqXDtxFfXkr_Ap49mjRtnEI9XQul8eR0′

I checked the options folder in phpmyadmin and there was nothing in there regarding verification codes for google, bing or yahoo.

Any thoughts?

Thx.

Reply

Ray March 9, 2010 at 10:41 am

If I install this on WPMU, will each site owner then need to change the Google/Yahoo codes or will Google, et.all assume that it is just a single site?

Reply

Matty@multieffectspedal March 14, 2010 at 8:13 pm

Hi

Thank you for your article I just installed the plugins and google, yahoo and bing says my sites are varified.
Can you tell me, once my sites are varified how long does it take for my site to get index and ranked in Google?

also do you have any recommended plugins to help my site rank better?

Reply

nikhil April 6, 2010 at 9:33 am

Thanks James.. Your plugin works without any problems. I was struggling for the last one week to verify my site.. Thanks a ton..

Reply

nikhil April 6, 2010 at 9:40 am

Works great..
THanks a ton..I was struggling for the last one week..

Reply

Dervm May 5, 2010 at 5:50 am

I tried the plugin on several blogs but it isnt working for example (bedrijfs oprichting . nl )Can you please help me?

Reply

mike May 5, 2010 at 9:54 am

I have been trying to get this thing to work. It will not verify even though I followed your instructions. Please help

Reply

mike May 5, 2010 at 10:06 am

It is working now. Sorry. This is great.

Reply

shane May 8, 2010 at 7:02 am

I have your plugin installed on all my websites. It works great and I have had nothing but success with it. Thank you

Reply

bike authorized dealers May 27, 2010 at 5:55 am

I just tested Yahoo and Bing.Can you tell me how long it would take to get my site verified?How do i get higher page ranking?.Thanks for posting such informative post.

Reply

Cesar May 30, 2010 at 3:13 pm

Thank you this plugin definitly work for me.
Rally thanks a lot.

Reply

red microwave June 13, 2010 at 2:21 am

Hey James, I am having similar problems the first poster has, when i insert the various codes and save all the codes are left blank. When i do get it to work I check google webmastewr tools and it says that its only found ” <meta name=\ " on my site??

Reply

Socrates Wordpress Theme July 6, 2010 at 7:25 am

Thanks for your post. I follow this steps, My site got verified. thanks again!

Reply

naylon July 20, 2010 at 6:25 am

I only got google and yahoo verified.

Reply

Leave a Comment

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 7 + 2 ?
Please leave these two fields as-is:

Previous post:

Next post: