Canonical URL
A canonical URL tells search engines which page is the preferred one when the same content is reachable at several addresses.

What is a canonical URL?
A canonical URL is the address you designate as the preferred version of a page when the same or near-identical content can be reached through several URLs. It is declared with a <link rel="canonical" href="..."> tag in the page’s <head> and tells Google which URL to index and where to consolidate ranking signals. Keep in mind that the canonical tag is a hint — not an absolute directive — so Google can pick a different URL if other signals point more clearly elsewhere.
Why does a canonical URL matter?
In an online store the same content ends up on many addresses on its own: a product can be reached via both /products/item and /collections/category/products/item, and filters, sorting, and tracking parameters (e.g. ?sort=price) create even more variants. Without a clear canonical, you risk Google spreading ranking strength across several near-identical pages instead of consolidating it in one place. A correct canonical tag consolidates that value — much like a 301 redirect — but without blocking access to the other URLs.
Common use cases
- Products in multiple collections. Shopify sets a canonical on product pages by default, so paths like
/collections/x/products/ypoint back to the clean/products/y. - Filtering and sorting. Faceted navigation and parameters create duplicates that should canonicalize to the clean category URL.
- Pagination. Page 2, 3, and so on of a collection — decide whether each page should self-reference or point to the first page.
- Campaign and UTM links. URLs with tracking parameters should point back to the canonical address.
Shopify perspective
Shopify automatically fills {{ canonical_url }} in the theme’s theme.liquid, and that handles most standard cases correctly. Problems typically arise when apps or customizations inject incorrect tags — for example a canonical pointing to a noindex or redirecting page, which sends conflicting signals. Always check the rendered canonical tag on real URLs (product, collection, filtered view) in the page source and in Search Console, rather than assuming the theme gets it right.