Shopify Sitemap.xml: What's In It and How to Control It

Shopify builds your sitemap.xml for you as an index of product, collection, page and blog files. You can't edit it, but you can control what goes in, where it's submitted and how fast changes show up.

Night pixel-art scene with a storefront beside its page list, a sitemap that guides search engines through a store.

Your Shopify sitemap lives at yourdomain.com/sitemap.xml, and Shopify builds and updates it for you. It's a sitemap index that points to child files for products, collections, pages and blogs. You can't edit it directly. You control it by publishing, hiding items with the seo.hidden metafield, and submitting it in Search Console.

That "you can't edit it" part trips people up. Store owners look for a sitemap setting, find nothing, and install an app they don't need. Or they hide a product in the wrong way and wonder why it still shows up in Google two months later.

This post covers what's in the file, how pagination and markets change it, how to keep pages out, how to submit it to Google and Bing, how robots.txt fits in, and a troubleshooting table and checklist for when the sitemap isn't updating.

Key takeaways

  • It builds itself. Shopify generates /sitemap.xml as an index of product, collection, page and blog files, and you can't edit it by hand.
  • Control what goes in. Use the seo.hidden metafield or Unlisted status to drop items, and unpublish collections you don't want listed.
  • Submit the index once. Add sitemap.xml in Google Search Console for every domain you use, then import the site into Bing.
  • Stale usually means unread. If the live file is right, Google just hasn't fetched it again, so request indexing for the pages that matter.
  • Validate after big changes. Check the index and child files after a migration, a markets launch or a bulk catalog cleanup.

Where is the Shopify sitemap?

Open your primary domain and add /sitemap.xml to the end. For a store at example.com, that's https://example.com/sitemap.xml. Shopify's help center says the file is generated automatically and sits at your domain's root.

An XML sitemap is a list of URLs you want search engines to find. It doesn't force anything into Google. It's a hint about what exists and when it changed.

Use your primary domain, not the myshopify.com address. If you have extra domains that only redirect, they don't need their own submission. Shopify's guidance is to make sure those domains redirect to your primary domain unless you use them for international targeting.

If you're new to how Shopify handles SEO overall, start with the Shopify technical SEO guide and come back here for the sitemap details.

What's inside a Shopify sitemap.xml?

The file you open is a sitemap index. That's a sitemap of sitemaps. Each entry points to a child file that lists the real URLs. The help center says the main sitemap links to separate sitemaps for products, collections, blogs and webpages.

On live stores in November 2026, the index usually holds these children:

Child file What it lists Notes
sitemap_products_1.xml Your homepage and each published product Has from and to parameters
sitemap_collections_1.xml Each published collection Has from and to parameters
sitemap_pages_1.xml Each published page, like About or FAQ Has from and to parameters
sitemap_blogs_1.xml Each blog's main page One entry per blog
sitemap_articles_1.xml Individual blog posts Shows up on stores with articles
sitemap_agentic_discovery.xml The store's /agents.md file Newer, for AI shopping agents

That last one is new. Shopify now manages an agents.md file by default for every store, and many live indexes list it in its own child file. It's meant for AI agents, not for Google rankings. It sits next to files like llms.txt, which the llms.txt glossary entry explains.

A trimmed sitemap index

Here's what a typical index looks like. The URLs and ID ranges are fake.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <!-- This is the parent sitemap linking to additional sitemaps for products, collections and pages as shown below. The sitemap can not be edited manually, but is kept up to date in real time. -->
  <sitemap>
    <loc>https://example.com/sitemap_agentic_discovery.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap_products_1.xml?from=7012345678901&amp;to=9087654321098</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap_pages_1.xml?from=98765432101&amp;to=123456789012</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap_collections_1.xml?from=401234567890&amp;to=498765432109</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap_blogs_1.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap_articles_1.xml</loc>
  </sitemap>
</sitemapindex>

Notice the comment at the top. That's Shopify's own text, and it settles the editing question.

A trimmed product child sitemap

Each child file is a normal urlset. Product entries carry a last modified date, a change frequency and the main product image.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>https://example.com/</loc>
    <changefreq>daily</changefreq>
  </url>
  <url>
    <loc>https://example.com/products/ridgeline-trail-runner</loc>
    <lastmod>2026-11-20T09:14:02-05:00</lastmod>
    <changefreq>daily</changefreq>
    <image:image>
      <image:loc>https://cdn.shopify.com/s/files/1/0000/0000/files/ridgeline-side.jpg</image:loc>
      <image:title>Ridgeline Trail Runner</image:title>
    </image:image>
  </url>
</urlset>

Two details matter here. First, Google ignores the priority and changefreq tags. It uses lastmod only when the dates are consistently accurate. Second, Google has deprecated the image:title tag. The image:loc still helps Google find your main product photo.

How does pagination work in child sitemaps?

The from and to numbers are ID ranges. They mark the first and last item ID in that file. Big catalogs get more than one file per type, such as sitemap_products_1.xml and sitemap_products_2.xml.

Go Fish Digital reports that Shopify starts a new child file once one passes 5,000 URLs, a figure it revised after Shopify clarified it. Every file stays well under the protocol cap of 50,000 URLs or 50 MB uncompressed.

You don't need to manage any of this. The practical point is simpler. Never submit a single child file with its from and to parameters. Those ranges shift as your catalog changes. Submit the index and let it point to the right files.

Can you edit the Shopify sitemap?

No. There's no sitemap setting in the admin and no template for it in the theme. Shopify's own file comment says it can't be edited manually but stays up to date in real time.

What you can do is change what feeds it:

  • Publish or unpublish. Items not available on the Online Store channel don't appear.
  • Hide items. The seo.hidden metafield drops products, pages and blog posts.
  • Unlist products. Unlisted status removes a product from the sitemap and most storefront surfaces.
  • Add extra sitemaps. Point to another file with a Sitemap line in robots.txt.

My default is to leave Shopify's file alone and work through those four levers. A sitemap app that "replaces" the native file usually just adds a second file on another path. That's fine for URLs Shopify can't list, like a headless blog. It's not needed for a normal store.

How do you keep a page out of the Shopify sitemap?

Pick the method by what you want hidden and where. Shopify's help page on hiding a page from search engines lists three ways, and they do different things.

Method Leaves sitemap Hidden from search engines Hidden from storefront search Works on
seo.hidden metafield set to 1 Yes Yes, adds noindex Yes Products, pages, blog posts
Theme noindex snippet No Yes No Any template or handle
Unlisted product status Yes Yes Yes, plus collections and recommendations Products only
Unpublish from Online Store Yes Yes, the page stops loading Yes Products, collections, pages

A noindex tag tells search engines not to show a page in results. The sitemap tells them a page exists. Sending both signals for the same URL is a mixed message. That's why seo.hidden is the cleanest choice for most cases: it removes the URL from the sitemap and adds the tag in one step.

How do you set up the seo.hidden metafield?

The admin steps, per Shopify's help center:

  1. Go to Settings > Metafields and metaobjects.
  2. Under Metafield definitions, pick Products, Pages or Blog posts.
  3. Click Add definition.
  4. Name it something like SEO Hidden, and set Namespace and key to seo.hidden.
  5. Click Select type, choose Integer, then One value.
  6. Under Validations, set Maximum value to 1, then save.
  7. Open the item you want hidden, set SEO Hidden to 1 in its Metafields section, and save.

To undo it, clear the value and save. If the admin says the namespace and key are already taken, an app already uses that key. You'll need to manage it through that app.

Developers can set the same metafield through the Admin API. Shopify's developer docs show a productUpdate mutation with namespace seo, key hidden, value 1 and type number_integer. The docs say it adds noindex and nofollow tags to the resource's pages. Here's a trimmed example:

{
  "query": "mutation productUpdate($product: ProductUpdateInput!) { productUpdate(product: $product) { product { id } userErrors { field message } } }",
  "variables": {
    "product": {
      "id": "gid://shopify/Product/1234567890",
      "metafields": [
        { "namespace": "seo", "key": "hidden", "value": "1", "type": "number_integer" }
      ]
    }
  }
}

This is the version to use when you hide hundreds of items, like a batch of wholesale-only SKUs.

When should you use the theme noindex snippet?

Use it when you want a page out of Google but still listed in storefront search. It also covers templates, like the search results page. Add it inside the head of theme.liquid:

{% if handle contains 'wholesale-price-list' %}
  <meta name="robots" content="noindex">
{% endif %}

This snippet doesn't remove the URL from the sitemap. So the sitemap says "here's a page" while the page says "don't index me." Google handles that fine, but it's untidy. Also watch the contains match. A handle like wholesale would also match wholesale-faq. Use the full handle.

What about collections?

Shopify's help page lists seo.hidden for products, pages and blog posts, not collections. To drop a collection, unpublish it from the Online Store sales channel. If it had traffic or links, add a redirect to the closest live collection first. The category page SEO guide covers which collections deserve to stay indexed.

How do Shopify Markets and languages change the sitemap?

Markets add URLs to the sitemap. Shopify's SEO page for markets says sitemaps include all market URLs, with hreflang notes on each entry. It also says each market's sitemap lists only the products sold in that market.

Hreflang is a tag that tells search engines which language and country a page is for. Shopify adds it for you. It does this for any market with its own domain, subdomain or subfolder.

Here's how the setup choice plays out:

Setup Example Sitemap to submit
One domain, one language example.com example.com/sitemap.xml
Subfolders per market example.com/en-ca/ example.com/sitemap.xml covers them
Subdomains per market ca.example.com One sitemap per subdomain
Country domains example.ca One sitemap per domain
Extra domains with no targeting example.net None, redirect it to the primary

Each extra domain gets its own sitemap. The help center says these domains need the Basic plan or higher. Shopify's hreflang page says to submit a sitemap for every domain and subdomain in Search Console.

Languages work the same way. If you sell in French and English, both go into each domain's sitemap on their own. You don't build a file per language.

Here's a quick way to decide. Subfolders share your main domain's strength, so they're the right start for most stores. Shopify's own table calls them the lowest setup effort. Country domains send the strongest local signal, but each one is a new site to grow and a new property to watch. I'd start with subfolders and move to a country domain only when one market is big enough to staff.

Do password-protected stores have a sitemap?

The file exists, but crawlers can't read it. Shopify says you can submit a sitemap anytime, but Google can't access it while the store is in private mode.

This matters most on launch day. A common sequence goes wrong like this: the team submits the sitemap during build, sees Couldn't fetch, and forgets about it. Google retries for a few days, then stops. The store goes live, and nobody resubmits.

Do it in this order instead:

  1. Remove the password page.
  2. Open /sitemap.xml in a private browser window to confirm it loads.
  3. Submit or resubmit it in Search Console.
  4. Request indexing for the homepage and your top five collections with URL Inspection.

Development stores and paused stores behave the same way. If crawlers can't see the store, they can't see the sitemap.

How do you submit the sitemap to Google and Bing?

Submit the index once per domain. Then let the search engines read it on their own schedule.

Google Search Console

Shopify's help center walks through the Search Console steps:

  1. In Google Search Console, add a URL-prefix property for your domain, including https://.
  2. Verify ownership. The usual way on Shopify is the HTML meta tag, pasted into the head of theme.liquid.
  3. Go to Indexing > Sitemaps.
  4. Enter sitemap.xml and click Submit.

If verification fails, Shopify suggests waiting 15 minutes and trying again. Repeat the steps for each international domain.

A domain property, verified by DNS, also works if you manage DNS yourself. It covers every subdomain and protocol in one property, which is handy with subdomain markets.

The Sitemaps report then shows a status. Google's help page defines three: Success, Has errors and Couldn't fetch. It also shows a Last read date, but only after a successful fetch.

Bing Webmaster Tools

The fastest route is to import your site from Search Console. Bing's announcement says imported sites are verified automatically and their sitemaps come along. You can import up to 100 sites at once.

If you'd rather not connect the two accounts, add the site in Bing by hand and submit the same sitemap.xml URL there.

What does robots.txt have to do with the sitemap?

Your robots.txt file tells crawlers what not to crawl. It can also list sitemaps. Shopify's default robots.txt ends with a line like this:

Sitemap: https://example.com/sitemap.xml

Google's docs say a Sitemap line in robots.txt is one valid way to submit a sitemap. Google finds it the next time it reads the file. So even a store that never touched Search Console has its sitemap listed.

To add a second sitemap, such as one for a headless blog on the same domain, create a robots.txt.liquid template. Shopify's developer docs show how to keep the default rules and add an extra Sitemap line below them:

{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

Sitemap: https://example.com/guides/sitemap.xml

The robots.txt edits for duplicate URLs and filters are a bigger topic. They're covered in the technical SEO guide for Shopify.

Are product variants and images in the sitemap?

Variants aren't listed on their own. Each product shows up once, at its clean /products/handle URL. A shirt in six colors is one sitemap entry, not six. That's usually what you want, since the variants share one page.

The collection path versions of a product, like /collections/shirts/products/oxford-shirt, aren't listed either. Only the clean product URL goes in. That matches how Shopify themes set the canonical tag, which points to the clean URL.

Images are partly covered. Shopify's help center says the sitemap includes each product's primary product image. Extra gallery images aren't listed. Google can still find them on the page, so this rarely matters. If image search is a real channel for you, make sure the main image is the one shoppers search for.

If variants are a real search target for you, like a specific colorway, the sitemap won't help. You'd need separate products with their own URLs. That's a catalog decision, not a sitemap setting.

How long do sitemap updates take to show up?

The file itself updates fast. The help center says sitemaps update automatically when you add a webpage, product, collection, image or blog post. Publish a product, reload the products child file, and it's usually there.

Bar chart of revenue given up while indexing lags: $720 for two extra weeks, $1,440 for four and $2,160 for six.Bar chart of revenue given up while indexing lags: $720 for two extra weeks, $1,440 for four and $2,160 for six.
Assumes 40 products at 30 organic visits each a month, a 2% conversion rate and a $60 order, or $1,440 a month once indexed. Worked example from this guide.

Google is the slow part. Its docs say that submitting a sitemap is merely a hint. Google may not download it right away. And Shopify's own page says crawling and indexing can take time, with no guaranteed timeline.

So "Shopify sitemap not updating" usually means one of two things. Either Google hasn't read the file again, or Google read it and chose not to index some URLs yet. The Sitemaps report and the Pages report in Search Console tell you which.

To speed things up for the pages that matter:

  • Open URL Inspection for each new collection and its top products, then click Request indexing.
  • Link new products from a collection that's already indexed.
  • Add the new collection to your main menu if it's important.
  • Resubmit the sitemap after a major change, like a migration or a markets launch.

How do you validate a Shopify sitemap?

Validate after any big change: a migration, a domain switch, a markets launch or a bulk delete. Shopify writes valid XML, so you're not hunting for syntax errors. You're checking that the right URLs are in and the wrong ones are out.

Paste the index into the free XML sitemap validator. It checks that the file is well formed, lists the child sitemaps and flags duplicates, mixed hosts, non-https URLs and bad lastmod dates. Then paste each child file in turn.

Here's what to look for on a Shopify store:

Check What good looks like What it means if it fails
Host Every URL uses your primary domain A domain redirect or markets setup is off
Protocol All https Rare on Shopify, check custom domains
Hidden items No product you set to seo.hidden or Unlisted The metafield isn't set or an app owns the key
Discontinued items None that you archived or redirected The item is still published somewhere
Product count Close to your active, published catalog Products aren't published to Online Store
Child file count Grows with your catalog Normal, no action needed

For a deeper check, crawl the sitemap URLs with Screaming Frog in list mode. Every URL should return a 200 status, be indexable and have a self-referencing canonical. Anything that redirects or returns a 404 shouldn't be in a sitemap. The full process is in the technical SEO audit guide.

Shopify sitemap troubleshooting table

Most sitemap problems have a short list of causes. Work down the table before you install an app or open a support ticket.

Symptom Likely cause Fix
Search Console says Couldn't fetch Store was password protected when submitted, or wrong domain Remove the password, confirm the file loads, resubmit
A new product isn't in the sitemap Draft, not published to Online Store, or Unlisted Set it to Active and publish it to the Online Store channel
A hidden product still shows seo.hidden not set to 1, or Google hasn't recrawled Check the metafield, then request indexing to refresh
Old products still listed Still Active and published Archive or unpublish them, and redirect if they had traffic
Sitemap shows myshopify.com URLs Primary domain not set Set the primary domain in Settings > Domains
Discovered URLs stuck at a low number Google read the index, not every child yet Wait a few days, then check each child file in the report
Indexed count far below sitemap count Thin, duplicate or low-demand pages Improve or hide them, don't just resubmit
International domain not indexed Domain not verified or submitted Add a property and submit its own sitemap
Extra sitemap not picked up Sitemap line missing from robots.txt Add it in robots.txt.liquid and submit it too
Sitemap not updating after edits File is fine, Google hasn't refetched Check Last read, request indexing for key URLs

Two of these deserve more words.

The indexed count gap is the one people misread. A sitemap with 2,000 URLs and 900 indexed isn't a sitemap problem. Google read your list and decided some pages weren't worth indexing yet. The fix is page quality and internal links, not a new file. Search Console's Pages report shows the reasons, like "Crawled, currently not indexed."

The hidden product case is about timing. Setting seo.hidden removes the URL from the sitemap right away and adds noindex to the page. But Google has to visit the page again to see the noindex tag. Until then, the old result can stay up. Request indexing on that URL to speed it along.

Common mistakes with Shopify sitemaps

These patterns come up again and again on Shopify stores.

Submitting a child file instead of the index. The from and to ranges change as the catalog grows. A child file submitted last year may now point to the wrong range. Submit sitemap.xml and nothing else from Shopify.

Hiding with noindex alone. The theme snippet keeps the URL in the sitemap. Use seo.hidden when you want the page gone from both.

Leaving discontinued products published. If they're Active and on the Online Store channel, they stay in the sitemap. Decide on each one: keep, redirect or remove.

Forgetting extra domains. A country domain with no Search Console property is invisible in your reports. Each one needs its own property and sitemap.

Installing a sitemap app by reflex. Most stores don't need one. A second sitemap of the same URLs adds nothing and can drift out of date.

Treating the sitemap as a ranking lever. It helps Google find pages. It doesn't make them rank. If the indexing gap is large, the issue is on the pages.

Shopify sitemap checklist

Run this once now and again after any big catalog or domain change.

Step Done when
Open /sitemap.xml on the primary domain The index loads in a private window
Confirm the child files Products, collections, pages and blogs are listed
Set up the seo.hidden metafield definition It exists for products, pages and blog posts
Hide test, wholesale and thank-you pages They're gone from the child files
Unpublish or redirect dead collections No empty or retired collections are listed
Verify each domain in Search Console Every live domain has a property
Submit sitemap.xml per domain Status shows Success
Import the site into Bing Webmaster Tools The sitemap appears in Bing
Check robots.txt The Sitemap line points to the right file
Validate the index and children No duplicates, mixed hosts or dead URLs
Compare sitemap count to indexed count You know why any gap exists

If you also send products to Google Merchant Center, the feed and the sitemap should agree. The Shopify product feed guide covers that side. And if you run a HubSpot blog or site next to the store, its sitemap works differently, as the HubSpot XML sitemap guide explains.

What to do this week

Start with ten minutes and a browser. Open your sitemap.xml and click into each child file. Make sure what you see matches what you sell.

Then do the three fixes that pay back fastest:

  1. Create the seo.hidden metafield definition and hide every page that shouldn't be in Google.
  2. Submit sitemap.xml in Search Console for every domain, and import the site into Bing.
  3. Paste the index into the XML sitemap validator and fix anything it flags.

If you want an AI-readable summary of the store too, the llms.txt generator builds one in a few minutes. And if your store connects to a CRM, a feed and a pile of apps, that's the kind of plumbing we set up in GTM engineering projects.

FAQ

Where do I find my Shopify sitemap?

Add /sitemap.xml to your primary domain, for example https://example.com/sitemap.xml. Shopify generates it automatically for every store with the Online Store channel. It's a sitemap index, so the file you open is a list of other sitemaps: one set for products, collections, pages and blogs. Submit the index URL, not the child files, in Google Search Console.

Can I edit my Shopify sitemap.xml file?

No. Shopify writes the file itself and says in the file's own comment that it can't be edited manually. You control it indirectly. Publishing or unpublishing items adds or removes them, the seo.hidden metafield drops products, pages and blog posts, and setting a product to Unlisted removes it too. Anything beyond that needs a custom sitemap on another path.

Why is my Shopify sitemap not updating in Search Console?

Usually the sitemap is fine and Google just hasn't read it again. Shopify updates the file when you publish, but Google fetches it on its own schedule. Open the live sitemap in a browser to confirm the new URLs are there. Then check the Last read date in the Sitemaps report and use URL Inspection to request indexing for the pages that matter most.

How do I remove a page from the Shopify sitemap?

Create a metafield definition with the namespace and key seo.hidden, type Integer, for products, pages or blog posts. Set it to 1 on the item and save. Shopify then drops it from the sitemap, adds a noindex tag and hides it from storefront search. For a collection, unpublish it from the Online Store channel instead, since seo.hidden isn't offered for collections.

Does a password-protected Shopify store have a sitemap?

The file exists, but search engines can't read it while the store is password protected. Shopify says you can submit it anytime, yet Google won't be able to fetch it until you turn off the password page. Submit it in Search Console on launch day, right after you remove the password, and check that the status turns to Success.

Do I need a sitemap app for Shopify?

Most stores don't. The built-in sitemap covers products, collections, pages and blog posts, and it updates automatically. An app makes sense only when you need URLs Shopify doesn't list, such as a headless front end or pages hosted elsewhere. Even then, add the extra sitemap with a Sitemap line in robots.txt rather than trying to replace Shopify's file.

More like this

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.