How do I add the Google Webmasters Tool to my wordpress site?

13 replies
  • WEB DESIGN
  • |
I know how Google says you have to by either uploaded a file somewhere on your site or changing your meta tag to something.. but I'm clueless on how to do this..

Can anyone help that has done this before?

Thanks in advance!

Seth
#add #google #site #tool #webmasters #wordpress
  • Profile picture of the author policy
    I believe between the <head> tag's and before the <body> tag.

    It may be your header.php or your index.php file... probably header.php

    Go to editor in WP for the theme, and look for the word "meta" (do ctrl + f to search and then type in meta) Once you find where the other meta tags are, just place the code that google above or below that meta tag.

    Best of luck.
    {{ DiscussionBoard.errors[1445393].message }}
  • Profile picture of the author pdjsolutions
    Well,

    the <meta> tag needs to be added to your main index.php / index.html document on your webserver.

    The <meta> tag should be added right before </head>

    That should verify the domain for webmasters account.

    PDJSolutions.
    {{ DiscussionBoard.errors[1445422].message }}
  • Profile picture of the author Vishalicious
    This and much more you can get only when your site is verified by Google. Google allows you to choose one of the two methods:
    - Either you add a meta tag to your home page as given by Google
    - Or you add a web page with a name as suggested by Google.

    If you are successful in doing one of the above, you are the winner. Unfortunately as a WP blog owner, me and the others don't have facility to perform any one of the above.

    So should we just stop our efforts? No! well said, Where there's a Will... there's a Way...

    And yes! There is certainly a way following which I have successfully verified my blog with Google. If you too own a blog at WP you will be able to do it too!!!

    Assumed that you own a Google account, Log on to webmaster tools account Submit your blog url at "Add Site:". Your site would be added instantly but in absence of verification you will not have access to most of the features. Click on the link that says "Verify your site"

    As mentioned above you will be required to choose one of the verification methods. Choose "Upload an HTML file" and you will be told to upload a file with name similar to "google51603ad9d1bcb791.html".

    Question is how do we upload the file?

    Leave the Window opened and open the WP Dashboard. Navigate through the links to create a new page (please note PAGE not post). Give the page title as the name of the HTML that Google gave and press on "Publish" and your page gets published.

    Unfortunately though, the page that appears is "google51603ad9d1bcb791html" i.e. stripping off the DOT before html. :-(

    But... :-) fortunately the same thing also happens when you try to access "google51603ad9d1bcb791.html" at your blog. WP strips off the DOT (mod-rewrite) and shows up you the page "google51603ad9d1bcb791html". No "File Not Found Error" is returned unlike what you would have expected.

    Now... you just need... to open the Google verification page again and fire the "Verify" button and you have done it...


    still not get it HIT me PM and

    i will do it for you
    Signature
    Outsource Your Offline Business Projects. Just Send me a PM :)
    {{ DiscussionBoard.errors[1445423].message }}
  • Profile picture of the author LesleyJohnston
    Seth

    If you have a self hosted blog then the easiest way to download the html file that Google gives you to verify then upload it to your hosting account. If you have cpanel hosting then go to file manager - make sure the folder you are uploading to is <public_html> and then click the upload button and upload the file, then verify your site. If you have any other type of hosting then you need to try and find the file manager to upload this file.

    I created a video on how to upload a file to cpanel for a client, if you think it would be of use let me know and I'll post it here.

    Good luck

    Lesley
    Signature
    Get Your FREE PLR Pack at eBusinessPLR.com
    Need Ghostwritten articles? I've got a special deal here that might interest you.

    NEW WSO - Bumper WordPress PLR Articles & Reports Pack
    {{ DiscussionBoard.errors[1445589].message }}
    • Profile picture of the author srhudson
      Originally Posted by policy View Post

      I believe between the <head> tag's and before the <body> tag.

      It may be your header.php or your index.php file... probably header.php

      Go to editor in WP for the theme, and look for the word "meta" (do ctrl + f to search and then type in meta) Once you find where the other meta tags are, just place the code that google above or below that meta tag.

      Best of luck.
      Header.php doesn't have a <head> or <body> tag and I don't have an index.php file in my WP dashboard

      Originally Posted by pdjsolutions View Post

      Well,

      the <meta> tag needs to be added to your main index.php / index.html document on your webserver.

      The <meta> tag should be added right before </head>

      That should verify the domain for webmasters account.

      PDJSolutions.
      Also doesn't have a <head> tag or index.html document

      Originally Posted by nimuel View Post

      This and much more you can get only when your site is verified by Google. Google allows you to choose one of the two methods:
      - Either you add a meta tag to your home page as given by Google
      - Or you add a web page with a name as suggested by Google.

      If you are successful in doing one of the above, you are the winner. Unfortunately as a WP blog owner, me and the others don't have facility to perform any one of the above.

      So should we just stop our efforts? No! well said, Where there's a Will... there's a Way...

      And yes! There is certainly a way following which I have successfully verified my blog with Google. If you too own a blog at WP you will be able to do it too!!!

      Assumed that you own a Google account, Log on to webmaster tools account Submit your blog url at "Add Site:". Your site would be added instantly but in absence of verification you will not have access to most of the features. Click on the link that says "Verify your site"

      As mentioned above you will be required to choose one of the verification methods. Choose "Upload an HTML file" and you will be told to upload a file with name similar to "google51603ad9d1bcb791.html".

      Question is how do we upload the file?

      Leave the Window opened and open the WP Dashboard. Navigate through the links to create a new page (please note PAGE not post). Give the page title as the name of the HTML that Google gave and press on "Publish" and your page gets published.

      Unfortunately though, the page that appears is "google51603ad9d1bcb791html" i.e. stripping off the DOT before html. :-(

      But... :-) fortunately the same thing also happens when you try to access "google51603ad9d1bcb791.html" at your blog. WP strips off the DOT (mod-rewrite) and shows up you the page "google51603ad9d1bcb791html". No "File Not Found Error" is returned unlike what you would have expected.

      Now... you just need... to open the Google verification page again and fire the "Verify" button and you have done it...


      still not get it HIT me PM and

      i will do it for you
      Still showed up to the "error" page

      Originally Posted by LesleyJohnston View Post

      Seth

      If you have a self hosted blog then the easiest way to download the html file that Google gives you to verify then upload it to your hosting account. If you have cpanel hosting then go to file manager - make sure the folder you are uploading to is <public_html> and then click the upload button and upload the file, then verify your site. If you have any other type of hosting then you need to try and find the file manager to upload this file.

      I created a video on how to upload a file to cpanel for a client, if you think it would be of use let me know and I'll post it here.

      Good luck

      Lesley
      I've uploaded files to sites before and I figured this would be easiest as well, but for some reason when I download the google file to the public html folder and go to verify it still claims to be unable to do it successfully.
      {{ DiscussionBoard.errors[1448628].message }}
      • Profile picture of the author Mr. Enthusiastic
        Originally Posted by srhudson View Post

        I've uploaded files to sites before and I figured this would be easiest as well, but for some reason when I download the google file to the public html folder and go to verify it still claims to be unable to do it successfully.
        When I uploaded a file to verify with Google, I had to set the permissions to make the file publicly viewable by everyone before Google to pick it up. Take a quick look at the permissions in case that's the issue.

        Chris
        {{ DiscussionBoard.errors[1464403].message }}
        • Profile picture of the author Fred_Acker
          Seth,

          I assume you're trying to get your site verified by google? If so then the answer is add the tag to your head - /head section.

          Is it a blog platform or static platform?

          if it's a static site then there will probably not be a "header.php"

          You'll have to go to the index.html page.

          Either way it'll look something like this:

          <title>Title</title>
          <meta name="keywords" content="keyword,keyword,keyword">
          <meta name="description" content="Description">
          <meta name="copyright" content="copyright 2009">
          <meta name="Distribution" content="Global">
          <meta name="Rating" content="General">
          <meta name="Robots" content="INDEX,FOLLOW">
          <meta name="Revisit-after" content="7 Days">
          <meta name="verify-v1" content="azk+JEPaUcp+rTDGDVPY0qFDPOBphsmz087Ywt5Cq aB=" />
          The very bottom tag will be the verify tag that Google Webmaster tools will give to you.

          You'll also want to add a sitemap. If it's a wp blog you can use your admin panel and plugins to search for "google sitemap". If it's a static site you can get one at: Create your Google Sitemap Online - XML Sitemaps Generator
          Signature

          Right Now. What a wonderful time to start!

          {{ DiscussionBoard.errors[1464507].message }}
          • Profile picture of the author olamilekan2
            Thanks everyone, i have just verified it now putting the meta tag code as follows

            <HTML>
            <HEAD>
            <TITLE>Your Title</TITLE>
            <meta name="google-site-verification" content="String_we_ask_for">
            </HEAD>
            <BODY>

            in my header.php in my wordpress admin
            Signature
            {{ DiscussionBoard.errors[1758782].message }}
            • Profile picture of the author WilliamL
              PS: It's much easier to upload the HTML site, isn't it?
              Signature


              {{ DiscussionBoard.errors[1762182].message }}
  • Profile picture of the author kimperino1985
    Originally Posted by srhudson View Post

    I know how Google says you have to by either uploaded a file somewhere on your site or changing your meta tag to something.. but I'm clueless on how to do this..

    Can anyone help that has done this before?

    Thanks in advance!

    Seth
    Search for sample code online and modify it. I am sure you will find a lot of sample codes online..
    {{ DiscussionBoard.errors[1448908].message }}
  • Profile picture of the author srhudson
    The thing is I already modified my site to the way I want it right now and I just wanna be able to use Google Webmaster tools. It's really frustrating.
    {{ DiscussionBoard.errors[1449663].message }}
  • Profile picture of the author ladyqueen1988
    Banned
    Open Index.php -> press ctrl+F -> search for <body> -> and paste the webmaster script -> save the file and re-upload it to your host server.
    {{ DiscussionBoard.errors[1462641].message }}
    • Profile picture of the author LynnM
      sr, this might sound basic, but have you double-checked to see if the Google html file is definitely in the right place? As others have mentioned, you just save the code given by Google and then ftp it to your public_html folder on your hosting acccount (for anyone with add-on domains, it has to go in the main folder of each domain).

      Good luck with this,


      Lynn
      {{ DiscussionBoard.errors[1464098].message }}

Trending Topics