Web Hosting

How to Set Up The Google XML Sitemap Generator

Many thanks to Jake Hyten for asking this question: how to set up the Google XML Sitemap Generator Plugin.

Thanks for your question, Jake – and the steps follow with the greatest of pleasure πŸ™‚

Firstly, why would you want to install the Google XML Sitemap Generator Plugin?

Because it creates a sitemap for the Google, Bing, Yahoo and Ask search engines, automatically re-builds it whenever you write or edit a post and pings those 4 search engines as soon as you publish it.

Under estimate the value of that at your peril!

All your sites should have XML compliant site maps because they help the search engines work out what it’s about. And they can’t send you traffic if they don’t know that!

But a normal static sitemap that you can create at any number of places on-line needs to be updated manually every time you add or remove a page.

A bit of a pain.

The Google XML Sitemap Generator Plugin does everything automatically. A huge time saver.

Further, if your blog’s in a sub-directory you can locate your Sitemap Generator in the root folder and have it generate a sitemap for your entire site – not just your blog.

That’s really cool.

So here’s how to set it up

Step 1: Click on the XML-Sitemap link in the Settings section of your menu.

You’ll see this screen:

The top section (above Basic Options) just gives you key information about the last time your site map was built. Unless you’ve initiated a manual build, this will be the time of the last post you published.

Step 2: Set some initial options in the Basic Options section.

I normally check all of the options except ‘enable manual site building via GET request’. This option enables you to manually initiate a sitemap build remotely – via a mobile browser or PDA for example.

I don’t blog by email or use desktop applications to create new posts, so I don’t have any need for this functionality.

However, if you do use desktop applications to update your blog then checking this option will enable you to access and rebuild your sitemap manually, and remotely.Β  The auto rebuild of your sitemap doesn’t always happen when you post with desktop applications.

In order for the plugin to notify Yahoo whenever you update your blog you’ll need to get an application ID from Yahoo.

This is very straightforward: clicking the link underneath the box for your application ID will take you to a Yahoo sign in page, and logging in to your Yahoo account will take you to the application account set up page.

Fill out the fields on that page. If your blog is in a sub-directory be sure to enter its full URL (i.e. http://www.yourdomain.com/blog) . Ignore the check boxes at the bottom (they’re greyed out anyway) and click ‘Continue’.

The next screen will display your application ID key. Copy it, go back to the basic options section and paste it into the field provided.

The Advanced Options are all about improving the efficiency with which the plugin operates – by increasing memory, limiting the time it’s allowed to take to re-build the sitemap or limiting the number of posts to be included.

Unless you’re experiencing problems with your sitemap taking too long to re-build itself after publishing a post, you should not normally need to touch any of these.

Step 3: Additional Pages.

If your blog is in a sub-directory and you want the XML Sitemap to include other (non WordPress) pages from your site, then you should add the address of your root or other directory in this section.

Click the ‘Add New Page’ link at the bottom of the section and enter the details.

You’ll also need to move your sitemap.xml file to the directory you’ve specified (covered in the next section).

Step 4: Set the post priority calculation method (see 2 in the image above).

Prioritisation is a way of directing the robots to the most important pages on your site.

I do not use automatic prioritisation, so I check the top radio button.

Automatic prioritisation frequently results in the index page of your blog (the starting page) getting the highest priority and all the others getting the same priority just below it.

I prefer more granularity and I also prefer my posts to have a higher priority than my home page. This is because I take care to optimise each of my posts, so giving them a higher priority here makes the best use of the optimisation I’ve done.

I also like to raise the priority of my static pages.

For some strange reason the actual setting of priorities in the plugin is done at the bottom of the page rather than here, so I’ll come back to that later with a screen shot

Step 5: Define the location of your sitemap file.

On the site from which these screen shots come, WordPress is installed in the root directory and there are no other files or pages in the domain. Therefore I’ve just accepted the default location setting.

On another of my sites, though, WordPress is in a sub-directory and on that site I’ve moved the sitemap file to the root directory so I can have it map all the pages on that domain.

If you do that you need to specify both the path to the sitemap file and the URL of the sitemap file. The plugin will suggest both elements – see the examples above – just edit them as necessary.

(I’ve blacked out the actual paths for my sitemap in the image above, but where the blacked out bits are the plugin will suggest the path based on your actual server set up and sitemap location).

Step 6: Sitemap content (second section in the image above)

In this section you can specify what should be included in your sitemap.

Removing unnecessary content reduces the sitemap build time during your post publishing process, and that will speed up the publishing of your new articles.

I’ve excluded the ‘following pages of multi-page posts’, ‘archives’ and ‘author’ pages.

Archives and author pages because the content of these pages is already indexed in posts and static pages, and following pages of multi-page posts because it’s un-necessary.

Step 7: Excluded items.

This section allows you to exclude categories from your sitemap.

Used along with the noindex meta tag, this is a way of protecting categories that you want to keep private or restricted to selected viewers.

If you don’t want posts in a specific category to turn up in search results you can check the category here.

Likewise, if you want to protect specific posts list their IDs in the box at the bottom.

To increase the protection of posts you want to keep private you should also specify ‘noindex’ in the ‘Robots’ meta tag for each post or page you want to protect.

Step 8: Change frequencies

The second item in the image above allows you to tell the robots how often specific pages are likely to change on your site.

The site I’ve taken these shots from is set up with a static page as the start (Home) page, so I’ve set the home page to a weekly update while my posts are set to daily update.

If your blog is set up as a blog – i.e. where your home page reflects your most recent posts – then you should set the home page and the posts update frequency to the same.

For the rest you can see the frequencies I’ve selected – you’re welcome to use the same or vary them depending on how you operate your blog.

Step 9: Priorities

This is the section I referred to earlier – it’s where you can set your priorities if you choose not to use automatic prioritisation.

In this section I’ve set the highest priority to both posts and pages. As I mentioned earlier I optimise those every time I publish a new one, so giving them a higher priority here helps to make the most of that optimisation work.

My Home page in this image is set at a slightly lower priority than my posts and pages because of the way I’ve set up this site, using a static page as the start page.

On my other WordPress site, which is set up as a traditional blog, I’ve set my home page at the highest priority. This is because the Home page will change every time I write a new post.

For the rest of the elements you can see that I’ve set tags and category pages much lower and archives lower still.

These are all just other ways of looking at the same data on your site and, having set high priorities for pages and posts and not excluded any elements from the sitemap, I’ve got everything covered in the most efficient way possible.

OK, so that’s how I set up my Google XML Sitemap Generator Plugin. How do you set yours up? Leave a comment and let us know.

Web Hosting

Comments on this entry are closed.

  • jake 19 October, 2009, 4:24 pm

    Thanks Martin! Awesome overview

    • WealthyDragon 19 October, 2009, 8:47 pm

      You’re welcome, Jake – glad it helped πŸ™‚

      Cheers,

      Martin.

  • Web 2.0 20 October, 2009, 8:35 pm

    Nice tutorial, great work πŸ™‚

  • Joanna 4 December, 2009, 11:59 pm

    Forgot to check “Notify me of followup comments via e-mail” for an answer to the plugin tutorial question.

    • Martin 5 December, 2009, 8:14 am

      Yes – I do that all the time..!

  • Joanna 5 December, 2009, 12:46 am

    Martin

    Another question. I noticed you did not set any priorities at 1.0 – why is that? You also said that you rate a blog home page at the highest priority – would that be 1.0 or 0.9 which is the top score that you personally use?

    Many thanks

    • Martin 5 December, 2009, 8:13 am

      Joanna, hi,

      I honestly don’t know..! It’s perfectly fine to set a priority at 1.0 – that would be the page-type you consider the most important on your site.

      In the site maps I set up on my static sites I usually have my index (home) page as 1.0 and everything else falls under that. If not my index page, then whichever page I consider most important gets a 1.0.

      I’ll immediately go and correct my error πŸ™‚ (And thanks for letting me know!)

      Cheers,

      Martin.

      • Joanna 5 December, 2009, 8:21 pm

        Thank you!

  • Keith Davis 6 December, 2009, 8:32 pm

    Thanks Martin
    I’m told that this plugin is one of the must have SEO plugins, but for some of us it’s not easy to configure.
    Thanks for taking the time to put this post together… why don’t the plugin developers do it?
    .-= Keith DavisΒ΄s last blog ..The eyes have it! =-.

    • Martin 7 December, 2009, 7:25 am

      Keith, hi,

      You’re welcome – and I’ve no idea why the developers don’t do it..!

      To be fair, some of them do – but definitely not all of them.

      Cheers,

      Martin.

  • johnny 1 June, 2010, 6:47 am

    thanks for the tutorial
    I have one question though
    I am new to blogs and wordpress but it really isn’t that hard and even quite exciting I must say. I’m 1month old in this and doing my learning in realtime on my mom’s new B&B site.
    I would like to know if a sitemap page on my website is really necessary for google or seo if you have the plugin taking care of it automatically. ?
    I understood that the sitemap is primarily for the bots rather than for people checking out a sitemap page
    I would like to cancel that page on the website also because I have to edit it and don’t know how. I also found that I forgot a contact us page and I can’t add another page without breaking the design. I got the theme built on elance and the navigation bar is set for so many pages.
    thanks for your advice

    • Martin 1 June, 2010, 8:06 am

      Johnny, hi,

      If you mean a ‘human readable’ sitemap then I don’t believe it’s necessary while your site is still small and you can let people find everything (particularly the important pages) through your menu bar and links in the sidebar. Once your site gets bigger then a human site map is definitely worth considering.

      You can actually get a plugin for WordPress that takes care of generating a human readable sitemap: find it here.

      That means you don’t have to keep editing it manually.

      Cheers,

      Martin.

      • johnny 1 June, 2010, 10:00 am

        Thanks for the tip Martin…

        …have a good one!
        Cheers

        • Martin 1 June, 2010, 1:06 pm

          You’re welcome – you too πŸ™‚

  • Resale Centre 28 July, 2010, 4:57 pm

    Google XML sitemaps by Arne Brachhold is for me the best sitemap generator for WP hands down. I have used a few sitemap alternatives for wordpress but none are as easy to use, stylish and well supported as this plugin. A must for every WP website out there.

  • Career Outlook 18 August, 2010, 1:52 pm

    Is a great plugin for creating the sitemap, but I found it little tricky to install. I also have no idea that I need to configure so much options to utilise its full potential.

    • Martin 18 August, 2010, 3:22 pm

      Yes – there’s a lot of flexibility there to configure it in a way that maximises the benefits based on the structure of your site.

      Cheers,

      Martin.