What the Sitemap directive does
The Sitemap directive is a line in robots.txt that tells crawlers where to find one or more sitemap files. Format: Sitemap: https://example.com/sitemap.xml. Each declaration must be a full URL (not a relative path). Multiple Sitemap lines are valid — Google, Bing, and other major crawlers read all of them. The directive is hint-only: declaring a sitemap doesn't guarantee crawling, but it does ensure the crawler knows the sitemap exists without needing manual submission.
Shopify's default sitemap directive — already there
The default-rendered Shopify robots.txt includes a Sitemap directive pointing to /sitemap.xml. The directive is auto-emitted by the default-groups loop — specifically by the group.sitemap conditional inside Shopify's verbatim default template. Stores without a custom robots.txt.liquid still get this directive automatically. Stores with a custom robots.txt.liquid that preserves the default loop also still get it. Stores that replaced the default loop with plain text lose the auto-generated Sitemap directive and have to declare it manually.
The Liquid sitemap object
Per Shopify Dev Docs, the sitemap Liquid object exposes two properties. sitemap.directive returns the literal string 'Sitemap' — useful for emitting the directive without hard-coding the keyword. sitemap.value returns the sitemap URL — the URL itself, e.g. https://yourstore.com/sitemap.xml. Together they let theme code emit Sitemap directives generated from the platform's internal state rather than hard-coded paths.
Adding extra sitemap URLs (image, video, app feeds)
To add an extra sitemap, append a hard-coded Sitemap line below the default-groups loop. The format is plain text: Sitemap: https://yourstore.com/path-to-extra-sitemap.xml. Multiple Sitemap lines are valid. Common sources for extra sitemaps: a third-party app that generates an image sitemap or video sitemap, a separate news sitemap for Shopify blogs that publish frequently, or an externally-hosted sitemap for content syndicated from another domain.
When extra sitemaps are justified
Extra sitemaps earn their keep on three workloads. (1) Image sitemaps for stores with substantial visual content — a fashion brand with 50+ product photos per PDP can benefit from a dedicated image sitemap, typically generated by a third-party SEO app. (2) Video sitemaps for stores with embedded product videos or shoppable video content. (3) Blog news sitemaps for stores publishing high-frequency editorial content that needs faster Google News inclusion. For most Shopify stores under 1,000 products, the default /sitemap.xml is sufficient and extras add complexity without benefit.