Canonical tag checker · updated 10 November 2026
How to add a canonical tag in Shopify
Shopify themes normally print the canonical tag for you, using the canonical_url value in the theme's head. If it is missing, the theme code was probably edited.
Steps
- In your Shopify admin, open Online Store, then Themes, then Edit code.
- Open layout/theme.liquid and look inside the head for a canonical link.
- If it is missing, add the line below inside the head.
- Save, then check a product page and a collection page.
theme.liquid
<link rel="canonical" href="{{ canonical_url }}">How to check it worked
View the source of a product page and check the canonical points at the main product URL, not a collection-prefixed one.
Good to know
Back up the theme before editing code. Products reachable under several collection URLs are the usual reason canonicals matter on Shopify.
Check your site now
Free, no signup. Every finding comes with the fix. The tag in your Shopify site is checked along with the rest of the page.
Related guides
- Canonical tag checker
- canonical tag in WordPress
- canonical tag in Next.js
- canonical tag in Webflow
- meta description in Shopify
- Open Graph tags in Shopify
Written by Marlo's maker. Platform menus change, so if a step does not match what you see, check the platform's own help. 4 platforms covered.