Skip to content

Canonical tag

A canonical tag tells Google which address is the main version of a page when the same or very similar content can be reached at more than one address.

Duplicates are common: http and https versions, addresses with and without www, tracking codes on the end, or the same product in two categories. Without a clear main version, Google picks one itself and may split your ranking signals across them.

  • Every page should have a canonical tag pointing to itself. This is called a self-referencing canonical.
  • Duplicate or near-duplicate pages should point to the main version.
  • Use the full address, for example https://www.example.com.au/roof-painting/.
  • Link to the main version everywhere on your own site.
  • If an old page should never be seen again, use a 301 redirect instead. It’s a stronger signal.
  • Don’t use noindex or robots.txt to choose a main version.
Platform Where
WordPress (Yoast SEO) Yoast adds self-referencing canonicals. To point a page elsewhere, open the Yoast SEO box, go to Advanced and fill in Canonical URL.
WordPress (Rank Math) Rank Math adds self-referencing canonicals. To point elsewhere, open Rank Math, go to Advanced and fill in Canonical URL.
Shopify, Squarespace Added for you automatically.
Wix Added for you. To change one, open the page’s SEO basics and go to the Advanced SEO tab.
Custom-built site Ask your developer to add <link rel="canonical" href="..."> to each page’s <head>.

In Search Console, inspect the page with the URL Inspection tool. It shows the User-declared canonical (yours) and the Google-selected canonical. They should match.

How to specify a canonical with rel=“canonical” and other methods (Google Search Central)