XML sitemap for AI crawlers
Serve a valid XML sitemap (a <urlset> or a <sitemapindex>) that lists your product, category and policy pages, and reference it with Sitemap: https://your-domain.com/sitemap.xml in robots.txt. Both parts are needed to pass.
Why it matters
Crawlers discover pages by following links. On a store with thousands of products and faceted navigation, many product pages sit several clicks deep. A sitemap gives crawlers the full list of canonical URLs in one file.
The Sitemap: line in robots.txt is how a crawler finds the sitemap without being told. The line is independent of any User-agent group, takes a full URL, and can appear more than once. Without it, crawlers have to guess the location.
The format is strict. Under the sitemaps.org protocol, the file is UTF-8 XML, each <url> needs a <loc>, and one sitemap holds at most 50,000 URLs and 50 MB uncompressed. Larger catalogs split into several sitemaps listed in a sitemap index. Google ignores <priority> and <changefreq> and uses <lastmod> only when it is consistently accurate.
We read the first sitemap declared in your robots.txt, or /sitemap.xml if none is declared. The check passes when that file is a valid <urlset> or <sitemapindex> and is declared in robots.txt, needs work when it is valid but not declared, and fails when no valid sitemap is found.
How to fix it
Find out whether you already have one
Most platforms generate a sitemap. Shopify serves one at
/sitemap.xmlthat links to separate sitemaps for products, collections, blogs and pages. WordPress (5.5 and later) serves a core sitemap index at/wp-sitemap.xml, and SEO plugins often replace it with their own. Check what your store returns.shellcurl -s https://your-domain.com/sitemap.xml | head -5 # Expect <urlset ...> or <sitemapindex ...>, not an HTML pageGenerate one if it is missing
Use absolute URLs, list only canonical pages that return 200, and leave out cart, checkout, account and filtered URLs.
HTML<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://your-domain.com/</loc> </url> <url> <loc>https://your-domain.com/products/linen-tote-bag</loc> <lastmod>2026-11-02</lastmod> </url> </urlset>Declare it in robots.txt
Add the line anywhere in the file. If you have several sitemaps, list the index first; our check reads only the first declared URL.
textSitemap: https://your-domain.com/sitemap.xmlKeep it in sync with the catalog
Remove discontinued products that now redirect or return 404, and update
<lastmod>only when the page content changes meaningfully. Google says cosmetic changes such as a new copyright year should not change it.
How to verify
Run the free check at citeto.com/check. The sitemap item shows how many URLs we read and whether the sitemap is declared in robots.txt.
Run
curl -s https://your-domain.com/robots.txt | grep -i sitemap, then open that URL and confirm it starts with<urlsetor<sitemapindex.In Google Search Console, submit the sitemap under Sitemaps and check that its status is Success.
Common pitfalls
A sitemap URL that returns your HTML 404 page or homepage with status 200. It looks present but contains no
<urlset>.Relative paths in
<loc>or in theSitemap:line. Both must be full URLs.Declaring an old or broken sitemap first and the working one second.
A store in private or password mode. Shopify notes that search engines cannot read the sitemap while the store is private.
FAQ
The Sitemap: directive is part of robots.txt, which OpenAI, Anthropic and Perplexity name as the control for their crawlers. Google uses sitemaps for discovery. A sitemap does not guarantee any page is crawled, but it removes discovery as a reason a product is missed.
Google ignores both. An accurate <lastmod> is the only optional field Google says it uses.
No, as long as robots.txt declares it. WordPress adds the line to its virtual robots.txt automatically; if you upload a physical robots.txt, add the line yourself.