When you need one
- The same page is reachable at several URLs (with and without tracking parameters, trailing slashes or uppercase letters).
- Content is syndicated or republished on another site.
- Near-identical pages exist for sorting or filtering.
Every indexable page should also carry a self-referencing canonical pointing to its own preferred URL.
How it looks
A line in the page's head: link rel="canonical" href="https://example.com/services/ac-repair". The URL should be absolute, return a 200 status and not redirect.
A costly mistake
If every page on a site carries the homepage as its canonical, which happens with some single-page app setups, Google treats every page as a duplicate of the homepage and indexes almost nothing else. Checking canonicals is a standard part of technical SEO.
In practice
To check your canonicals, open three different pages on your site, view the source and search for "canonical". Each should point to its own URL. If every page points to the homepage, or the tag is missing from the raw HTML, fix it before any other SEO work, because it limits how many pages can be indexed.

