Shopify SEO is mostly the same as SEO for any online store, with a few platform-specific quirks. Shopify gives you a lot out of the box: an automatic XML sitemap, a sensible default robots.txt, editable titles and meta descriptions, and canonical tags in most themes. What it doesn't do is make decisions about your structure, content, theme code or apps for you.
This guide focuses on those Shopify-specific details: URL structure, duplicate product paths, theme settings and keeping apps under control. If you're new to search optimization in general, start with our explainer on what SEO is, then come back to the Shopify specifics.
Understand Shopify's URL structure
Shopify uses fixed path prefixes for each content type:
| Content | URL pattern |
|---|---|
| Products | /products/product-handle |
| Collections | /collections/collection-handle |
| Pages | /pages/page-handle |
| Blog posts | /blogs/blog-name/post-handle |
You can't remove or rename these prefixes, so don't spend time trying. Focus on what you can control: the handle at the end of each URL.
Shopify SEO tips for handles:
- Keep handles short and descriptive:
/products/oak-dining-table, not/products/oak-dining-table-copy-2. - Watch for duplicated handles created when products are copied or imported.
- Avoid changing handles on pages that already rank. If you must, add a redirect from the old URL.
Fix Shopify duplicate URLs for products
The best-known Shopify duplicate URL issue: products can be reachable at both /products/handle and /collections/collection-handle/products/handle.
This comes from theme code. Shopify's Liquid within filter generates the collection-aware version of a product URL, and Shopify's own developer docs warn you should consider the SEO implications because both URLs show the same content (Shopify.dev: within filter).
How to check and fix it:
- Open a collection page and hover over (or inspect) a product link. Note whether it points to
/products/…or/collections/…/products/…. - Open a collection-path product URL and view the source. Check that the canonical tag points to the plain
/products/handleURL. - Use Search Console's URL Inspection on a product to confirm which URL Google has selected as canonical.
- If your theme links to collection paths, consider asking a developer to change product links in collection templates to the plain
/products/URL, so your internal links, canonical and sitemap all agree.
Canonical tags help, but Google treats them as a hint rather than a rule. The cleanest setup is one where internal links, canonical tags and the sitemap all point to the same URL.
Other Shopify duplicate URL sources
- Collection filters and sorting. Filtered and sorted collection URLs add parameters. Shopify's default robots.txt already disallows crawling of many of these (Shopify: robots.txt).
- Tag-filtered collections (
/collections/handle/tag). Check whether these are indexed in Search Console and whether you actually want them to be. - Variant parameters (
?variant=123). These normally canonicalize to the main product URL; confirm your theme does this. - Multiple domains. If you have extra domains connected, make sure they redirect to your primary domain.
Optimize Shopify collections SEO
Collections are Shopify's category pages, and they often target a store's most valuable searches. For each important collection:
- Edit the title tag and meta description under the collection's search engine listing settings. Shopify recommends keeping titles to about 60 characters and meta descriptions to about 160 (Shopify: adding keywords).
- Add a helpful collection description. Check where your theme displays it; some themes show it above the products, others below, and some hide it on mobile.
- Avoid creating near-identical collections for every tag or minor variation.
- Make sure pagination uses crawlable links rather than only infinite scroll.
Treat collections the way you would treat category pages on any store: unique, helpful copy, controlled filters and pagination that search engines can follow.
Check your theme's SEO settings
Your theme controls much of Shopify's on-page SEO output. Shopify's theme documentation shows the title tag, meta description and canonical tag being output from the theme layout file (Shopify.dev: SEO metadata). Check:
- One H1 per page, usually the product or collection title. Some themes also wrap the logo in an H1.
- Canonical tag present in the page source on products, collections and pages.
- Structured data. Many themes output product markup. Test a product URL in Google's Rich Results Test and check for errors or duplicate markup added by apps.
- Image alt text. Add it to product images in the admin; Shopify documents how in its SEO help pages.
- Speed. Heavy sections, sliders, large images and font files all add weight. Test key templates with PageSpeed Insights and check Core Web Vitals in Search Console.
When you change themes, recheck all of the above. A new theme is effectively a template migration.
Use the sitemap and robots.txt correctly
Sitemap. Shopify automatically generates sitemap.xml at your domain root, with child sitemaps for products, collections, blogs and pages, and keeps it updated (Shopify: sitemap). Submit it in Search Console. If your store is password-protected, Google can't access it.
robots.txt. Shopify's default file is designed for SEO and blocks areas like cart, checkout and account pages, plus many filtered and sorted collection URLs. You can customize it by adding a robots.txt.liquid template, but Shopify warns that its support team can't help with edits and that incorrect use can result in loss of all traffic. Only edit it if you have a clear reason and know exactly what each rule does.
Manage redirects
Shopify includes a URL redirect manager, with bulk import via CSV (Shopify: URL redirects). Two limitations to know:
- Redirects only work for URLs that return a 404. A URL that still loads a page won't redirect.
- Some system paths can't be redirected.
When you change a product or collection handle in the admin, check that a redirect from the old URL has been created. When you delete a product, decide whether to redirect it to a close replacement or let it return a 404.
Keep apps disciplined
Apps are useful, and they're also a common source of Shopify SEO and speed problems. Before installing one, and periodically after:
- Ask whether it's needed. Remove apps you no longer use.
- Check what it injects. Review scripts and styles each app adds, and test page speed with and without it.
- Avoid overlapping apps. Two SEO or review apps can output duplicate structured data or conflicting meta tags.
- Check leftovers after uninstalling. Some apps leave code in theme files.
- Be wary of "automatic SEO" promises. No app can guarantee rankings.
Shopify SEO checklist
- [ ] Primary domain set; other domains redirect to it
- [ ] Store not password-protected; sitemap submitted in Search Console
- [ ] Product links in collections point to
/products/URLs, or canonicals are confirmed correct - [ ] Titles and meta descriptions written for key products and collections
- [ ] Collection descriptions helpful and visible on mobile
- [ ] Single H1, canonical and valid structured data in the theme
- [ ] Redirects in place for changed handles and removed products
- [ ] App list reviewed and unused apps removed
Frequently asked questions
Is Shopify good for SEO?
Shopify handles many basics well, including sitemaps, robots.txt and canonical tags. Results still depend on your content, structure, theme and how well you manage duplicates.
Can we change /products/ and /collections/ in Shopify URLs?
No. These prefixes are fixed. You control the handle that follows them.
Should we edit robots.txt.liquid?
Only with a specific reason. Shopify's default file already blocks many duplicate URLs, and Shopify warns that mistakes can remove your store from search results.
Do we need an SEO app for Shopify?
Not necessarily. Many tasks can be done in the admin. An app can help with bulk edits or markup, but check what it outputs and whether it overlaps with your theme.
Next steps
Shopify takes care of a lot, which makes it easy to assume everything is fine. A short review of your theme, internal links and apps often reveals the issues worth fixing first. Our Shopify SEO service covers these platform-specific checks and fixes, and our e-commerce SEO services look at the wider picture: keyword targeting, collection structure and product content. For deeper theme-level and crawl issues, see technical SEO.
Contact us with your store URL and we'll let you know what we'd check first.


