Skip to content
Tracking and technical

What is an XML sitemap?

2 min read · Updated · By the Reveata team

Short answerAn XML sitemap is a file, usually at /sitemap.xml, that lists the pages on your website you want search engines to find and crawl, optionally with the date each one last changed.

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
<?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.

Frequently asked questions

Do small websites need a sitemap?

Not strictly. If every page is linked from your navigation, crawlers will find them. A sitemap still helps new pages get discovered faster and lets Search Console report problems per page.

Does a sitemap improve rankings?

No. It helps pages be found and recrawled. Ranking depends on the pages themselves.

Should AI crawlers use my sitemap?

The Sitemap: line in robots.txt is public, and any crawler that reads robots.txt can find it. Whether a given AI crawler uses it is up to its operator; check each one's documentation in the crawler directory.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is robots.txt?Robots.txt is a plain-text file at the root of a website, such as example.com/robots.txt, that tells crawlers which paths they may and may not fetch, using groups of User-agent, Allow and Disallow lines. Crawlers follow it voluntarily; it does not block anyone.GlossaryWhat is a canonical URL?A canonical URL is the one preferred address you want search engines to index and show for a page whose content is reachable at several URLs, usually declared with a rel="canonical" link in the page's head.GlossaryWhat is crawl budget?Crawl budget is the number of URLs on your site that a search engine's crawler can and wants to fetch in a given time, set by how much load your server can take and how much the search engine wants your pages.GlossaryWhat is a web crawler?A web crawler, also called a spider or bot, is a program that automatically fetches web pages, follows the links it finds and stores what it reads, usually to build a search engine index, an archive or a dataset.GlossaryWhat are Core Web Vitals?Core Web Vitals are three measurements Google uses to describe a page's real-world user experience, namely Largest Contentful Paint (loading), Interaction to Next Paint (responsiveness) and Cumulative Layout Shift (visual stability).GlossaryWhat are event properties?Event properties are key–value details attached to an analytics event, such as the plan chosen or the button clicked on a signup event, so you can break one event down by those details instead of creating a separate event for every variation.