How to fix missing canonical on Shopify
Add a self-referencing canonical tag to every page so Google knows which URL is the "official" version of that content.
Steps for Shopify
- Shopify automatically outputs a canonical tag for product, collection, blog, and article pages via the default theme — verify by viewing page source and searching for `rel="canonical"`.
- If your theme is missing it, go to Online Store → Themes → Actions → Edit Code → open `theme.liquid` (or the relevant layout file).
- Inside the `<head>` block, add: `<link rel="canonical" href="{{ canonical_url }}">` — Shopify's `canonical_url` Liquid variable outputs the correct preferred URL automatically.
- For custom landing pages built with page templates, add the same Liquid tag to those template files.
- Install a dedicated SEO app (e.g. 'SEO Manager' or 'Plug in SEO') if you want a UI-driven audit and bulk canonical management without editing code.
<link rel="canonical" href="https://www.example.com/products/blue-running-shoes/" />What is missing canonical?
A canonical tag is a single line of HTML code placed in the `<head>` section of a page that tells search engines: "This URL is the definitive version of this content." It looks like `<link rel="canonical" href="https://www.example.com/your-page/" />`. When a page is missing this tag entirely, search engines have no authoritative signal and must guess which version of the URL to index — and they may guess wrong.
Ecommerce stores are especially vulnerable to duplicate content because the same product or category page can be reached through dozens of slightly different URLs — sorting parameters, filtering options, session IDs, UTM tracking codes, HTTP vs HTTPS, www vs non-www, and more. Without a canonical tag, Google may split your ranking power ("link equity") across all those variations instead of concentrating it on one URL, causing every version to rank lower than it should. Google has also stated that canonical signals help it crawl your site more efficiently, which matters when you have thousands of products. Missing canonicals can directly reduce organic traffic and revenue from pages that should be ranking well.
See the complete Missing canonical guide for every platform and the full background.
Not sure if your Shopify store has this?
Run a free SEOLZ audit — we’ll find missing canonical and every other issue across your whole site.
Scan my site free