All posts
Blog

Shopify SEO: A Practical Guide to Ranking Your Store in Google

By Dakshesh12 min read

  • shopify seo
  • shopify seo guide
  • ecommerce seo
  • canonical tag
Continue with GoogleFree plan · No credit card required

AI Overview

Shopify SEO starts with what Shopify automates: sitemaps, canonical tags and robots.txt. Then add unique titles and descriptions, original product and collection content, alt text, a fast theme with few apps, clean schema and redirects for deleted products.

Key takeaways

  • Shopify automatically creates a sitemap, canonical tags, a default robots.txt and hreflang tags for markets, so start from what it already handles.
  • Collection product URLs canonicalize to /products/ URLs, but your theme should also link internally to the clean /products/ version.
  • Write a unique title of about 60 characters and a meta description of about 160 characters for every important product and collection.
  • Apps often add scripts to every page and can leave code behind after uninstalling, so audit apps and scripts to keep the store fast.
  • Deleted products return 404 without a redirect, and theme or app changes can silently remove canonicals, titles, noindex rules or tracking.

Summarize with AI

Opens the assistant in a new tab with a link to this post.

On this page

Shopify handles a lot of technical SEO for you. Every store gets an automatic sitemap, canonical tags, a sensible robots.txt and editable titles and descriptions out of the box. That's a real advantage over building a store from scratch. But it also means Shopify SEO has its own quirks: URLs you can't fully control, duplicate product paths created by collections, themes and apps that slow pages down, and app or theme changes that quietly undo your work.

This guide covers what Shopify does for you, what it leaves to you, and the practical steps that move a store up in Google.

What Shopify does for SEO automatically#

Before you change anything, know what's already handled:

Built-in featureWhat Shopify does
XML sitemapGenerates /sitemap.xml automatically, linking to separate sitemaps for products, collections, blogs and pages, and updates it when you add content
Canonical tagsAdds auto-generated canonical tags "to prevent duplicate content from appearing in search results"
robots.txtServes a default file that Shopify says works for most stores, blocking cart, checkout, filtered and sorted collection URLs
Titles and meta descriptionsLets you edit the search engine listing for every product, collection, page and blog post
HTTPSProvides SSL for every store and domain
RedirectsOffers a "Create a URL redirect" option when you change a handle
International SEOAdds hreflang tags automatically when you set up market domains, subfolders or languages

That's a strong foundation. Most Shopify SEO problems come from what's built on top of it: themes, apps, content and changes over time.

Shopify's URL structure (and why you can't change it)#

Shopify uses fixed URL prefixes:

  • Products: /products/product-handle
  • Collections: /collections/collection-handle
  • Pages: /pages/page-handle
  • Blog posts: /blogs/blog-name/post-handle

You can edit the handle (the last part), but not the /products/ or /collections/ prefix. That frustrates some SEOs, but it doesn't stop stores from ranking. Google cares far more about the page's content and links than about a folder name.

What you should control is the handle itself. Keep it short, readable and descriptive, such as /products/merino-wool-hiking-socks instead of /products/sock-v2-final-copy. Set good handles when you create products, because changing them later changes the URL.

The duplicate product URL problem#

This is the most talked about Shopify SEO issue. A product inside a collection can be reachable at two URLs:

  • /products/merino-wool-hiking-socks (the clean product URL)
  • /collections/socks/products/merino-wool-hiking-socks (the collection-aware URL)

Both show the same page. Shopify handles the basic risk correctly: the collection-aware version carries a canonical tag pointing to the clean /products/ URL, so Google is told which one to index. Our guides to canonical tags and duplicate content explain how that works.

The remaining problem is internal links. Some themes link from collection grids to the collection-aware URL, which means your own site keeps pointing Google at the non-canonical version. Google treats internal links as a canonical signal, so mixed signals can lead to the wrong URL being shown in search.

The fix is in the theme. In your product card or product grid snippet, look for a link that uses the within: collection Liquid filter (for example product.url | within: collection) and change it to plain product.url. Many newer themes already link to the clean URL. Test on a duplicate theme first, and don't add noindex to the collection-aware URLs: it conflicts with the canonical and isn't needed.

Write titles and meta descriptions for every important page#

Every product, collection, page and blog post has a Search engine listing section at the bottom of its editor. If you leave it empty, Shopify falls back to the product title and the start of the description, which is rarely what you want.

Shopify's own guidance:

  • Page title: you can enter up to 70 characters, but keep it to about 60 so it isn't shortened in search results.
  • Meta description: around 160 characters, in natural, readable language rather than a list of keywords.
  • Unique for every page. Duplicate titles across similar products make it hard for Google to tell them apart.

A good product title format is Product name + key attribute | Brand, for example Merino Wool Hiking Socks, Cushioned | TrailKnit. For collections, target the category search: Women's Hiking Socks | TrailKnit. Our guides to title tags and meta descriptions cover length and wording in detail.

Try it on your site · free

Check your own page's meta tags

Title, description, canonical and robots - including an accidental noindex - in a few seconds.

Open the full tool

Optimize product pages#

Product pages are where Shopify stores make money from search. The common mistake is publishing the manufacturer's description word for word, which appears on every other store selling the same item.

  • Write your own description. Explain who it's for, what it's made of, sizing, care and what makes it different.
  • Answer buyer questions on the page. Shipping, returns, materials and fit questions are searched and they convert.
  • Use one product per variant set. Sizes and colors should be variants of one product, not separate near-identical products.
  • Show real reviews. Reviews add fresh, unique content and can feed review stars in rich results when marked up correctly.
  • Handle out-of-stock products carefully. If an item is coming back, keep the page live and say so. If it's gone for good, redirect it (see below).

Optimize collection pages#

Collection pages often rank for broader, higher-volume searches than individual products, such as "women's running shoes". Most stores leave them as a bare grid.

  • Add a short intro above the grid that describes the collection in plain language, and more detail below it if your theme supports it.
  • Write a custom title and meta description targeting the category search.
  • Avoid creating dozens of near-identical collections that differ by one filter. Shopify's default robots.txt already blocks filtered (/collections/*+*) and sorted (sort_by) URLs from crawling because they duplicate the main collection.

Images: alt text and file size#

Shopify lets you set alt text on product images, collection featured images and blog post featured images. Shopify's guidance is to use readable phrases that describe what the image shows, not what you want someone to think about it. "Gray merino hiking sock, side view" is good alt text. "Best socks buy socks cheap" is not. Our alt text guide has more examples.

File size matters as much as alt text. Shopify's CDN serves resized images and modern formats where the theme requests them, but uploading enormous originals and using themes that load full-size images everywhere still slows pages down. Upload sensibly sized images, and check that your theme uses responsive image sizes.

Theme speed and app bloat#

Speed is where many Shopify stores lose ground. The two usual causes:

  1. Heavy themes. Sliders, video backgrounds, animations and large hero images all add weight. A lighter theme often beats any amount of tweaking.
  2. Apps that inject scripts. Each app (reviews, popups, chat, upsells, wishlists) can add its own JavaScript to every page. Ten apps can mean ten extra scripts on your product pages.

What to do:

ProblemFix
Apps you no longer useUninstall them, then check the theme for leftover code they added
Several apps doing similar jobsConsolidate into one
Large hero images and slidersUse one optimized static image
Many third-party scriptsRemove what doesn't earn its place
Slow product pagesMeasure with PageSpeed Insights and fix the largest element first

A key point about uninstalling apps: some leave code snippets in your theme files after removal. If a page still loads a script from an app you deleted, remove the leftover code. The free Script Detector lists every script a page loads, and the free Page Size Checker shows what's making a page heavy. Our Core Web Vitals guide explains the metrics Google measures.

Structured data#

Most modern Shopify themes output Product structured data (name, price, availability and images) automatically, and many review apps add rating data. That data can make products eligible for rich results in Google.

Problems to watch for:

  • Duplicate Product schema when both the theme and an app output it, sometimes with different prices.
  • Missing or wrong fields after a theme change.
  • Review markup for reviews that aren't visible on the page, which goes against Google's guidelines.

Check a product page with the free Structured Data Checker, and see our guide on how to check structured data.

Redirects when you delete or rename things#

Shopify makes renaming safe: when you change a handle on a product, collection, page or blog post, the Create a URL redirect option is selected by default and sends the old URL to the new one.

Deleting is different. When you delete a product, Shopify doesn't redirect it for you, so the URL returns a 404. If that product had backlinks or rankings, go to Content > Menus > View URL Redirects and redirect it to the closest replacement or its collection. Don't send everything to the homepage. Our 404 error guide explains when a 404 is fine and when it costs you.

International SEO with Shopify Markets#

If you sell in several countries or languages, Shopify Markets lets you use subfolders (yourstore.com/fr/), subdomains or separate domains. When you assign a domain, subfolder or subdomain to a market with a language, Shopify adds the hreflang tags automatically and includes published languages in your sitemap.

What you still need to do: translate content properly instead of relying on raw machine translation for important pages, write localized titles and descriptions, and avoid automatic redirects that stop Google from crawling each version. Check your setup with the free Hreflang Checker.

Customizing robots.txt (carefully)#

Since 2021, Shopify lets you edit robots.txt through a robots.txt.liquid theme template. Shopify's own advice is that the default file works for most stores, and editing it incorrectly can cost you traffic. A single wrong line can block your products or collections from Google.

Edit it only for a specific reason, such as blocking a search or filter pattern an app created, and test any change with the free robots.txt Tester. Our robots.txt guide explains the rules.

How theme and app changes break Shopify SEO#

The biggest ongoing risk to a Shopify store's rankings isn't a missing keyword. It's change. Shopify stores change all the time: theme updates, a new theme going live, apps installed and removed, developers editing Liquid templates.

Each can quietly break SEO:

  • A theme switch drops your custom title format or H1.
  • An edited theme.liquid removes the canonical tag or adds a noindex.
  • A robots.txt.liquid edit blocks collections from crawling.
  • Removing an app also removes the Meta Pixel or Google Analytics code it managed.
  • Deleting products leaves broken internal links across collections and blog posts.

None of these show an error in the Shopify admin. Our guide to Shopify website monitoring covers how to watch a store for these problems.

MyKavo compares the pages you monitor against an approved baseline on every scan. You get a critical alert if a page switches to noindex, robots.txt starts blocking every crawler, or a product page goes from loading to a 404 or 5xx error. You get a high alert if a canonical tag changes or disappears, a title tag is removed, your sitemap stops responding, or a known script such as Google Analytics, Google Tag Manager or Meta Pixel disappears. Broken internal links are grouped into one alert instead of dozens. Each alert shows the old and new values side by side.

To see what any store is running, the free Shopify Theme Detector shows a store's theme, the original theme it was built from, its version and the apps the page loads.

Frequently asked questions

Is Shopify good for SEO?

Yes. Shopify generates a sitemap, canonical tags and a robots.txt automatically, supports custom titles and meta descriptions, and handles hreflang for international stores. Rankings still depend on content, speed and links.

Can I change the /products/ and /collections/ URLs in Shopify?

No. Shopify's URL prefixes are fixed, but you can edit the handle at the end of each URL. The fixed prefixes don't stop stores from ranking well.

Does Shopify create duplicate content?

Products in collections can be reachable at two URLs, but Shopify adds a canonical tag pointing to the clean /products/ URL. Make sure your theme links to that clean URL internally.

What happens to SEO when I delete a Shopify product?

The URL returns a 404 and Shopify doesn't redirect it automatically. If the product had traffic or backlinks, add a URL redirect to the closest replacement or its collection.

Do Shopify apps slow down my store?

They can. Many apps add JavaScript to every page, and some leave code behind after you uninstall them. Remove unused apps and check your pages for leftover scripts.

Can I edit robots.txt on Shopify?

Yes, through the robots.txt.liquid theme template. Shopify recommends the default file for most stores, so only edit it for a specific reason and test the result.

The bottom line#

Shopify gives you a solid technical SEO foundation, so focus on what it can't do for you: clear handles, unique titles and descriptions, original product and collection content, descriptive alt text, a fast theme with few apps, clean structured data, redirects for deleted products and careful international setup. Then protect that work from the theme and app changes that undo it without a warning.

See what any store is running with the free Shopify Theme Detector, then start free with MyKavo to get alerted when a theme or app change breaks your titles, canonicals, robots rules or tracking.

Share this post

Get alerted when your site breaks. Free, no card.

Start free