An XML sitemap is a machine-readable list of your important URLs: products, collections, content pages and blog posts. Search engines treat it as a discovery hint, not a command. Each sitemap file can hold up to 50,000 URLs or 50 MB uncompressed, so larger stores use a sitemap index that points to several files.
Shopify generates /sitemap.xml automatically, split into products, collections, pages and blogs. WooCommerce stores usually rely on an SEO plugin such as Yoast or Rank Math, and Magento has a built-in generator that needs configuring.
Why it matters for eCommerce
Fast discovery matters when you launch products, bring back seasonal ranges or publish new collections. A clean sitemap is also a clear statement of which URLs you consider canonical, which makes index problems easier to diagnose when you compare it with Search Console data.
How it works in practice
- Submit the sitemap index in Google Search Console and Bing Webmaster Tools, and reference it in robots.txt.
- Include only indexable, canonical URLs that return a 200 status.
- Keep lastmod dates accurate; Google uses lastmod when it is consistently reliable and ignores the priority and changefreq fields.
- Compare submitted and indexed URLs per sitemap to spot problems by page type.
Common mistakes
- Listing redirected, noindexed or non-canonical URLs.
- Setting every lastmod to today’s date, so search engines learn to ignore it.
- Expecting a sitemap to fix indexing problems caused by thin or duplicate content.