All articles
Technical SEO · · 6 min read

Shopify Sitemap Explained: Control What Gets Indexed

Shopify builds your sitemap automatically. Here is what is in it, how to submit it, and how to control which pages appear.

Physical folders and index cards arranged neatly on a wooden workbench.
On this page

A Shopify sitemap is an XML file that Shopify generates automatically at yourdomain.com/sitemap.xml. It lists the URLs you want search engines to discover: products, collections, pages and blog content. You cannot upload a custom sitemap or edit the file directly, but you can control what appears in it through product status, sales channels and a hidden-page metafield.

How the Shopify sitemap is built

The file at /sitemap.xml is a sitemap index. It does not list pages itself. It links to child sitemaps, each covering a type of content. On Shopify's own demo store and on live stores, the index lists child sitemaps for products, collections, pages, blogs and articles, a sitemap for metaobject pages, and a small sitemap used for AI agent discovery that points to a file called agents.md. Names follow a pattern such as sitemap_products_1.xml.

Large catalogs are split into numbered child files, so you may see sitemap_products_1.xml and sitemap_products_2.xml. A single sitemap file is limited to 50,000 URLs by the sitemap protocol, but Shopify may split files earlier, so do not assume a count. The sitemap updates automatically when you add, change or remove content.

If you sell in several markets, the index also lists localized versions of the child sitemaps for those domains or language paths.

How to find your sitemap

Type your primary domain followed by /sitemap.xml in a browser. Open the child files to see the raw XML: each entry has the URL, last modified date and image data where relevant. Check that the file loads and lists what you expect.

How to submit it to Google and Bing

Search engines find the sitemap on their own over time, but submitting it speeds up discovery and gives you reporting.

  • Google Search Console. Open the Sitemaps report, enter sitemap.xml in the add field and submit. Submit only the main index. Google will read the child files.
  • Bing Webmaster Tools. Create an account and import your verified site from Search Console, then confirm the sitemap is listed.
A clipboard resting on a cardboard shipping box.
Regular technical checks prevent indexing errors from hiding your products.

Can I edit the Shopify sitemap?

You cannot open the file and delete a URL. To keep a page out of the sitemap, change it at the data level.

  • Product status. Only Active products appear. Setting a product to Draft or Archived removes it, but that page then returns a 404 for anyone with the link, so use it for items you are retiring, not items you want to keep live.
  • The hidden-page metafield. Shopify's developer documentation describes a metafield with the namespace seo, key hidden, type integer and value 1. It adds noindex and nofollow tags, removes the page from the sitemap and hides it from storefront search. Test it on one page first, then check the page source for the robots tag and the sitemap for the URL. Community reports vary on the exact behavior, so verify rather than assume.
  • Theme code. You can output a noindex tag conditionally in your theme for groups of pages, but that does not remove the URL from the sitemap.

If you need to change what crawlers may fetch, Shopify also lets you customize robots.txt with a robots.txt.liquid template. The default already blocks the cart, checkout, internal search and several sort and filter combinations.

Why is a product missing from the sitemap?

  • Status. Draft and archived products are excluded.
  • Sales channel. A product has to be published to the Online Store channel to have a web page. If it is available only through another channel, there is no URL to list.
  • Hidden metafield. Check whether the seo.hidden metafield is set on it.
  • Canonical URLs. Shopify's sitemap lists the standard /products/ address. A product reached through a collection path, such as /collections/shirts/products/blue-shirt, is not listed separately, because it canonicalizes to the standard URL.

The sitemap is only discovery

A sitemap tells search engines a page exists. It does not make them index it, rank it or like it. If pages are listed but not indexed, look at the Pages report in Search Console for the reason, and at your duplicate URLs, redirects and content. How to do an SEO audit on Shopify walks through those checks, and how to find and fix 404 errors covers sitemap URLs that return errors.

SEO Karbon's free Shopify SEO audit checks crawl and indexation setup, including your sitemap, as part of 71 checks across 10 areas, with no login.

Next step

See how your own store scores

The free audit checks your store against the issues in this article — indexation, duplicate collections, page speed and everything else that holds a Shopify store back — and shows you what to fix first.