What is a canonical tag?
A canonical tag is a small but crucial piece of HTML code that you place in the section of a web page. Its purpose is to tell search engines which URL they should treat as the original version when several pages have identical or near-identical content. In other words, it acts as a reference point that helps search engines understand the hierarchy between your pages.
You often come across duplicate content in situations where the same product is shown via several parameters, e.g. filter settings in a webshop or printer-friendly versions of pages. Here, a canonical tag can help search engines like Google consolidate your SEO signals in one place instead of spreading them across several URLs. That strengthens your organic visibility, because you make sure the traffic and link equity point towards the page you actually want to rank with.
Canonical tagging is therefore a technical yet strategic tool in SEO work. When you plan your information architecture or develop new templates in your CMS, you should factor in canonicals alongside meta tags and internal links. That way, you ensure a clear structure that both search engines and users can navigate.
How do you use a canonical tag?
You use a canonical tag by inserting the preferred "master" URL in the href attribute. The tag tells search engines that all duplicate pages should point to this version. Implementation happens in each page's HTML, typically via your CMS or a plugin. If you work in WordPress, for example, you can use SEO plugins such as Yoast to manage the tag automatically.
Canonical tags differ from 301 redirects. A 301 redirect moves the user and the traffic permanently to a new address, whereas a canonical tag only guides search engines on which version should count as the primary one. You can therefore still have several URLs live, even though only one is highlighted in the search results.
Example of a correct setup:
Why you should use canonical tags
A canonical tag is important because it protects your website from duplicate content problems that can harm your organic visibility. When several URLs point to the same content, you risk search engines splitting the authority between the pages instead of letting one page stand strong. That can dilute your backlinks and weaken your ranking in the search results.
You also make sure the crawl budget is used optimally. Search engines have a limit on how many pages they go through, and if the budget is spent on irrelevant duplicates, important pages can end up overlooked. That has a direct impact on SEO and therefore on the organic traffic to the website. When you work with a joined-up strategy across SEO, SEM and content, canonical tagging becomes an important piece in creating technical coherence.
What types and variants are there?
There are several types of canonical tags covering different scenarios on your website:
- Self-referential canonicals: The most common type, which points back to itself. Many CMSs set it automatically to avoid accidental duplicates.
- Cross-domain canonicals: Used when you share content across domains, for example syndicated content, where one version needs to be the official source.
- Geotargeting variants: Used when you have several language or regional versions of the same page. Here, a canonical tag helps point search engines to the main version of the page.
The different types make it possible to handle advanced content structures without losing clarity in your SEO strategy. They become particularly relevant if you work with international sites or large e-commerce solutions, where product pages easily end up with many versions.
How do you use canonical tags in practice?
Practical implementation starts with identifying pages that repeat or overlap content. You can find these with tools such as Google Search Console, Screaming Frog or the analytics tools in your CMS backend. Once you've mapped the duplicates, you choose the page that should be the canonical version and add the canonical tag to all the copies.
Example of a typical webshop page with filtering:
If you have a page at https://webshop.dk/produkter?sort=pris, the canonical should point to https://webshop.dk/produkter. That way, link equity and search intent are consolidated in one place.
You should always validate the setup in Search Console to make sure Google sees the correct page as canonical. Avoid chained canonicals, where one page points to another that in turn points to a third — that can cause confusion and weaken the SEO effect.
If you work with performance marketing, canonical tagging can also affect your ads. When URL structures are consistent, tracking data from Google Ads and Analytics can be matched precisely to the right page. That gives a clearer picture of how your organic and paid channels work together.
What should you be aware of?
Many assume that canonical tagging solves all duplicate content problems, but search engines treat it only as a recommendation — not a rule. You should therefore still avoid unnecessary parameters and ensure an internal link structure that points to the canonical version. Also use one URL version consistently across internal links, sitemaps and ads.
It's also a good idea to combine canonical tagging with a clear redirect strategy and structured markup, so you both control search engines' crawl logic and help users find the right page faster. That way, the canonical tag becomes part of a technical SEO standard that strengthens your website both strategically and operationally.