# Shopify canonical tags

> Check Shopify’s automatic canonical output, keep theme metadata intact, and diagnose product paths that vary by collection or tracking.

Canonical: https://scaplet.com/seo/shopify/canonical-tags

Guide Shopify Shopify · Canonical URLs

Check Shopify’s automatic canonical output, keep theme metadata intact, and diagnose product paths that vary by collection or tracking.

3 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

Shopify adds canonical tags automatically, and Shopify themes can render the global Liquid `canonical_url` object in the document head. Inspect the live tag before editing theme code. Keep one canonical signal for each page, use the preferred product or market URL consistently in links and sitemaps, and check Google’s selected canonical in Search Console when a duplicate URL is reported.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fcanonical-tags%20(%22Shopify%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fcanonical-tags%20(%22Shopify%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fcanonical-tags%20(%22Shopify%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Fcanonical-tags%20(%22Shopify%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [Inspect Shopify’s default before changing code 01](#inspect-shopify-s-default-before-changing-code)
2. [Fix only a demonstrated mismatch 02](#fix-only-a-demonstrated-mismatch)
3. [Keep Google’s canonical signals aligned 03](#keep-google-s-canonical-signals-aligned)

_01_How it works

## Inspect Shopify’s default before changing code

Shopify’s SEO overview says canonical tags are generated automatically. In a Shopify theme, the `canonical_url` Liquid object can be used in the head, commonly in `layout/theme.liquid`. Before adding an app or custom tag, view source on a product, collection, and collection-context product URL and see what the live theme already emits.

Theme canonical output

```
<link rel="canonical" href="{{ canonical_url }}">
```

**Do not add a second canonical blindly**A duplicate or conflicting canonical can make the preferred URL unclear. First find whether the theme, app, or custom code is producing the current tag.

1. 01

### Check the public page source

Search for `rel="canonical"` on each representative URL. Confirm there is one tag and it points to the expected absolute URL.
2. 02

### Compare URL forms

Check a product reached directly and through a collection, then a URL with [tracking parameters](/glossary/utm-parameters). Note whether they render the same product and which URL the tag selects.
3. 03

### Check market versions separately

For Shopify Markets, inspect each localized URL. Shopify says each market version has a self-referencing [canonical URL](/glossary/canonical-url) and [hreflang](/glossary/hreflang) tags that connect all versions together, so a translated or regional page keeps its own canonical. Do not collapse market pages without checking the market and language setup.

_02_Choose the fix that fits the actual URL

## Fix only a demonstrated mismatch

Problem

### Same page has collection and direct product paths

First check

Inspect the rendered `canonical_url` on both paths

Likely action

Keep the canonical output aligned with the preferred product URL and [internal links](/glossary/internal-links)

Problem

### Old URL should no longer serve the page

First check

Check whether the old path has a replacement

Likely action

Use a [permanent redirect](/glossary/301-redirect) when the old URL should send visitors elsewhere

Problem

### Localized page points to a different language

First check

Compare market URL, canonical, and hreflang alternates

Likely action

Keep each localized canonical in its language and connect versions with hreflang

Problem

### Tracking URL appears as a separate canonical

First check

Inspect source with and without parameters

Likely action

Ensure tracking parameters do not create competing canonical output

Shopify.dev says to specify a canonical URL with the global Liquid `canonical_url` object in the theme’s head. Its example is `<link rel="canonical" href="{{ canonical_url }}" />` in `theme.liquid`; the page spells the folder `layouts/`, while themes use `layout/`, so check your own theme’s file. Make a theme backup and review the exact output before publishing a code change.

_03_How it works

## Keep Google’s canonical signals aligned

- Use the same preferred URL in `rel="canonical"`, internal links, redirects, and sitemap entries. Google warns against sending different canonical URLs through different methods.
- A canonical is a signal, not a command. Google can select another URL if your pages, redirects, or site links suggest a different choice.
- Do not use robots.txt for canonicalization. Google says it may still index URLs that are disallowed in robots.txt without their content.
- Do not use noindex to choose a canonical within one site. Google says noindex "will completely block the page from Search."
- For a true product migration, redirect old paths rather than leaving the old URL as a duplicate forever.

Related tasks: [Shopify XML sitemap](/seo/shopify/xml-sitemap), [Shopify hreflang](/seo/shopify/hreflang), and [Shopify redirects](/seo/shopify/redirects).

1. 01

### Inspect the selected canonical

In Search Console URL Inspection, compare the user-declared canonical and Google-selected canonical for the reported URL.
2. 02

### Change one source of conflict

If they differ, audit theme output, app output, sitemap URLs, and internal links. Correct the inconsistent signal rather than adding another tag.
3. 03

### Recheck after recrawl

Verify the live HTML after the theme publishes, then allow Google to recrawl and re-evaluate the duplicate cluster.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- shopify.com
- shopify.dev
- google.com

1. 01 [SEO overview | Shopify Help Center](https://help.shopify.com/en/manual/promoting-marketing/seo/seo-overview) help.shopify.com · checked 2026-10-24
2. 02 [Add SEO metadata to your theme | Shopify.dev](https://shopify.dev/docs/storefronts/themes/seo/metadata) shopify.dev · checked 2026-10-24
3. 03 [How to specify a canonical with rel=canonical and other methods | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-10-24
4. 04 [International SEO for markets | Shopify Help Center](https://help.shopify.com/en/manual/markets/seo) help.shopify.com · checked 2026-10-24

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does Shopify create canonical tags automatically?

Yes. Shopify’s SEO overview says canonical tags are automatically added, and themes can emit the global Liquid `canonical_url` object in the page head.

_02_ Where do I add a canonical tag in a Shopify theme?

Shopify’s theme documentation shows canonical metadata in the `<head>` of `layout/theme.liquid` using `{{ canonical_url }}`. Inspect the current theme before adding code.

_03_ Why does Shopify use a different canonical for a market page?

Shopify Markets can assign distinct URLs to localized versions. Inspect the market’s language, URL, canonical, and hreflang relationship before changing the tag.

## Keep learning

[All platform guides](/seo)

[Learn Shopify hreflang Ecommerce](/seo/shopify/hreflang) [Related Canonical URL Crawling and indexing](/glossary/canonical-url) [Read next Shopify SEO Ecommerce](/seo/shopify) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[UTM parameters](/glossary/utm-parameters) [Canonical URL](/glossary/canonical-url) [Hreflang](/glossary/hreflang) [Internal links](/glossary/internal-links) [301 redirect](/glossary/301-redirect)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
