In short
- Shopify themes write the canonical tag for you with the canonical_url Liquid object, so you do not need to add one
- On 45 live Shopify stores, every product, variant link, tracking link, sorted collection and page named the right URL, and no store named its myshopify.com address
- Collection paths to a product either served the product with a canonical to /products/ or redirected there
- Override the default only for a real duplicate, such as a product sold on two of your stores, using a URL metafield and a small edit to theme.liquid
- Crawl the store after any theme or app change, because the faults we found came from themes and apps, not from Shopify
A Shopify canonical tag tells Google which address is the real one for a page that can be reached at several. Shopify themes write it for you: one line in theme.liquid prints the canonical_url Liquid object on every page, and that object already strips variant, tracking and sort parameters and maps collection paths back to the product. On the 45 live stores we checked, the default named the right URL on every page type we requested.
So most stores never need to touch it. This post shows what the tag named on those stores, URL type by URL type, the few faults we found, when an override is worth making and how to make one with a metafield. For which Shopify duplicates the canonical does not cover, such as tag and vendor pages, see Shopify duplicate content. For the rest of a store audit, see the Shopify SEO audit.
Where Shopify's canonical tag comes from
Open Online Store, Themes, then Edit code on your live theme, and search layout/theme.liquid for canonical. In Shopify's own themes, Dawn included, the line is:
<link rel="canonical" href="{{ canonical_url }}">
canonical_url is a Liquid object Shopify fills on every request. Shopify's guidance is that its own themes set a canonical on all pages and good third-party themes should too. Some themes print it from a snippet such as snippets/meta-tags.liquid rather than theme.liquid, so if the layout file has no match, search the whole theme for canonical_url. If nothing prints it, add the line above inside <head>.
An SEO app or a snippet pasted into the theme can add a second canonical. That is the first thing to check when a store has two.
What 45 live stores served
We started from 54 well-known Shopify brand stores and read the canonical tag on each URL type below on 25 November 2026, at one request every two seconds per store. 45 stores answered the product requests, and those 45 are the counts here. The other nine refused our crawler with a 403, would not serve the sitemap we picked products from, or redirected every product to a country subfolder.
What the canonical tag named on 45 Shopify stores
One URL of each type per store, read on 25 November 2026.
| URL type | Example request | Canonical named | Stores |
|---|---|---|---|
| Product | /products/linen-tee | Itself | 45 of 45 |
| Tracking link | /products/linen-tee?utm_source=newsletter | The clean product URL | 45 of 45 |
| Variant link | /products/linen-tee?variant=4012 | The clean product URL | 45 of 45 |
| Product under /collections/all/ | /collections/all/products/linen-tee | /products/linen-tee, or a redirect there | 22 + 23 redirected |
| Collection | /collections/tees | Itself | 45 of 45 |
| Sorted collection | /collections/tees?sort_by=price-ascending | The unsorted collection | 45 of 45 |
| Page 2 | /collections/tees?page=2 | Itself, with ?page=2 | 42 + 3 to page 1 |
| All products | /collections/all | Itself | 45 of 45 |
| Page | /pages/about | Itself | 45 of 45 |
Every row is what Shopify's default produces. Two rows need a closer look, the collection path and page 2, and they are the next two sections.
Collection paths: served with a canonical, or redirected
A product can be reached under any collection: /collections/summer/products/linen-tee as well as /products/linen-tee. Themes used to link products that way, through the within: collection filter, which is where most Shopify duplicate-content warnings came from.
None of the 45 served a collection-path product that named itself, so this is handled whichever way a store goes. What is left to check is your own theme's links: if product cards still link through the collection path, every collection link points at a URL you do not want indexed. The duplicate content post shows the one filter to remove.
Page 2 and the three stores that point it at page 1
Shopify's canonical_url keeps the page number, so /collections/tees?page=2 names itself. That is what Google wants for a paginated series: each page lists different products, and a canonical to page 1 would tell Google to ignore the products found on page 2 onwards.
42 of the 45 stores did that. The other three pointed page 2 at page 1. We fetched both pages on those three and they listed the same products, because the themes load the rest of the collection with a "Load more" button or infinite scroll and ignore ?page=. So their canonical matches what the URL serves. The question it raises is a different one: can a crawler reach the products past the first screen? If they are only linked from content a script loads, make sure they are linked from somewhere else, such as the sitemap and other collections.
When to override the default
Shopify's default is right for variants, collection paths, tracking links, sorted collections and pagination, so leave those alone. An override is for a page that is a real duplicate of a page Shopify cannot know about.
Leave the default, or override it?
An override is for a duplicate Shopify cannot see. Everything it can see, it already handles.
Leave the default
SHOPIFY ALREADY NAMES THE RIGHT URL
- Variant links?variant= names the clean product.
- Collection pathsNamed or redirected to /products/.
- Tracking and sort parametersDropped from the canonical.
- Page 2 and beyondEach page lists different products, so each names itself.
- Products that only look alikeTwo colours sold as two products are two products. Write each its own description.
Override it
A REAL DUPLICATE SHOPIFY CANNOT KNOW ABOUT
- The same product on a second storeA trade or regional store of yours: point it at the main store's product.
- A product listed twiceWhen one listing has to stay live, for a bundle or an app, point it at the main one.
- Content published elsewhere firstAn article or page that copies one on another site you own.
- A campaign copy of a pageAn old landing page kept live with the same content as its replacement.
How to set a custom canonical URL with a metafield
Shopify has no canonical field in the product editor. The method Shopify's own SEO team documents uses a metafield: you add a URL field to the page type, fill it on the pages you want to change, and edit one line of the theme to print it.
Replace the canonical line in theme.liquid (on a duplicate of the theme first) with this:
{%- liquid
assign custom_canonical = nil
case template.name
when 'product'
assign custom_canonical = product.metafields.custom.canonical_url.value
when 'collection'
assign custom_canonical = collection.metafields.custom.canonical_url.value
when 'page'
assign custom_canonical = page.metafields.custom.canonical_url.value
when 'article'
assign custom_canonical = article.metafields.custom.canonical_url.value
endcase
-%}
<link rel="canonical" href="{{ custom_canonical | default: canonical_url }}">
It checks the template rather than whether a product or collection object exists, because on a product reached through a collection path both exist. Shopify's version of the snippet gets the same result by checking product first. Use a full https:// URL in the field, and before you save it, check that the URL answers 200, is not noindexed and does not redirect. Then publish the theme and view the source of one changed product and one unchanged one.
The faults we found
The 45 stores were clean on the basics. No missing tags, no relative URLs, no canonicals naming the myshopify.com address and no HTTP header canonicals. These were the only faults:
The faults on 45 stores
No missing tags, relative URLs, myshopify.com canonicals or header canonicals. Only these.
1 STORE, EVERY PAGE TYPE
Two identical canonical tags
<link rel="canonical" href="/products/x"> <link rel="canonical" href="/products/x">
Harmless while they match, but the day a theme or app edit changes only one, they disagree.
3 STORES, PAGE 2
Page 2 names page 1
/collections/tees?page=2 canonical: /collections/tees
Matches what the URL serves, because these themes ignore ?page=. The catch: products past the first screen are linked only by script.
1 OF 12 STORES WITH HREFLANG
A market URL that redirects
hreflang en-US: /en-us/products/x 302 to /products/x
The alternate cannot confirm the pair, so Google can ignore that hreflang line.
Canonical tags and Shopify Markets
Twelve of the 45 product pages carried hreflang tags. Five of those stores sell into other markets from subfolders such as /fr/, /sv-se/ or /en-ca/, and on all five the market's product URL named itself as canonical and listed itself in its hreflang set. That is the right pattern: a translated or localised page is its own page, and the hreflang tags join the set. Three stores used separate country domains for their markets instead.
The one fault here was hreflang, not the canonical: a store listed an /en-us/ alternate that answered with a 302 back to the default product, which usually means a market is set up in the hreflang but redirects visitors. The Shopify hreflang post covers Markets in full.
How to check every canonical on a Shopify store
For one URL, view the source and search for canonical, or paste it into the free canonical checker, which also follows the target to see whether it can be indexed. For the whole store, crawl it, because a theme or app fault lands on one page type, and you will not guess which.
In Crawl Cove, an indexable page with no canonical is a medium canonical finding. A canonical that names a page which redirects is a canonical to redirect finding, which is what a custom canonical typed with an old URL becomes. One that names a noindexed or erroring page is a canonical to noindex finding. An http:// canonical on an https page is an insecure canonical finding, and two canonical tags on one page are a low multiple-canonical finding. Pages that canonicalise elsewhere are left out of the duplicate title, description and near-duplicate checks, so variant and collection-path copies do not fill those lists. Crawl Cove recognises a Shopify store from what its pages already contain and slows down when the store answers 429, so a full crawl finishes rather than stopping at the rate limit. The canonical tag template bugs post covers the faults a theme can bake into every page at once.
Frequently asked questions
- Does Shopify add canonical tags automatically?
- Yes. Shopify's own themes print a canonical tag on every page with the canonical_url Liquid object, and most third-party themes do the same. On the 45 stores we checked, every page type we requested had one.
- How do I add a canonical tag in Shopify?
- Usually you do not need to. Open Online Store, Themes, Edit code, and search layout/theme.liquid for canonical. If you find a link tag that uses canonical_url, the store already has one. If a theme lacks it, add that one line inside the head.
- How do I change the canonical URL of one Shopify product?
- Create a product metafield of type URL in Settings, Metafields and metaobjects, enter the URL you want on that product, then change the canonical line in theme.liquid so it prints the metafield when it is filled and canonical_url when it is not.
- Should Shopify variant URLs have their own canonical?
- No. A ?variant= link shows the same product with one option selected, so its canonical should name the clean /products/ URL, which is what all 45 stores we checked did.
- Should page 2 of a Shopify collection canonicalise to page 1?
- No, if page 2 lists different products. Shopify's default names page 2 itself, which lets Google find the products on it. The three stores we saw pointing page 2 at page 1 served the same products on both, because their themes load the rest with a button.
- Can a Shopify canonical tag point at another domain?
- Yes. Google accepts a canonical on another domain, which is how you would point a product on a second store at the same product on your main store. Name a URL that answers 200 and is not noindexed.