Shopify SEO: What to Set Up
Shopify handles a lot of technical SEO for you: it builds the sitemap, writes a sensible robots.txt and gives every page a canonical tag through the theme. What is left is mostly yours: the titles and descriptions, which product URLs your theme links to, redirects when URLs change, product data in the theme, speed and Search Console. This guide walks through each one in the order we would check them.
The Shopify details quoted here come from Shopify's own documentation: the Help Center pages on adding keywords for SEO, finding and submitting your sitemap, editing robots.txt.liquid, URL redirects and improving your online store performance, and the shopify.dev theme docs on SEO metadata, the within filter, customizing robots.txt and the structured_data filter, plus Google's page on consolidating duplicate URLs, all checked on 13 November 2026. The rest is our view. For store SEO that applies on any platform (linking every product, variants, filters, out-of-stock pages, manufacturer descriptions), see our e-commerce SEO guide; this page does not repeat it.
The short answer
Write a real title and description for your home page, collections and best-selling products. Check that your theme links to products by their /products/ URL and that the canonical tag points there. Leave robots.txt alone unless you have a clear reason. Submit the sitemap in Search Console. Add a redirect whenever you change a URL handle. Check the product markup your theme outputs, and review your apps for speed.
Titles and meta descriptions
Shopify's theme docs say "The title for most pages can be set in the Shopify admin", and the theme reads it into the page's <title> element; the description works the same way. For a page, the Help Center steps are: in the Shopify admin go to Online Store > Pages, open the page, and in the Search engine listing preview section click Edit website SEO, then fill in the Page title and Description fields. Shopify notes: "You can enter up to 70 characters in the title" and "It's recommended that 160 characters is used in the description." The home page title and description are set under Online Store > Preferences, in the Social sharing image and SEO section.
Our view: start with the pages that sell. A collection title like "Linen Shirts for Men" says more than the default, and a description that names what is in the collection, price range or delivery promise is more likely to be clicked. Fill in image alt text while you are there (click the image, then Edit alt text). We cover writing them in title tags and meta descriptions.
Product URLs inside collections
A Shopify product has its own URL under /products/, but many themes link to it from a collection with a longer URL such as /collections/sale-potions/products/draught-of-immortality (Shopify's own example). That URL comes from the Liquid within filter, and the shopify.dev page for it carries a caution: "Because a standard product page and a product page in the context of a collection have the same content on separate URLs, you should consider the SEO implications of using the within filter."
The fix for duplicates is a canonical URL. Shopify's metadata docs show the theme setting one with <link rel="canonical" href="{{ canonical_url }}" />, where canonical_url is "The canonical URL for the current page." Google says canonical URLs help "consolidate signals for similar or duplicate pages".
Our view: open a product from a collection page, view the page source and look at the canonical link. It should point to the plain /products/ URL. Better still, have the theme link to the /products/ URL directly, so search engines meet one address for each product. Our canonical tags guide explains how Google picks a canonical when signals disagree.
robots.txt and robots.txt.liquid
Shopify writes the robots.txt file for you. Its Help Center says: "All Shopify stores have a default robots.txt file that's optimal for Search Engine Optimization (SEO)" and "The default robots.txt file works for most stores." To change it, a theme can add a robots.txt.liquid template; the shopify.dev docs say "Adding the robots.txt.liquid template replaces Shopify's generated robots.txt output" and advise: "Before you publish changes, save a copy of your current /robots.txt output and compare it with the rendered template output."
Take the warnings seriously. The Help Center calls it "an unsupported customization. Shopify Support can't help with edits to the robots.txt.liquid file", and adds: "Incorrect use of the feature can result in loss of all traffic." Our view: most stores never need it. If you do, add your rule to Shopify's default groups (the docs show how) rather than replacing the file. robots.txt rules in general are in our robots.txt and XML sitemaps guide.
The sitemap
There is nothing to build. Shopify says: "All Shopify stores automatically generate a sitemap.xml file that contains links to all your products, primary product image, pages, collections, and blog posts." It sits at the root of your domain, such as example.com/sitemap.xml, and "The generated sitemap files link to separate sitemaps for your products, collections, blogs, and webpages." If you own extra domains that are not used for international targeting, Shopify's advice is to "make sure all domains redirect to your primary domain."
URL redirects
When a product, collection or page URL changes, or a product is removed for good, add a redirect from the old URL so links and rankings carry over. Shopify's redirect tool has limits worth knowing (for example, "You can redirect only from broken URLs"); we set them out, with CSV import for long lists, in moving from WooCommerce to Shopify, and they apply to any change, not only a migration. When something already 404s, our 404 and redirects guide helps you find it.
Structured data in the theme
Product markup on Shopify comes from your theme, not from a setting. Shopify gives theme developers a structured_data filter that "Converts an object into a schema.org structured data format"; product objects "are output as a schema.org Product if they have no variants, and a ProductGroup if they have one or more variants." Older or custom themes may write their own markup instead, and some apps add more.
Our view: test one product page in Google's Rich Results Test and make sure there is one set of product markup, not two (theme plus app is a common double-up). What Google requires for product snippets and merchant listings is in our product structured data guide.
Speed and apps
Shopify's own advice puts apps first: "Evaluate your installed apps and third-party code to ensure that they're creating enough value to offset any potential performance losses." It also warns: "Uninstalling an app doesn't automatically remove its code from your theme." On images: "Pages with numerous high-quality images can load slowly. Optimize your images or reduce the number displayed." And for tracking: "Audit your tag manager to remove any unused or low-value tags."
Our view: list your apps, remove the ones nobody uses, and check the theme code for leftovers from apps you have already removed. We do not recommend particular SEO or speed apps here; most of what they promise is covered by the steps on this page. Background on the metrics is in Core Web Vitals explained and image optimization.
Search Console setup
Shopify's sitemap page walks through verification with a URL-prefix property and the HTML tag method: copy Google's meta tag, paste it into your theme's theme.liquid file "directly below the opening <head> tag", save, and click Verify. Then open Sitemaps under Indexing, enter sitemap.xml and submit. With more than one domain, repeat it for each. A Domain property, verified through DNS, covers every subdomain and protocol at once; our Google Search Console basics explain both property types and what to check each month.
A short checklist (our view)
- Custom titles and descriptions on the home page, collections and top products.
- Product links and canonical tags point to /products/ URLs.
- Default robots.txt, unless a developer has a clear reason to change it.
- Sitemap submitted; extra domains redirect to the primary domain.
- A redirect for every changed or removed URL.
- One set of product markup that passes the Rich Results Test.
- Unused apps removed, including their leftover code.
If you would rather have someone set this up or check it for you, see our services.
Frequently asked questions
Is Shopify good for SEO?
It covers the technical basics: Shopify generates a sitemap and a default robots.txt it describes as optimal for SEO, and themes set canonical URLs. Titles, descriptions, content, redirects and app choices are still up to you.
Can I edit robots.txt on Shopify?
Yes, by adding a robots.txt.liquid template to your theme. Shopify says the default file works for most stores, that Support cannot help with edits, and that incorrect use can result in loss of all traffic.
Where is my Shopify sitemap?
At the root of your domain, such as example.com/sitemap.xml. Shopify generates it automatically with links to your products, pages, collections and blog posts.