Where should the canonical link tag go?

ProcrustesPR

The canonical link tag should go between <head> and </head> in the HTML, not in the <body>. Make sure your editing interface lets you modify the head, not just the article content. A complete, absolute URL is recommended for href.

ProcrustesPRProcrustesPRShould You Use a Website Platform? Decide Based on Maintenance, Expansion, and Migration Needs

Put it in the head; do not rely on a misplaced tag working

An answer on Webmasters Stack Exchange states that the canonical link belongs only in the head. Placing it outside the head is invalid HTML, and it “may not be honored.” A 2023 Screaming Frog article is more definite: search engines will ignore canonical tags outside the head.

In practice, move the tag into the head rather than risk relying on a search engine to recognize a misplaced tag. Both sources support this recommendation, but they differ in how strongly they describe the consequences of incorrect placement. Their statements do not establish how every search engine will handle it in every situation, nor are they equivalent to the latest official search engine guidelines.

Your admin interface’s source-code mode may not let you edit the head

A 2021 awoo article specifically warns that some admin interfaces let you edit only the content area. Even in source-code mode, any markup you add remains in the body. Being able to enter HTML therefore does not mean you can place the canonical tag correctly. Pasting it at the beginning of an article is not the same as putting it in the document’s head.

You can check the tag’s location using the steps in a 2021 Semrush article:

  1. Open the page in a browser and select “View Page Source.”
  2. Search for <head> and </head> to identify where the head section begins and ends.
  3. Find rel=”canonical” and confirm that it is between those tags. If not, move it into the head or ask a developer for help.

Check the tag’s actual location in the page source, not just whether it has been entered in an admin field.

Confirm how you will add it, then enter the complete URL

A 2022 article on Neil Patel’s website lists two methods: adding the tag manually or using a plugin. Adding it manually requires access to edit the page’s head. For WordPress users, the article’s author considers a plugin the easiest option. This is practical advice, not a requirement to use a plugin with WordPress or a guarantee that a plugin is configured correctly.

A 2021 awoo article recommends using an absolute URL to avoid ambiguity caused by relative paths. The following example shows the markup to place inside the head. Replace the URL with the URL of your designated canonical page:

<link rel=”canonical” href=”https://example.com/article/”>

Include the protocol, domain, and required path, rather than entering only /article/. Check the implementation method, tag location, and target URL separately. Do not skip checking the location simply because the settings have been saved in the admin interface.

ProcrustesPRProcrustesPRHow Do B2B Companies Use Blogs and Content Management Systems?

Canonical link tags: perspectives from across the web

Can a canonical page have a canonical tag pointing to itself?

Yes. An answer on Webmasters Stack Exchange considers a self-referencing canonical tag on the canonical page redundant but harmless. So, even if a site generates tags uniformly across its pages, there is no need to remove one solely because the canonical page points to itself. This is the answer’s assessment, not a guarantee that search engines will select the specified URL.

ProcrustesPRHow Should a CMS Handle Images? From Upload Optimization to Descriptions and URL Management

References

  1. Rel canonical link tag pointing to the same pagewebmasters.stackexchange.com — Discusses: Can a canonical page have a canonical tag pointing to itself?
  2. Rel canonical link tag pointing to the same pagewebmasters.stackexchange.com — Discusses: Can a canonical page have a canonical tag pointing to itself?
  3. HTML Link Tags Explained (+ All Attributes and Values)www.semrush.com · 2021-05-20T04:08:00Z — Source used in the article above.
  4. What Are Canonical Tags?neilpatel.com · 2022-09-10T07:00:00+00:00 — Source used in the article above.
  5. Canonical標準網址操作指南,操作SEO不再苦惱www.awoo.ai · 2021-10-01T10:13:11+00:00 — Source used in the article above.
  6. Screaming Frog SEO Spider Update – Version 19.0www.screamingfrog.co.uk · 2023-07-17T09:44:30+00:00 — Source used in the article above.

Related articles

Should You Use a Website Platform? Decide Based on Maintenance, Expansion, and Migration NeedsHow Do B2B Companies Use Blogs and Content Management Systems?How Should a CMS Handle Images? From Upload Optimization to Descriptions and URL ManagementWhat are the features, benefits, and limitations of a CMS?How does a headless CMS work, and what are its benefits and trade-offs?How to Choose Between Wix, WordPress.com, and WordPress.orgWhat types of WordPress are available, and what advantages does each offer for building a website?How can you build a responsive website without coding or Photoshop skills?
ProcrustesPR
ProcrustesPR