A canonical tag is a line of code in a page’s header that tells search engines which version of a page is the original when the same content can be reached at more than one web address. Google then credits that one address with the rankings instead of splitting them across the copies.
It is a request, not an order. Google usually respects it, but it will ignore a canonical that points somewhere unrelated.
A <link rel="canonical" href="…"> element in the <head>, or a Link: <…>; rel="canonical" HTTP header, that declares the preferred URL among a set of duplicate or near-duplicate pages. Google treats it as a consolidation hint: signals fold into the declared URL and usually only that one is indexed.
Google overrides a canonical that is self-contradictory, returns non-200, is noindexed or points at materially different content. Self-referencing canonicals on every indexable page are the safe default. Use one absolute URL per page, matching the 301 target and the sitemap entry.
<link rel="canonical" href="https://example.com/products/fig-cedar"> 