Same page has collection and direct product paths
- First check
- Inspect the rendered
canonical_urlon both paths - Likely action
- Keep the canonical output aligned with the preferred product URL and internal links
Check Shopify’s automatic canonical output, keep theme metadata intact, and diagnose product paths that vary by collection or tracking.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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.<link rel="canonical" href="{{ canonical_url }}">Search for rel="canonical" on each representative URL. Confirm there is one tag and it points to the expected absolute URL.
Check a product reached directly and through a collection, then a URL with tracking parameters. Note whether they render the same product and which URL the tag selects.
For Shopify Markets, inspect each localized URL. Shopify says each market version has a self-referencing canonical URL and 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.
canonical_url on both pathsShopify.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.
rel="canonical", internal links, redirects, and sitemap entries. Google warns against sending different canonical URLs through different methods.Related tasks: Shopify XML sitemap, Shopify hreflang, and Shopify redirects.
In Search Console URL Inspection, compare the user-declared canonical and Google-selected canonical for the reported URL.
If they differ, audit theme output, app output, sitemap URLs, and internal links. Correct the inconsistent signal rather than adding another tag.
Verify the live HTML after the theme publishes, then allow Google to recrawl and re-evaluate the duplicate cluster.
3 questions people ask next, answered from the sources on this page.
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.
Shopify’s theme documentation shows canonical metadata in the <head> of layout/theme.liquid using {{ canonical_url }}. Inspect the current theme before adding code.
Shopify Markets can assign distinct URLs to localized versions. Inspect the market’s language, URL, canonical, and hreflang relationship before changing the tag.
Run the free audit, then approve the fixes. Every change can be undone.