ServicesFree AuditWorkInspirationBlogAbouthello@optimaflow.id
← All articles

Shopify SEO · 2026-07-22

Canonical Tags on Shopify: A Plain-English Guide

How canonical tags work on Shopify, what the platform sets automatically, and the 3 cases where you should actually edit them.

Canonical Tags on Shopify: A Plain-English Guide

TL;DR

A canonical tag tells search engines which URL is the "master" version of a page when duplicate versions exist. Shopify adds them automatically to products, collections, blogs, and pages, so most merchants never touch them. You only step in when duplicate URLs, like a product reachable through two paths, send the wrong signal.

Here is the core problem Shopify creates. The same product can live at two URLs: the clean one (yourstore.com/products/blue-mug) and a collection-nested one (yourstore.com/collections/kitchen/products/blue-mug). Without a canonical, Google sees two pages with identical content and has to guess which one to rank. Split signals mean weaker rankings for both.

Shopify's fix is built in. By default, every collection-nested product URL carries a canonical tag pointing back to the clean /products/ version. So the two URLs above are already consolidated. This is why the practical answer for 90% of stores is: leave it alone. The default is correct.

To confirm what Shopify is actually outputting, view the page source (right-click, View Page Source) and search for rel="canonical". You'll see a line like <link rel="canonical" href="...">. Check that it points to the URL you want ranked, usually the shortest, cleanest version. Free tools like Screaming Frog (up to 500 URLs free) or Ahrefs Webmaster Tools can crawl your whole store and flag mismatches in one pass.

There are three cases worth your attention. First, duplicate or near-identical products (a red and blue variant sold as separate products with copy-pasted descriptions), where you may want one canonical to the other. Second, paginated collection pages, where each page should self-canonicalize, not point to page one. Third, if you run a headless build or a heavily customized theme, verify the canonical logic survived, because custom code is where defaults break.

Editing a canonical on Shopify means touching the theme's Liquid. In your theme.liquid or product template, the tag is rendered by {{ canonical_url }} inside the <head>. To override it, you replace that with a conditional that outputs your chosen URL. Test on a duplicate theme first, publish only after checking the source on live pages, because a wrong canonical can quietly deindex a page you wanted ranked.

A common mistake is confusing canonicals with redirects. A 301 redirect physically moves visitors and search engines to a new URL; a canonical leaves both URLs live and reachable but tells Google which one to credit. If a product is truly retired, use a URL redirect (Shopify has this built in under Navigation). If two versions must both exist, use a canonical.

One more caution: don't canonicalize everything to your homepage or to a single "best" page in a misguided attempt to concentrate authority. Google treats a canonical that points to a clearly different page as a hint it can ignore, and you lose the indexing of unique pages. Point each page at its own true master, and let Shopify's defaults do the heavy lifting.

Frequently asked

Does Shopify add canonical tags automatically?

Yes. Shopify auto-generates canonical tags for products, collections, blogs, and pages, and points collection-nested product URLs back to the clean /products/ version. Most stores need no changes.

How do I check my canonical tag on Shopify?

View the page source and search for rel="canonical", or crawl the store with a tool like Screaming Frog (free up to 500 URLs). Confirm it points to the URL you want ranked.

Should I edit canonical tags myself?

Only in specific cases: near-duplicate products, pagination issues, or custom/headless themes. Otherwise the defaults are correct, and a wrong canonical can accidentally deindex a page.

What's the difference between a canonical and a 301 redirect?

A 301 redirect moves users and search engines to a new URL and retires the old one. A canonical keeps both URLs live but tells Google which version to credit for ranking.

Free, concrete, yours to keep

Want this done for you — properly?

Get a free audit of your rankings and AI-answer presence. Real findings within days, no sales deck.

Get a free audit