- Home
- GEO Factors
- Technical
- XML Sitemap
XML Sitemap
Detects /sitemap.xml and checks if your analyzed page is included. Sitemaps guide AI crawlers to discover and prioritize your content.
Why It Matters for AI Visibility
How We Score It
How to Improve
- 1
Add a sitemap.xml to your site root
If you have no sitemap at all, this is the single highest-impact fix. Place a valid sitemap.xml at your domain root (e.g., `https://example.com/sitemap.xml`). Most frameworks and CMS platforms can generate one automatically. WordPress has built-in sitemap support since version 5.5, and Next.js supports sitemap generation through its App Router.
- 2
Include every important page in the sitemap
A sitemap that exists but excludes the page being analyzed still drops your score to 5. Audit your sitemap and ensure it lists all public, indexable pages. Remove noindexed or redirected URLs, and add any missing content pages. Run a crawl with a tool like Screaming Frog to compare your live pages against your sitemap.
- 3
Reference your sitemap in robots.txt
Add `Sitemap: https://example.com/sitemap.xml` to your robots.txt file. This ensures that every crawler, including AI bots that check robots.txt first, knows where to find your sitemap without guessing. It takes one line and guarantees discoverability.
- 4
Keep your sitemap updated automatically
A stale sitemap with dead links or missing new pages undermines trust. Use dynamic sitemap generation so new pages are included on publish and removed pages are dropped. Most modern frameworks support this natively. If you manage your sitemap manually, set a recurring task to audit it monthly.
Before & After
# robots.txt User-agent: * Allow: / # No sitemap.xml exists at /sitemap.xml # Result: Score 0 (fail)
<!-- sitemap.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2025-12-01</lastmod>
</url>
<url>
<loc>https://example.com/blog/geo-optimization-guide</loc>
<lastmod>2025-11-15</lastmod>
</url>
<url>
<loc>https://example.com/blog/ai-search-trends</loc>
<lastmod>2025-10-20</lastmod>
</url>
</urlset>Code Examples
Basic sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2025-12-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/pricing</loc>
<lastmod>2025-11-20</lastmod>
<priority>0.8</priority>
</url>
</urlset>Sitemap index file
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-pages.xml</loc>
<lastmod>2025-12-01</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-blog.xml</loc>
<lastmod>2025-11-28</lastmod>
</sitemap>
</sitemapindex>Referencing sitemap in robots.txt
User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xmlFrequently Asked Questions
Why does a sitemap index only score 5 instead of 10?
A sitemap index references multiple sub-sitemaps, but the analyzer cannot crawl into each sub-sitemap to verify your specific page is listed. The index confirms you have sitemaps in place, which earns partial credit, but it cannot prove your analyzed URL is discoverable. If possible, use a flat sitemap or ensure your pages appear in the referenced sub-sitemaps.
My page exists on the site but is not in the sitemap. Does that matter?
Yes. AI crawlers can find pages through links, but being listed in the sitemap explicitly signals that the page is important and should be indexed. Missing from the sitemap drops your score from 10 to 5. It also means crawlers may deprioritize or skip the page entirely during their next crawl cycle.
How often should I update my sitemap?
Update it whenever you add, remove, or significantly revise pages. The best approach is automatic generation so your sitemap stays in sync with your live content. Most CMS platforms and frameworks like WordPress, Next.js, and Astro support dynamic sitemap generation out of the box.
Check Your GEO Score
Run a free analysis on your website and see how you score across all 52 factors.
Analyze My SiteMobile Friendly
NextCanonical URLs