Building and submitting a sitemap is one of the best ways to ensure all of the valuable content on your site can be found by search engines. A sitemap is not the only way search engines can discover pages on your site but it is your “direct line” for telling Google what is important.
Google describes a sitemap as:
“..a file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines like Google read this file to more intelligently crawl your site.”
Sitemaps can have multiple formats such as XML (Extensible Markup Language ), RSS (Really Simple Syndication), and Text. The XML format is the most widely used and will be the format that we discuss for the rest of the article.
The short answer is, not really depending on the size of your site and how your site is built. You probably don’t need a sitemap if you have a small site (<100 URLs) and all of the URLs are linked internally. But if you have a rather large site that has thousands, maybe millions/billions, of URLs, then having a sitemap will benefit you greatly.
There are two ways to create an XML sitemap, the automatic way and building one from scratch. If you want to create an XML sitemap the automatic way, check out our Screaming Frog guide on how to create an XML sitemap.
There are a few ways to get a list of URLs for your website. The easiest way is to use a crawler like Screaming Frog to crawl your entire website to find all URLs. If you don’t have a copy of Screaming Frog, you can also find your URLs by:
- Manually looking at your site and collecting all URLs
- Perform a site search in Google to identify the URLs that Google has in its index
- Look at Google Analytics landing page report to find URLs
Once you have a list of URLs that you want to include in your sitemap, it is time to code the URL in an XML format. In order to code the URLs in the proper format, you’ll need a text editor such as Sublime Text.
A) Start by opening a <urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″> tag
B) Next, add your URL using the <url> and <loc> tags
C) You can stop here if you like but there are other optional tags that you can use to add more detail to your sitemap. Optional tags are:
- <lastmod>: The date the page was last modified.
- <changefreq>: How often does the page change?
- <priority>: How important is this page compared to your other pages. Values for this range from 0.0 to 1.0 with 1.0 being the highest priority
D) Close with a closing </url> and </urlset> tag
Now that you have your XML sitemap created, it’s time to submit it to Google through Search Console. Here’s how you can do that in a few easy steps:
If you like this article, you should check out our newly updated Screaming Frog Guide that is packed full of tips and tricks to do almost anything.