The same page can often be reached at several addresses: with and without www, with tracking parameters, with a trailing slash or without, through a filter or a print view. To a search engine, those are different URLs with the same content. A canonical tag tells it which one you want indexed and shown in results.
What a canonical tag looks like
It is a link element in the page's head:
<link rel="canonical" href="https://example.com/running-shoes/">Every version of the page (such as /running-shoes/?utm_source=newsletter or /running-shoes/?sort=price) carries the same canonical, pointing at the clean address.
Why canonical tags matter
Without a canonical, Google picks a version itself. It usually picks well, but not always, and duplicates cause real problems:
- Split signals: links and engagement spread across several versions instead of strengthening one.
- Wrong page in results: a parameter URL or an old address appears instead of the one you want.
- Wasted crawling: Google spends time on copies instead of new pages.