Crawlers discover pages by following links. That works well for a small, well-linked site, but pages deep in an archive, new pages with no links yet, or pages only reachable through search forms can be missed. A sitemap hands crawlers the list directly. It does not force anything to be indexed; it is a hint about what exists and what changed.
The format
The sitemaps.org protocol (opens in a new tab) defines the format. A minimal sitemap:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/pricing</loc>
<lastmod>2026-11-19</lastmod>
</url>
</urlset>| Tag | Required | Meaning |
|---|---|---|
<urlset> |
Yes | The root element, with the sitemap namespace |
<url> / <loc> |
Yes | One entry and its full address (under 2,048 characters) |
<lastmod> |
No | When the page last changed, such as 2026-11-19 |
<changefreq> |
No | How often it changes; search engines treat it as a hint |
<priority> |
No | 0.0 to 1.0, relative to your other URLs; the default is 0.5 |
Limits and sitemap indexes
One sitemap holds at most 50,000 URLs and 50 MB uncompressed. Larger sites split their URLs over several sitemaps and list them in a sitemap index, which itself can list up to 50,000 sitemaps. Sitemaps may be gzipped, but the uncompressed size still counts.
Telling search engines about it
- Add a line to robots.txt:
Sitemap: https://www.example.com/sitemap.xml. It applies whatever user agent group it sits in, and you can list several. - Submit it in Google Search Console and Bing Webmaster Tools, which then report errors and how many listed URLs are indexed.
What belongs in a sitemap
Only canonical, indexable pages that answer with 200. Leave out redirects, error pages, pages marked noindex, duplicates and URLs with tracking parameters. A sitemap full of URLs you do not want indexed sends mixed signals; see canonical URL.
Keep lastmod honest. Google's crawl budget guide (opens in a new tab) recommends keeping sitemaps current and adding <lastmod> for updated content; a date that changes on every build without real changes teaches crawlers to ignore it.
Sitemaps and analytics
A sitemap is not something analytics reads, but the two meet in practice:
- Search Console shows which listed pages are indexed and which searches bring clicks. Reveata can import Search Console data and estimate the revenue each search keyword led to.
- Reveata's Bot traffic page shows which pages crawlers actually read, when you forward crawler requests from your server or the crawler runs JavaScript. Comparing that with your sitemap shows which important pages crawlers are not visiting.