Shopify is a dependable, scalable commerce platform, but it makes some SEO decisions for you. URL prefixes are fixed, the sitemap is generated automatically, and the robots.txt file starts from a Shopify default. Good Shopify SEO means knowing which of these defaults are already sensible, which ones you can change, and where stores most often create their own problems. This guide works through the store-wide technical settings; for individual product pages, see our separate guide to Shopify product page SEO.

Working Within Shopify's Fixed URL Structure

On every Shopify plan the system prefixes are fixed: products live under /products/, collections under /collections/, pages under /pages/ and blog posts under /blogs/blog-name/. You cannot remove or rename them, and that is not a ranking problem in itself. What you control is the handle, the last part of the URL.

  • Keep handles short and descriptive. /products/mens-leather-hiking-boots is clearer than /products/mens-leather-waterproof-hiking-boots-black-edition-2026.
  • Avoid dates and campaign words in handles. A collection called /collections/summer-sale-2026 becomes outdated; /collections/sandals keeps its value year after year.
  • Use variants for minor options. Sizes and small colour differences belong on one product, not as separate products with near-identical pages.

Changing Handles Without Losing Traffic

When you edit a handle in the product or collection editor, Shopify shows a checkbox to create a URL redirect from the old address. Leave it ticked. To review or add redirects in bulk, go to Online Store > Navigation > URL Redirects (in newer admin layouts this sits under Content or the Navigation menu). After a large change, check that redirects point straight to the final URL rather than through a chain of older redirects.

Understanding Shopify's Default robots.txt

Every store serves a default robots.txt that already blocks many low-value URLs: the cart and checkout, internal search results, sorted collection URLs (sort_by), multi-tag collection URLs that use +, and several filter combinations. Open yourstore.com/robots.txt before changing anything, because many tutorials recommend adding rules that are already there.

If you do need an extra rule, Shopify lets you customise the file with a robots.txt.liquid template. In the theme editor go to Online Store > Themes > Edit code, choose Add a new template, select robots.txt, and Shopify creates templates/robots.txt.liquid with the default output. Add rules inside the existing loop so the defaults and the sitemap line are kept:

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

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

  {%- if group.user_agent.value == '*' -%}
    {{ 'Disallow: /*?*view=*' }}
  {%- endif -%}

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

A Common Mistake

Many published robots.txt.liquid examples leave out the group.sitemap block. Using them silently removes the Sitemap line from your robots.txt. Always keep it, and re-open /robots.txt after saving to confirm the output.

Remember that robots.txt controls crawling, not indexing. A URL blocked in robots.txt can still appear in results if other pages link to it, and Google cannot see a noindex tag on a page it is not allowed to crawl. Choose one method per URL pattern. Our guide to robots.txt explains the difference.

Managing Faceted Navigation and Filters

Shopify's storefront filtering adds parameters such as ?filter.v.option.color=Blue&filter.v.price.gte=10 to collection URLs. Each combination is technically a new URL. The numbers grow quickly: a collection with 4 sizes, 5 colours and 3 fabrics, where shoppers can tick any mix of values, has thousands of possible filter combinations. Very few of them deserve to be indexed.

  • Check the canonical on a filtered URL. Most current themes point the canonical of a filtered collection back to the clean collection URL. View the source of a filtered page and confirm this.
  • Do not link to filter combinations from menus or content unless that combination is a page you want ranked.
  • Turn valuable filters into real collections. If people genuinely search for "blue linen shirts", create a /collections/blue-linen-shirts collection with its own description instead of hoping a filter URL ranks.

Avoiding Duplicate Product URLs from Collections

Many themes link from collection pages to /collections/name/products/handle instead of /products/handle. Shopify canonicalises these to the product URL, but your own internal links still spread signals across duplicates. In the product-card snippet, remove the within: collection filter so collection grids link directly to the canonical product URL.

Sitemaps, Markets and Indexing Checks

Shopify generates /sitemap.xml automatically, with child sitemaps for products, collections, pages and blog posts. Submit it once in Google Search Console and then use the Page indexing report to see what Google actually indexed. Hidden products, password-protected stores and draft items are left out automatically.

If you sell internationally with Shopify Markets and use subfolders such as /en-gb/, Shopify adds hreflang tags between the market versions. Check that each market's content and prices really differ and that each version is listed in the sitemap. Our hreflang guide covers what to verify.

Keeping Apps from Slowing the Store

Each app can add scripts to every page, and some keep loading code after they are uninstalled because they wrote snippets into the theme. Review installed apps every few months, remove the ones you no longer use, and search the theme code for leftover snippet includes. Test the homepage, a collection and a product page with our page speed checker before and after.

Auditing Store Links

Stores change constantly: products sell out, collections are renamed and seasonal banners link to pages that no longer exist. Run our broken link checker after every large catalogue change, starting with the header menu, footer and homepage banners, and read our guide on canonical tags to understand how Shopify chooses which URL to index.