Fix the canonical link on the homepage on Shopify
Why it matters
The canonical address on the homepage is not valid, for example relative, malformed or pointing at a page that does not work. Search engines then ignore it and guess which version to index.
The fix
- Look for a hand-written canonical tag in theme.liquid or in a section (Online Store, Themes, Edit code). Replace it with a tag that uses Shopify's canonical_url Liquid object, and remove duplicates added by apps.
Related
- Reported by the SEO basics check
- Add a title to the homepage
- Add a meta description to the homepage
- Add a canonical link to the homepage
- Point the canonical link at your own domain
- Add Open Graph tags for link previews
- Complete the Open Graph tags
- Add a viewport meta tag
- Make the viewport follow the device width
- Replace the default WordPress tagline in the title
- Fill in the empty part of the homepage title
- Change the canonical link to https
- Check that the canonical link names the right host
Scan your domain to see whether this applies to you.