Shopify generates your XML sitemap and a default robots.txt. You do not hand-build sitemap.xml. You do not “optimize robots” to rank. You confirm the files on the primary domain, submit the sitemap in Google Search Console, and only then consider a narrow robots.txt.liquid change (for example extra disallows), knowing Shopify’s defaults exist for a reason.
Shopify’s operator pages: SEO overview, finding and submitting your sitemap, editing robots.txt, and the SEO manual. Google’s matching docs: sitemaps overview and robots.txt introduction.
Beginner SEO: Shopify SEO for beginners. Search Console clicks: how to set up Google Search Console for Shopify.
Quick answer
Open https://your-primary-domain/sitemap.xml. You should see a sitemap index that points at child files such as sitemap_products_1.xml, sitemap_pages_1.xml, sitemap_collections_1.xml, and sitemap_blogs_1.xml (names and _1 suffixes grow if Shopify splits large catalogs). Then open /robots.txt. You should see Shopify’s default Disallow rules and a Sitemap: line. In Search Console, after the property is verified, submit sitemap.xml (Shopify’s steps: find-site-map). Do not rewrite robots.txt to “allow everything” or to stuff keywords. Robots.txt does not make pages rank.
What the Shopify sitemap contains
Shopify Help states that every store generates a sitemap.xml with links to products (and a primary product image), pages, collections, and blog posts. The file lives at the root of the store’s domains. You cannot edit the XML by hand. Unpublished or password-gated storefronts will not behave like a public index.
Child sitemaps exist so large catalogs split cleanly. Seeing sitemap_products_1.xml is normal. It is not a ranking file you polish. Google’s sitemap documentation is discovery and optional hints: a URL in a sitemap is not a guarantee it will be indexed. Thin or duplicate URLs can still be skipped. Indexing symptoms: how to fix Shopify indexing issues. Duplicate URL grouping: Shopify canonical URLs.
Use the hostname that is the primary domain (HTTPS). Submitting http:// or the unused www variant when the store 301s elsewhere wastes time. Domain and SSL: buy and connect a domain.
How to submit the sitemap (Search Console)
Full property verification is how to set up Google Search Console for Shopify. Once verified:
- Select the correct property (URL-prefix or Domain) for the host Google should treat as the store.
- Open Sitemaps.
- Submit
sitemap.xmlas Shopify documents—your property URL is prefixed for you. - Wait. “Success” on submit means Google accepted the file, not that every product is indexed.
- Use URL Inspection on a product you care about. Coverage/Page indexing reports lag.
Do not replace Shopify’s file with a third-party “SEO app sitemap” on another domain. Extra sitemaps are optional lists only. Google: sitemaps overview.
What robots.txt actually does
robots.txt tells compliant crawlers which paths they should not request. It is not a security wall. It is not a ranking document. Google’s robots.txt intro is the spec you should trust over forum myths.
Shopify Help: the default file is already aimed at typical commerce SEO. It blocks paths crawlers should not spend time on, including (as Shopify lists in editing robots.txt):
/admin— not a public storefront/cartand checkout-related paths — per-shopper, not landing pages/search— search result URLs/policies/— generated policy templates that are similar across stores/collections/+— filtered collection combinations that duplicate collection content
Those disallows are not “blocking your SEO.” They keep Google from crawling infinite filter combinations and cart URLs. Faceted URL strategy: Shopify faceted navigation and SEO.
A Disallow does not reliably remove an already indexed URL. Use noindex (robots meta or header) plus eventual drop, or remove/redirect the page. Google documents this distinction in the robots.txt intro and the robots meta tag spec. Password-on stores are a different block: indexing issues.
Customizing robots.txt (limited, optional)
Most stores never need this. Shopify lets you add a robots.txt.liquid template and add rules (allow/disallow extra paths, crawl-delay for some bots, extra Sitemap lines). Help Center: editing robots.txt. Theme developers: customize robots.txt.
Rules:
- Keep Shopify’s default groups unless you have a measured reason. Shopify says default entries are there for a reason.
- Do not delete
Disallow: /adminto “get crawled more.” - Do not
Allow: /and wipe disallows thinking Google will rank you. - Do not block
/collectionsor/products“to save crawl budget” on a 200-SKU store. Google’s crawl-budget notes apply mainly to very large or extremely chatty URL spaces (crawl budget); it is not a Shopify 101 hack. - Test
https://your-domain/robots.txtafter you publish the template. A syntax error can block more than you intended.
Apps that “optimize robots.txt for SEO” are usually marketing. Evaluate in best Shopify SEO apps as optional tooling, not a ranking product.
Myths to skip
- “A bigger sitemap ranks more keywords.” Sitemaps list URLs. They do not assign keywords.
- “Disallowing other crawlers makes you rank.” Unrelated; many bots ignore robots.txt.
- “Crawl-delay is a Google ranking factor.” Googlebot does not treat it that way; see Google’s robots docs.
- “I must submit every child sitemap by hand.” Submit the index
sitemap.xmlunless Search Console shows a specific fetch error on a child.
What to do next
Password off, primary domain HTTPS, sitemap submitted, robots left default unless you have a written exception. Duplicate pages: duplicate content. Broader crawl map: Shopify technical SEO. Hub: Shopify 101 category.
You can submit a sitemap without an agency. If robots.txt.liquid was edited badly and is blocking products, AalphaLeo Digital Solutions can review the template. Phone / WhatsApp: +91 9288621081. Optional. Submitting sitemap.xml is not.
Frequently asked questions
Where is my Shopify sitemap?
https://your-primary-domain/sitemap.xml. Shopify Help: find-site-map. Child files such as sitemap_products_1.xml are linked from that index.
Do I need to edit robots.txt to rank?
No. The default file is what Shopify recommends for most stores. Editing is for extra allow/disallow or extra sitemap lines, not for rankings. Google: robots.txt introduction.
I submitted the sitemap. Why are products missing in Google?
A sitemap is a hint. Password pages, noindex, thin collections, duplicates, and “Crawled — currently not indexed” are separate. Walk indexing issues and Search Console’s Page indexing report (Google’s report).
Can I add URLs that Shopify omitted?
Not by editing Shopify’s XML. Create the page in admin (product, collection, page, article) so it becomes eligible for the generated sitemap. Custom apps that host URLs off the storefront are a different property.
Related articles
What Is Shopify? A Plain-Language Explanation for New Store Owners
Shopify is a hosted commerce platform for selling online, in person, and on connected channels from one admin. What it includes, what you st…
What Are Shopify Product Tags and How Should You Use Them?
Shopify product tags are admin merchandising labels for collections, search, and apps—not a ranking shortcut. Naming conventions, what to ta…
What Are Shopify Apps and How Do They Work?
Shopify apps connect to your store via permissions, App Store install, theme embeds, and fees. Native tools vs third-party, scopes, and what…