Adding a Canonical Tag to Your Website
When it comes to search engine optimisation, one of the most effective tools at your disposal is the canonical tag - a simple yet powerful tool that helps search engines understand which version of a webpage to index first. To get started, you'll need to identify the duplicate or variant versions of a webpage on your site. This can be done by checking the URLs of your pages and looking for any slight variations in the path or parameters. For example, if you have two versions of an article, one with and one without a query string parameter, they may appear as different URLs to search engines. Next, log in to your website's control panel or CMS to access the HTML code of each page, allowing you to add the canonical tag where necessary.
Getting Started
Key Considerations
When deciding where to place a canonical tag on your website, it's essential to consider the URL structure and content of each page. Generally, you should use the canonical tag for duplicate or variant content, such as different versions of an article or product page. For example, if you have two pages with identical content but different URLs (e.g., www.example.com/article-1 and www.example.com/article-2), using a canonical tag on one of them will help search engines understand which version is the preferred original. Additionally, it's also worth considering using canonical tags for content that should be treated as duplicate, such as product pages with varying attributes or prices.
Practical Steps
To implement a canonical tag on your website, start by logging into your website's CMS or FTP client and navigating to the relevant page or post. You will need to add a meta tag snippet to the HTML header of that specific page, which can usually be done through a text editor or coding interface. The canonical tag should be added within the section of the HTML code, taking the format ``. Once added, you may need to refresh your website's pages in a browser or use an SEO tool to confirm that the canonical tag has taken effect.
Frequently Asked Questions
Does a canonical tag guarantee that page is indexed?
No. It is a strong hint, not a directive. Google usually respects it but may choose a different canonical if your internal links, sitemaps or redirects point elsewhere, so keep those signals consistent.
Should every page have a canonical tag?
Yes, a self-referencing canonical on each page is good practice. It removes ambiguity when a page is reached through tracking parameters or alternative paths.
Can I canonicalise to a page on another domain?
You can, and it is useful when the same content is syndicated. The target page must be genuinely equivalent, otherwise the signal will be ignored.
How to Add a Canonical Tag in Practice
Open the HTML source of the page you want to canonicalise and add a single link element inside the head, for example <link rel="canonical" href="https://www.example.com/products/blue-widget/">. Use the full absolute URL, including the protocol and the trailing slash if your site uses one, and make sure the address exactly matches the version you want indexed. On a self-referencing page the canonical simply points to itself, which tells search engines this is the master copy. On WordPress the Yoast or Rank Math plugin writes this tag for you, so you edit the canonical in the post settings rather than in raw HTML.
A Worked Example
Imagine a product reachable at three addresses: /blue-widget, /blue-widget?ref=newsletter, and /category/blue-widget. Left alone, Google may treat these as three competing pages and split their ranking signals. The fix is to set the canonical on all three to the single clean URL /blue-widget/. Within a few crawls the tracking and category variants stop competing, and the equity consolidates on one page that can rank far more strongly.
Common Mistakes to Avoid
- Pointing the canonical at a page that then redirects, creating a confusing chain.
- Using a relative URL or the wrong protocol so the tag resolves to nothing useful.
- Placing more than one canonical tag on the same page, which search engines ignore.
- Canonicalising a paginated series to page one and hiding pages two onward from indexing.
As you embark on your SEO journey, remember to regularly audit your site with tools like SEMrush or Ahrefs, and consider using automated checks like Servudra to streamline your process. — Editor, EnlightenIt