Seitenreport Seitenreport
Canonical in Shopify

Fix Canonical and og in Shopify

Describe search index and shared post consistently. In Shopify, check for Liquid object canonical_url and additional theme output.

Liquid object canonical_url and additional theme output

Compare canonical_url with the value of the og:url snippet. A permanently registered shop or campaign link can displace the actual page destination there.

In the theme head, look for canonical_url and more canonical tags from snippets or apps. Compare the direct product path to a product address in the collection context.

How to fix the issue in Shopify

  1. In layout/theme.liquid, inspect the canonical_url Liquid object and any additional SEO snippets in the HTML head. Compare direct product paths with product paths within collections. Do not replace the platform’s output with a hard-coded shop homepage.
  2. Align og:url and the canonical with the intended public identity of this content. Remove stale domain or staging overrides from social metadata and SEO settings.

Start with one affected page or template. Check its output before applying the correction to other pages.

Example of this specific finding

Illustrative control case: The preferred article URL is /advisor/, og:url still points to an old preview address. Divided contributions can thus be allocated inconsistently.

follow-up audit in Shopify

Control a change in a duplicated test subject. The expected destination must fit the product; a fixed shop home URL is not a general replacement for canonical_url.

Match the intended public address for search index and social metadata. Document a reasonable difference instead of blindly equating two fields.

How to verify that the fix worked

Both values identify the intended page. Also check the preview on the relevant social platform; cached previews may not update immediately.

Check the canonical target: Compare the preferred URL with its HTTP status and indexability before changing a canonical rule.

Derogations and scope

og:url is not a substitute for rel=canonical. A conflict by itself does not prove an indexation error.

Related: Shopify Online Store with Liquid-Theme. Hydrogen or other headless storefronts have their own rendering and hosting responsibilities.

Classify the general error

Definition, system-independent causes and further correction examples: Describe search index and shared post consistently

Configuration and test signal documentation

Shopify: Canonical Edition in Theme Head

Google: Canonical Goals and Conflicting Signals

Canonical errors in Shopify