Advertisement

Shopify Sitemap Generator

Our Shopify Sitemap Generator automatically crawls your store to discover canonical products and collections. It bypasses Shopify's rigid native sitemap structure, allowing you to generate custom, targeted XML files for better indexation tracking.

How to Use This Tool

1
1

Enter Shopify URL

Input the homepage URL of your Shopify store (e.g., https://store.myshopify.com).
2
2

Analyze Site

Click generate to let our crawler map your Shopify architecture, including posts, pages, and products.
3
3

Review URLs

Check the discovered URLs. We exclude default Shopify system pages and non-indexable routes.
4
4

Choose Output

Select either a standard 'Single Sitemap' or 'Sitemap Index' format.
5
5

Copy or Download

Save the generated XML file directly to your device.
6
6

Recommended Action

Upload the sitemap to your root directory (if allowed by Shopify) and submit it via Google Search Console.

How Shopify Handles Sitemaps

Shopify automatically generates a sitemap index file for every store, located at /sitemap.xml. This native file links to child sitemaps like sitemap_products_1.xml, sitemap_pages_1.xml, and sitemap_collections_1.xml.

While convenient, Shopify's native sitemaps have massive limitations: they cannot be edited. If you want to exclude a specific collection, or if you are running a headless Shopify build, you are forced to use the default structure which often includes hidden products or empty collections.

What BuildSitemap Checks

BuildSitemap crawls your Shopify store via HTTP requests, ignoring the locked sitemap.xml. We trace the actual internal linking structure of your store (starting from the homepage).

We specifically look for canonical URL patterns (e.g., ignoring URLs like /collections/all/products/shirt in favor of the canonical /products/shirt) and validate that the pages return a 200 OK HTTP status code.

URLs We Discover

  • Canonical Product pages (/products/product-handle)
  • Collection pages (/collections/collection-handle)
  • Standard Pages (/pages/page-handle)
  • Blog Posts (/blogs/news/post-handle)

URLs to Exclude

  • Collection-aware product URLs (/collections/*/products/*)
  • Variant parameter URLs (?variant=123456789)
  • Tag filtered collections (/collections/shirts/blue)
  • Customer account pages (/account/*)
  • Cart and checkout pages (/cart, /checkout)

Shopify Sitemap Structure

A heavily optimized Shopify sitemap structure heavily prioritizes the /products/ directory over the /collections/ directory for deep indexing, while keeping them separated into distinct XML files.

By using our generator, you can output a "Structured Sitemap" that completely isolates your products from your blog posts, allowing you to submit them separately to Google Search Console to monitor index coverage specific to your inventory.

Common Shopify Problems

Shopify's native sitemap often includes 'hidden' products if the SEO visibility toggle is accidentally left on.

Shopify themes often generate internal links using the collection-aware path (/collections/all/products/item), leading Googlebot to crawl non-canonical URLs.

Pagination on large collections (/collections/all?page=50) eats crawl budget if not managed properly in robots.txt.

How to Use Your Generated Sitemap

Once you generate your custom sitemap using our tool, download the `.xml` file. Because Shopify doesn't let you replace the native /sitemap.xml file at the root, you have two options:

  1. Manual Submission: Do not upload it to Shopify. Instead, go directly to Google Search Console, click "Sitemaps", and submit the URL if you host the file externally, or submit the native Shopify ones if you are just using this tool for diagnostics.
  2. Headless Shopify: If you are running Hydrogen or a Next.js frontend, place this generated XML file in your public/ directory and deploy it to your edge network.
Advertisement
Advertisement

Example Shopify Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://store.example.com/products/premium-leather-bag</loc>
    <lastmod>2026-09-21</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://store.example.com/collections/leather-goods</loc>
    <lastmod>2026-09-20</lastmod>
    <priority>0.8</priority>
  </url>
</urlset>

Best Practice Checklist

Frequently Asked Questions

Does Shopify generate a sitemap?

Yes. Shopify automatically generates a sitemap index at yourdomain.com/sitemap.xml. However, it cannot be manually edited or customized without external tools.

Where is Shopify's sitemap?

Your Shopify sitemap is located at the root of your domain (e.g., example.com/sitemap.xml). It links to child sitemaps for products, pages, collections, and blog posts.

Can BuildSitemap analyze Shopify URLs?

Yes. We crawl your live Shopify store to extract canonical URLs and bypass the default sitemap, allowing you to generate custom XML files for headless builds or audits.

How are Shopify product URLs handled?

BuildSitemap identifies the canonical product URLs (e.g., /products/item) and excludes the duplicate collection-aware paths (e.g., /collections/all/products/item) that Shopify themes often generate.

Can I submit my Shopify sitemap to Bing?

Yes. You can submit the standard /sitemap.xml or your custom generated XML sitemaps to Bing Webmaster Tools just as you would with Google Search Console.

How do I fix a 'Couldn't fetch' error in Shopify?

This error usually occurs if your sitemap.xml is temporarily blocked or unavailable. Ensure your domain is fully verified in Google Search Console without trailing slashes and try submitting again.

Related Tools

Advertisement
Advertisement