Indexability · Canonicals
Canonical outside the head
The canonical link element sits in the body, or after something that closed the head early, so search engines ignore it.
How this page is built
The canonical link element for this page has been removed from the head and placed in the body, directly after this paragraph.
Why it matters
Search engines only honour canonical links that appear in the head of the document. A canonical placed in the body is ignored.
Canonicals can also end up in the body when an invalid element in the head, such as an image or a div, makes the browser close the head early. Everything after that point, including the canonical, is then treated as body content.
How to check it
View the source and check where the canonical link sits. Browser developer tools show the parsed document, which reveals whether the head was closed early. The W3C Nu HTML Checker reports elements that are not allowed in the head, which is usually what pushes the canonical into the body.
How to fix it
Move the canonical link into the head, as early as is practical.
Validate the page with the W3C checker to find any element that is closing the head early, and keep scripts, tracking pixels and other injected markup out of the head where they are not allowed.