Skip to main content
Shopify SEO Agency

Shopify SEO guide

Shopify SEO: The Complete Guide for Ecommerce Brands

How Shopify SEO works: what the platform handles, where it limits you, and how to optimize collections, products, technical setup, content and measurement.

By the Shopify SEO Agency editorial team Updated 18 min read 28 primary sources

Key takeaways

  • Shopify handles HTTPS, an automatic sitemap.xml, a default robots.txt and canonical tags in its reference themes, so most SEO work is about content, architecture and theme or app decisions.
  • URL prefixes such as /products/ and /collections/ are fixed by the platform, which means architecture is built with collections, navigation and internal links rather than folder paths.
  • Collection pages usually target category keywords and product pages target specific product queries; give each search intent one URL.
  • Shopify allows up to 100,000 URL redirects on non-Plus plans and 20 million on Plus, and you can only redirect URLs that no longer load a page.
  • Google says there are no special requirements or schema to appear in AI Overviews or AI Mode; indexable, useful pages are the requirement.
  • Measure organic results in Search Console and in GA4's Organic Search channel, which Google says includes AI Overviews and AI Mode traffic.

Shopify SEO is the work of getting a Shopify store’s collection, product and content pages found in Google, Bing and AI-driven search, and turning that visibility into revenue. The platform takes care of a lot of the plumbing: free TLS certificates, an automatically generated sitemap.xml, a default robots.txt, and canonical tags in Shopify’s reference themes. What it doesn’t do is decide which pages should exist, what they should target, or how fast your theme and apps let them load. That part is yours.

So, is Shopify good for SEO? For most ecommerce brands, yes: the defaults are sensible and nothing on the platform stops a store from ranking well. The real limitations are specific and knowable, like fixed URL prefixes, duplicate URL paths that themes can create, and the weight that apps add to every page. This guide covers how search engines see a Shopify store, where each fix lives (admin, theme code, app or platform limit), and what to prioritize.

How search engines see a Shopify store

Every Online Store (Liquid) theme sits on the same URL scheme. Resource types live under prefixes that the platform fixes:

Resource URL pattern Notes
Product /products/{handle} Variants add ?variant={id}
Collection /collections/{handle} /collections/all lists every product
Page /pages/{handle} About, FAQ, size guides, landing pages
Blog post /blogs/{blog-handle}/{article-handle} Each blog has its own handle

Shopify documents the variant format as /products/[handle]?variant=[variant-id], and its redirect documentation calls /products, /collections and /collections/all “fixed Shopify paths.” In practice you can’t rename /products/ to /shop/ or nest products under a category folder in a Liquid theme. You control the handle (the last segment), not the folder.

Shopify generates handles automatically and lets you edit them under the product’s Search engine listing section, but warns not to “edit it too often or the product might not display in search engine results.” Pick a clean, descriptive handle at launch and leave it alone.

What Shopify handles automatically

  • HTTPS. Shopify states that “TLS certificates are provided for free for all domains that are added to Shopify,” and that visitors using the HTTP URL are redirected to the encrypted store.
  • XML sitemap. /sitemap.xml is generated and updated automatically on each domain. It’s an index that links to child sitemaps for products, collections, pages and blogs, and it includes primary product images. You can’t edit it by hand. A password-protected store blocks sitemap access, so launch-day indexing waits until the password comes off.
  • robots.txt. Shopify serves a default file it calls “optimal for Search Engine Optimization (SEO)”. It blocks cart, checkout, account and admin paths, plus sorted and multi-filter collection URLs. Single-tag collection pages such as /collections/shoes/leather are not blocked by the default file (observed on Shopify’s Dawn demo store), so treat them as indexable unless your theme says otherwise.
  • Canonical tags. Themes output the canonical through the global canonical_url Liquid object, and Theme Store themes must include the SEO metadata snippet with the title, meta description and canonical URL. On Dawn, ?variant= URLs and collection-scoped product URLs point their canonical to the clean /products/{handle} URL. That’s observed behavior in Shopify’s reference theme; a custom or heavily edited theme may differ, so check yours.
  • Product structured data (in many themes). The structured_data Liquid filter outputs schema.org Product (or ProductGroup when a product has variants) and Article. Dawn uses it by default.

None of these defaults guarantee rankings. They remove obstacles, which is the most a platform can do.

Is Shopify good for SEO? Honest strengths and real limitations

Strengths:

  • Hosting, HTTPS and the sitemap are managed, so the usual self-hosted failures (expired certificates, stale sitemaps, server misconfiguration) mostly don’t happen.
  • Reference themes ship sensible canonicals and product markup.
  • Titles, meta descriptions, handles and image alt text are editable in the admin without a developer.
  • robots.txt.liquid lets developers change crawl rules when there’s a real reason.
  • Shopify Markets generates hreflang automatically for international stores.

Limitations:

  • Fixed prefixes. You can’t build /womens/dresses/red-midi-dress paths. Hierarchy has to come from navigation, breadcrumbs and internal links. Google’s own ecommerce guidance says it relies on how pages link to each other more than on URL patterns, so this costs less than many people assume.
  • Duplicate paths. The within filter creates /collections/{collection}/products/{handle} URLs. Shopify itself warns that these show “the same content on separate URLs” and that you should consider the SEO implications.
  • Tag and filter URLs. Single tag pages are crawlable by default and can produce many thin pages.
  • Redirect rules. Redirects work only from URLs that no longer load, and URLs with collection tag filtering can’t be redirected at all.
  • App and script weight. Each app that injects JavaScript or CSS adds work to every page view. Shopify’s own performance documentation says “each feature that you add to your online store can impact your store’s web performance.”
  • Limited server control. You can’t set arbitrary HTTP headers or server-side rewrites in a Liquid theme. Headless builds with Hydrogen give you that control, at the cost of owning far more of the SEO plumbing.

Site architecture and collection strategy

Because folders are fixed, collections are your architecture. Google’s ecommerce documentation recommends linking “from menus to category pages, from category pages to sub-category pages,” and linking directly to every product you want indexed. It also notes that “the more links a page has to it within a site, the higher the relative importance of the page.”

On Shopify, that translates to:

  1. Plan collections around how people search and shop, not around internal merchandising labels. “Women’s running shoes” is a collection. “Fall drop 3” probably isn’t one that needs to rank.
  2. Build the hierarchy in navigation. Main menu links go to top-level collections, top-level collections link to subcollections (through a theme section or collection list), and subcollections list products.
  3. Add breadcrumbs that reflect the collection hierarchy, so both shoppers and crawlers can move up a level.
  4. Keep product cards linking to /products/{handle}. Dawn’s product cards link to the plain product URL and don’t use the within filter. If your theme uses product.url | within: collection, every product gets an extra URL per collection it’s in.
  5. Decide what tag pages are for. If a single-tag URL like /collections/rings/gold matches a real search (gold rings), it may be better as its own collection with unique copy. If it doesn’t, keep it out of navigation, and consider a noindex in the theme or a robots rule.
  6. Don’t create collections that only re-sort the same products. Twenty collections with near-identical product grids compete with each other.

Search & Discovery filters are useful for shoppers, but they produce parameter URLs like ?filter.p.product_type=shoes. Shopify’s default robots.txt blocks URLs with two or more filter parameters and any sort_by. A single filter parameter is not blocked, though on Dawn those URLs canonicalize to the unfiltered collection. If a filtered view deserves to rank, make it a real collection.

Keyword research for ecommerce: one intent per URL

Ecommerce keywords fall into three broad intent groups, and each maps to a different Shopify template:

Intent Example query Best Shopify page type
Category (browse and compare) “women’s trail running shoes” Collection
Product (specific item) “brand-name model 4 trail shoe” Product
Informational (learn or decide) “how to choose trail running shoes” Blog post or page

The fastest way to check intent is to search the query and look at what ranks. If the results are category grids from other retailers, Google expects a collection. If they’re individual product pages, a product page fits. If they’re articles and videos, a collection won’t rank no matter how well you optimize it.

Then build a keyword map: one row per URL, one primary query per row, plus the close variants that share the same intent. Two common Shopify problems surface quickly:

  • Cannibalization between collections. “Linen shirts” and “men’s linen shirts” might deserve separate pages, or might not. Let the search results decide. If the same pages rank for both, one collection is enough.
  • Products targeting category terms. A single product titled “Linen Shirt” will rarely outrank a collection for “linen shirts.” Name products for what makes them specific.

Prioritize keywords that are specific to your products. Shopify’s own advice is to put your most important keyword near the start of the title and use “natural, readable phrases, rather than lists of keywords.”

Collection page optimization

Collection pages are where most ecommerce category traffic lands, and they’re often the most neglected template.

  • Title and meta description. Edit them in the collection’s Search engine listing section. Shopify notes that collection titles over 70 characters or descriptions over 320 characters might get cut off in search results. Lead with the category term, add a qualifier that matters to shoppers (material, use case, fit), and add the brand at the end if there’s room.
  • H1. Most themes render the collection title as the H1. Keep the collection title short and keyword-led. Use the SEO title field for the longer search-facing version.
  • Intro copy. A short paragraph above the grid that helps shoppers choose (what’s in this range, who it suits, how sizing runs) does more than a long keyword block. Longer buying guidance can sit below the grid if your theme supports it, often through a metafield-driven section.
  • Product grid. Make sure products render as real <a href> links in the HTML. Google says links in scripted click handlers “may not be followed.”
  • Pagination. Google recommends that each page of paginated results have its own URL. Shopify’s ?page=2 pattern does this. Don’t canonicalize page 2 to page 1, which hides the deeper products.
  • Internal links in. Link to key collections from the main menu, the homepage, relevant blog posts and related collections.

Product page optimization

Titles, descriptions and handles

The product title is usually the H1 and the default title tag. Write it for the buyer who already knows roughly what they want: brand, product type, model and the attribute that distinguishes it. Use the Search engine listing fields when the search title needs to differ from the on-page name, and put the most important words first, since search engines truncate long titles and descriptions.

Write descriptions yourself. Copying the manufacturer’s text puts your page in competition with every other retailer using the same words. Cover what shoppers ask before buying: materials, dimensions, fit, care, compatibility, what’s in the box, and shipping or returns details.

Variants

Shopify serves every variant on one product URL, with ?variant={id} selecting the option. Google’s ecommerce guidance says variants should be identifiable by separate URLs and that the URL “with the query parameter omitted” should be the canonical. That matches what Dawn does. The practical rule:

  • Keep color and size options as variants of one product when they share a description and searchers don’t look for them separately.
  • Split a variant into its own product only when it has distinct search demand and genuinely distinct content. Expect to write unique copy for it, or you’ve created a duplicate.

Images and alt text

Add alt text from Products > [product] > click a media item > Add alt text. Shopify says to keep it “brief and descriptive” and recommends 125 characters or less (the maximum is 512). Describe what the image shows, such as “Navy linen shirt, front view, button-down collar,” rather than repeating the product title on every image. Alt text can also be uploaded by CSV for large catalogs. Compress images and make sure the theme requests them at sensible display sizes, since oversized images are a common cause of slow product pages.

Out-of-stock and discontinued products

These need different handling:

  • Temporarily out of stock: keep the page live, keep it indexable, show the status clearly, and offer a back-in-stock signup or alternatives. If your theme outputs structured data, the availability property should say OutOfStock (Google lists InStock, OutOfStock, Discontinued, BackOrder, PreOrder and others for merchant listings).
  • Permanently discontinued with a close replacement: redirect the old URL to the replacement product. Remember Shopify’s rule: “You can redirect only from broken URLs.” The old product must be deleted or unpublished from the online store first, or the redirect won’t fire.
  • Discontinued with no replacement: either keep the page as an informational record if it still earns links and traffic (pointing to related products), or let it return a 404. Google says a URL that returns 404 is removed from the index if it was previously indexed. Redirecting every dead product to the homepage or a loosely related collection risks being reported as a soft 404 in Search Console, because the destination doesn’t match what the old page was.

Shopify’s own example redirects a deleted product, /products/blue-t-shirt, to /collections/t-shirts. That can be reasonable when the collection is a direct substitute. Use judgment, not a blanket rule.

Technical foundations

Duplicate content and canonicals

Shopify stores create duplicate URLs in predictable ways: collection-scoped product paths, ?variant= parameters, tag pages, filter and sort parameters, and pagination. Most are handled by canonical tags and default robots rules in reference themes, but custom themes and apps can undo that. Internal links are the part you control: link to the canonical /products/{handle} URL everywhere. Our guide to Shopify duplicate content walks through each pattern, how to test it, and the Liquid fix.

Structured data

Most current themes output Product or ProductGroup markup through the structured_data filter, but the defaults don’t cover everything Google’s merchant listings documentation recommends, such as shipping details and return policies. Reviews apps often add their own markup too, which can produce conflicting Product entities on one page. The Shopify structured data guide covers what the filter outputs, what to add, and how to avoid duplicate markup.

robots.txt.liquid

You can override the default by adding templates/robots.txt.liquid to your theme. Shopify supports adding rules to default groups, removing default rules, and adding custom groups and sitemaps. It also says editing the file is an unsupported customization that Support can’t help with, and that “Incorrect use of the feature can result in loss of all traffic.” Its help page adds that you don’t need to touch the file “unless you have a specific reason to do so.”

If you do have a reason, such as blocking internal search result URLs, extend the default groups rather than replacing them. Shopify’s documented pattern loops over robots.default_groups, prints each group’s user agent, rules and sitemap, and appends a new rule only to the * group:

{% for group in robots.default_groups %}
  {{- group.user_agent }}
  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}
  {%- if group.user_agent.value == '*' -%}
    {{ 'Disallow: /*?q=*' }}
  {%- endif -%}
  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

Keep in mind three operational details from Shopify’s docs. First, uploading a theme through the admin doesn’t import robots.txt.liquid, though Shopify CLI and Theme Kit do. Second, deleting the template restores the current default. Third, if you only need to hide a single product, page or blog post, the seo.hidden metafield set to 1 removes it from sitemaps, search engines and online store search without touching robots rules.

Redirects

Manage redirects under Content > Menus > View URL Redirects, one at a time or by CSV import. The documented limits and rules:

  • A maximum of 100,000 URL redirects, or 20,000,000 on Shopify Plus.
  • You can redirect only from broken URLs. If the old URL still loads, the redirect doesn’t apply.
  • You can’t redirect the fixed paths /products, /collections or /collections/all.
  • URLs that use collection tag filtering can’t be redirected.
  • Redirects don’t automatically apply to every market subfolder, so international stores need to check each one.

Google treats a 301 as a “strong” signal that the target should be processed and a 302 as a “weak” one, so permanent moves should use permanent redirects. When you change a collection handle, the admin offers to create the redirect for you. Check that it was created, and add product redirects yourself when a product’s handle changes. For a platform move or a large restructure, plan the full redirect map before launch. That’s where Shopify migration and technical SEO support pays for itself.

Core Web Vitals and app weight

Google’s good thresholds, measured at the 75th percentile of page loads, are:

Metric Measures Good Poor
Largest Contentful Paint (LCP) Loading 2.5 s or less Over 4 s
Interaction to Next Paint (INP) Responsiveness 200 ms or less Over 500 ms
Cumulative Layout Shift (CLS) Visual stability 0.1 or less 0.25 or more

Shopify shows these same three metrics in a performance summary on the Themes page of the admin, “based on real user data from the past 30 days,” with fuller reports under Analytics > Reports. Use it alongside Search Console’s Core Web Vitals report.

On Shopify, the usual causes of poor scores are within reach:

  • Apps. Review every installed app for the scripts it adds to the storefront. Uninstalled apps can leave snippets in theme files, so check theme.liquid and the snippets/ folder after removing one.
  • Hero media. A large, lazy-loaded hero image or autoplay video often sets LCP. The LCP image should load eagerly at an appropriate size.
  • Layout shift from late-loading review widgets, announcement bars and font swaps. Reserve space for elements that load after the page.
  • Third-party tags like chat, heatmaps and multiple pixels firing on every page.

Speed matters for users and conversion even where it isn’t decisive for rankings. Fix what’s measurably slow; don’t chase a perfect lab score.

International SEO with Shopify Markets

Shopify offers three domain setups for international markets: subfolders (example.com/en-ca), subdomains (ca.example.com) and top-level domains (example.fr). Shopify’s Markets SEO documentation says subfolders are “recommended for most stores,” and its domain documentation notes that subfolders benefit from the primary domain’s authority.

What the platform does for you:

  • “Hreflang tags are generated automatically based on your market and language configuration,” including an x-default tag pointing to the backup region’s market.
  • Each market version gets a self-referencing canonical.
  • Market sitemaps include hreflang annotations.

Automatic hreflang can be switched off under Online Store > Preferences, but Shopify warns that “Turning off automatic hreflang tags can negatively affect your store’s SEO.” Leave it on unless an app or a headless front end is taking over that job.

What it doesn’t do for you is translate and localize well. Machine-translated product copy, untranslated handles, and collections that don’t reflect local search terms are where international Shopify stores underperform. Also check redirects per subfolder, since they don’t carry over automatically. Shopify’s Geolocation app was shut down on March 24, 2025, so if you relied on it, review how visitors are routed now. Avoid forced redirects that stop crawlers from reaching each market version.

Content and blog strategy

Shopify’s built-in blog (/blogs/{blog-handle}/...) is adequate for most stores. Articles get Article structured data through the structured_data filter in themes like Dawn, and they appear in the sitemap automatically.

Good ecommerce content does three things:

  1. Answers questions buyers ask before purchase. Sizing, materials, comparisons, care and how-to-choose guides. These match the informational intent rows in your keyword map.
  2. Links to the collections and products it discusses. Google’s guidance suggests highlighting important products from content like blog posts. Every guide should send readers, and link equity, to a relevant collection.
  3. Adds something only you can say. Your testing, your materials sourcing, your fit data, your customer questions. Google’s AI optimization guidance tells site owners to focus on “valuable, non-commodity content.” Generic articles that restate what’s already ranking rarely earn traffic or links.

Use /pages/ for evergreen reference content that belongs in navigation (size guides, care instructions, shipping and returns). Use the blog for content that’s naturally dated or part of a series. Don’t spread one topic across a page and a blog post.

Links from relevant, reputable sites still help pages get discovered and ranked. Google’s spam policies define link spam as “creating links to or from a site primarily for the purpose of manipulating search rankings,” and list buying or selling links, excessive link exchanges, automated link building, and widely distributed footer links as examples.

Ethical link building for a Shopify brand usually looks like:

  • Digital PR with genuinely newsworthy material: original product testing, data you own, a notable launch, or founder expertise that journalists can quote.
  • Supplier, stockist and manufacturer pages that list where products are sold.
  • Product reviews and gift guides where the editorial decision is the publisher’s. Sending product for review is normal, but making a link the condition of free product or payment is the kind of exchange Google’s spam policies list.
  • Reclaiming lost links by redirecting retired URLs that still have inbound links to their closest live equivalent.

Point earned links at the pages that need them most, typically your core collections. Internal links then pass that value down to products.

Google’s documentation on AI features is direct: “There are no additional requirements to appear in AI Overviews or AI Mode, nor other special optimizations necessary,” and there’s “no special schema.org structured data that you need to add.” A page has to be indexed and eligible to show with a snippet. The controls are the familiar ones: nosnippet, data-nosnippet, max-snippet and noindex. Read Google’s AI features documentation for the full wording.

Google’s AI optimization guide goes further. You don’t need to create AI text files, special markup or Markdown copies, chunk content for AI, or rewrite pages for AI to appear in Google Search. For a Shopify store, the work that helps in classic results (clear collection and product pages, accurate product data, useful content, crawlable links) is the same work that helps in AI features.

Two Shopify-specific points matter here. First, Shopify’s robots.txt documentation notes that blocking AI crawlers through robots.txt or at the network layer affects only open-web discoverability, not the product data Shopify Catalog sends to activated agentic storefronts. Second, the default robots.txt on Shopify’s own Dawn demo store now carries header comments aimed at AI agents. Read your live /robots.txt before assuming you know what it says.

Measuring Shopify SEO results

Google Search Console

Verify your primary domain in Search Console and submit https://yourdomain.com/sitemap.xml. Then watch:

  • Performance: clicks, impressions and queries by page. Group by collection and product URLs to see which templates earn traffic. Google says AI Overviews and AI Mode traffic is reported here too, within the Web search type.
  • Page indexing: look for duplicates without a user-selected canonical, soft 404s from redirects or empty collections, and “Crawled, currently not indexed” on thin tag or filter pages.
  • Core Web Vitals: field data by URL group, mobile and desktop.

GA4 and Shopify revenue

In GA4, the Organic Search default channel group covers visits that arrive “via non-ad links in organic-search results.” According to Google’s channel definitions, that includes Google’s AI Overviews and AI Mode. Traffic from tools like ChatGPT, Gemini and Copilot falls into a separate AI Assistant channel. Report organic sessions, conversion rate and purchase revenue by landing page, so you can see which collections and products actually earn money from search.

Expect gaps between GA4, Shopify’s own analytics and your order data, because of consent settings, ad blockers and attribution windows. Pick one source for the revenue number you report and use the others for direction.

Set realistic timelines. Technical fixes can show up in crawl and indexing reports within weeks. Content and links take longer to move rankings, and no one can promise a specific result or date.

When to get help

Plenty of Shopify SEO is merchant work: titles, descriptions, alt text, collection copy, redirects for retired products. Other parts need a developer or a specialist. That includes theme-level canonical and internal link fixes, robots.txt.liquid edits, structured data conflicts, app performance audits, international setups and platform migrations.

A few ways to start:

Sources

Technical statements in this guide were checked against these primary sources on the dates shown. See our editorial policy.

  1. Shopify Liquid: variant object (accessed November 30, 2026)
  2. Shopify Help: Enabling secure connections to your Shopify store (accessed November 30, 2026)
  3. Shopify Help: Finding and submitting your sitemap (accessed November 30, 2026)
  4. Shopify Help: Editing robots.txt.liquid (accessed November 30, 2026)
  5. Shopify Dev: Customize robots.txt (accessed November 30, 2026)
  6. Shopify Dev: Theme SEO metadata (accessed November 30, 2026)
  7. Shopify Dev: Theme Store requirements (accessed November 30, 2026)
  8. Shopify Liquid: within filter (accessed November 30, 2026)
  9. Shopify Liquid: structured_data filter (accessed November 30, 2026)
  10. Shopify Help: URL redirects (accessed November 30, 2026)
  11. Shopify Help: Adding and updating products (accessed November 30, 2026)
  12. Shopify Help: Collection settings (accessed November 30, 2026)
  13. Shopify Help: Adding keywords to your online store (accessed November 30, 2026)
  14. Shopify Help: Adding alt text to product media (accessed November 30, 2026)
  15. Shopify Help: Hiding a page from search engines (accessed November 30, 2026)
  16. Shopify Help: Search & Discovery filters (accessed November 30, 2026)
  17. Shopify Help: Markets and SEO (accessed November 30, 2026)
  18. Shopify Help: Managing international domains (accessed November 30, 2026)
  19. Shopify Help: Web performance dashboard (accessed November 30, 2026)
  20. Google Search Central: Ecommerce URL structure best practices (accessed November 30, 2026)
  21. Google Search Central: Help Google understand your ecommerce site structure (accessed November 30, 2026)
  22. Google Search Central: HTTP status codes and network errors (accessed November 30, 2026)
  23. Google Search Central: Merchant listing structured data (accessed November 30, 2026)
  24. Google Search Central: Spam policies (accessed November 30, 2026)
  25. Google Search Central: AI features and your website (accessed November 30, 2026)
  26. Google Search Central: AI optimization guide (accessed November 30, 2026)
  27. web.dev: Web Vitals (accessed November 30, 2026)
  28. Google Analytics Help: Default channel group (accessed November 30, 2026)

Want specialists to handle this for you?

We fix Shopify SEO issues in your theme and settings, then report what changed and what it earned.