Why is Google indexing the wrong version of my page?
A canonical tag is a hint that tells Google which URL is the main version when several URLs show the same or near-same content. It's a hint, not an order — Google ignores it when the pages aren't actually duplicates, or when other signals (sitemap, internal links, redirects) point somewhere else.
Why it matters
Left alone, Google treats every URL as its own page — so three URLs showing the same product become three weak pages competing with each other instead of one strong one. Links pointing at the different versions split, rankings wobble, and Google may pick a different 'main' version than the one you'd choose.
The canonical tag is how you cast your vote. It costs one line of HTML, and on any site with filters, tracking parameters, or a print view, it's the difference between one page that ranks and a crowd that doesn't.
One pair of shoes, three URLs
A shoe shop sells one red running shoe, but it lives at three addresses: /shoes/red, /shoes/red?color=red (from the colour filter), and /shoes/red?utm_source=newsletter (from an email campaign). Same shoe, same photos, same price — Google sees three pages and splits the ranking signals between them.
The fix: all three carry a canonical pointing at the clean version, /shoes/red. The filter and campaign URLs still work fine for people — they just tell Google 'count everything here toward the main page.' One page, full strength.
<!-- on /shoes/red, /shoes/red?color=red and the campaign URL -->
<link rel="canonical" href="https://example.com/shoes/red" />
Where does it go, and what does it look like?
One tag in the
of each duplicate page, pointing at the version you want indexed. The canonical page should also point at itself — a self-referencing canonical sounds pointless, but it removes any doubt about which URL you mean.When does Google ignore it?
Most often: the 'duplicate' pages have meaningfully different content, the canonical points to a redirected or noindexed URL, or your sitemap and internal links keep promoting the other version. Signals that disagree get resolved in favour of the stronger ones — usually internal links and the sitemap. So make them all tell the same story.
How to check it
- Every duplicate points to one self-consistent canonical URL (200 status, indexable)
- Sitemap lists only canonical URLs — never the duplicates
- Internal links point to the canonical version, not the parameters or prints
- Check Search Console → Pages → 'Alternate page with proper canonical tag' for surprises
Canonicalising everything to the homepage 'to consolidate authority'. That tells Google your product pages are copies of the homepage — and it will believe you.