A canonical tag is your duplicate URL referee

A canonical tag is a small line of code, a link element with rel="canonical", that sits in the head section of a page. Its only job is to name the preferred URL when the same content can be reached at more than one address.

When Google crawls your store and finds two pages with the same product description, the canonical tag tells it which copy to index and which copy should collect the ranking signals, such as links and user engagement. Without that guidance, Google has to guess, and it may index the wrong version or split the ranking strength between the two.

One honest caveat: Google treats a canonical as a strong hint, not a strict order. According to Google's documentation, it can choose a different URL as canonical if its own signals disagree. In practice, though, a clean and sensible canonical is respected most of the time, which makes it one of the cheapest technical wins a store can get.

Shopify creates duplicate product URLs by design

The main URL for a product looks like this: /products/blue-shirt. But the moment that product sits in a collection, Shopify also serves it through a longer path, such as /collections/sale/products/blue-shirt. If the same shirt appears in three collections, that is four live URLs for one product.

Filters and sorting add even more variants. A sorted collection, a tag-filtered view, a search results page, and paginated collection pages can all generate extra addresses for content Google already knows. This is not a bug. Shopify builds pages from your product data, so the same product legitimately appears in several places across the store.

Shopify's standard answer to this is the canonical tag: the collection-path version points back to the plain /products/ URL, telling Google to treat that one as the master copy. When the theme outputs these tags correctly, the duplicates are harmless. The trouble starts when the defaults go wrong.

Most Shopify themes print the canonical for you

Most Shopify themes, including Dawn and the other Online Store 2.0 themes, include the canonical_url liquid tag in the theme.liquid file. That single tag makes Shopify output a correct canonical on every product, collection, page, and blog post automatically.

So for a typical store, there is nothing to set up. But "typical" does a lot of work in that sentence, and the default breaks in several common situations: apps that rewrite the head section, page builder apps that generate their own pages, headless storefronts with a custom front end, stores running multiple international domains or markets, and duplicated themes mid-redesign where code gets copied and edited by hand.

The nastiest failure is a canonical chain, where page A's canonical points to page B, but page B's canonical points to page C. Google often ignores chained hints entirely. For international stores, each market or language version should point its canonical at itself and use hreflang tags to connect the translated versions, rather than canonicalizing across languages.

Audit your canonicals and fix the common mistakes

Checking is simple. Open a product page, view the page source, and search for rel="canonical". The URL in that tag should be the clean /products/ address, not a collection path. For a second opinion, paste the URL into Google Search Console's URL Inspection tool, which shows the user-declared canonical and the Google-selected canonical side by side.

For a store-wide check, crawl the site with a tool like Screaming Frog, whose free version covers up to 500 URLs. Look for these common mistakes:

  • Canonicals pointing at a URL that redirects somewhere else
  • Canonicals pointing at a page that returns a 404 error
  • Canonicals pointing at the collection-path variant instead of the clean product URL
  • Chains of canonicals, where A points to B and B points to C
  • Conflicting signals, where the canonical names one URL but the sitemap and internal links name another
  • More than one canonical tag on the same page

The fix is straightforward: point every canonical at the cleanest final URL, update your internal links to use the canonical version, keep the sitemap in agreement, and delete any duplicate tags. When the signals agree, Google follows them.

Keep your product URLs clean from the start

Prevention beats repair. Choose a good product handle once and keep it, because every handle change breaks the old URL. If you must change one, set up a proper redirect from the old address to the new one.

Link internally to the canonical version of each product, not to whichever collection path you happened to copy from the address bar. And do not panic about filtered or sorted URLs: the canonical tag already handles them, and blocking them in robots.txt is rarely needed and can backfire if done wrong.

Finally, re-check canonicals after any big change: a new theme, a new app, or a new market can quietly rewrite the head section. A five-minute source check a few times a year is enough to catch most problems before they cost you rankings.