NeovaPlataforma avançada de SEO

Várias tags head empurram metadados para fora do head

Na Neova Roda a partir do próprio rastreamento: nada a configurar.

Regra revisada pela última vez em 17 de outubro de 2026 · Guia atualizado em 17 de outubro de 2026

Uma segunda tag head não reabre o head. O Google só lê metadados do head, então uma tag title, canonical ou hreflang colocada depois da segunda tag cai no body e pode ser ignorada.

O que você pode fazer

Junte as tags head em uma só e coloque todas as tags de SEO dentro dela.

Por que a Neova sinaliza isto

  • Uma segunda tag head não reabre o head; o parser a ignora depois que o body começou.
  • O Google lê os metadados do head, então uma tag title, canonical ou hreflang depois da segunda tag vai parar no body e pode passar despercebida.
  • Tags head extras costumam vir de um template, plugin ou embed que imprime o próprio esqueleto HTML completo.

Fontes

O guia completo

Esta parte está em inglês por enquanto.

TL;DR: A valid HTML page has exactly one <head> element. When a template bug, a plugin, or a bad injection produces two or more, browsers and Googlebot silently merge or truncate them, and tags you care about (canonical, title, robots meta) can land in the wrong place or get dropped. Find the duplicate, kill it at the source, and validate.
Check type
Indexation / HTML
Severity
Medium
Valid count
Exactly one
Detect with
Screaming Frog, view-source
Usual cause
Template / plugin bug

What a Multiple Head Tags Error Is

The HTML spec is blunt about this: a document has one <head> and one <body>. The head is where all the machine readable metadata lives, the title, meta description, canonical link, robots directives, hreflang, Open Graph tags, and your CSS and script references. When a page ships with two <head> elements, the document is malformed. It might still render, because browsers are forgiving, but "it still renders" is doing a lot of heavy lifting there.

What actually happens is the browser's HTML parser tries to recover. Per the spec's parsing rules, once the parser has closed the head and moved into the body, a second <head> start tag is simply ignored, and its children get reparented, often shoved into the body, where canonical and hreflang links do nothing. So the tags in that second head are not "also counted." They are frequently thrown away or relocated to a spot where search engines will not read them as head metadata, although Google says it respects robots meta tags in the body too (a note it added on March 24, 2026).

Why It Matters for SEO

The head is where your most important SEO directives live, so a broken head is a broken instruction set. Here is the practical damage:

  • Canonical confusion. If your rel=canonical sits in the second head and the parser drops or relocates it, Google may never see it and may pick its own canonical. Two canonicals across two heads is worse, because now you are sending conflicting signals.
  • Robots meta at risk. Google says it respects robots meta tags in the body as well, but other crawlers may miss a noindex or nofollow directive that lands in the orphaned head, so a page you meant to keep out of an index gets indexed, or vice versa.
  • Title and description loss. If the real title is in head one and a duplicate empty title is in head two, you can end up with a mess in the SERP snippet.
  • Truncated head. When the parser closes the head early to recover, everything after that point (scripts, hreflang, structured data) can fall outside where it belongs, breaking rich results and rendering.

None of this is guaranteed catastrophic on every page, but it is the kind of quiet, inconsistent breakage that makes rankings wobble and drives you slowly insane during debugging. Malformed HTML around the head is worth fixing on principle, because you cannot reliably predict which tag gets eaten.

How the parser handles a second <head> <html> <head> #1 title, canonical <head> #2 noindex, hreflang parser Result after recovery ✓ Head #1 tags kept and read ✗ Second <head> start tag ignored ✗ noindex / hreflang reparented into body, treated as content hreflang lost; Google still obeys noindex.

What Causes It

Cause Where It Shows Up
Template includes a partial header twice Custom themes, nested includes
Two plugins each printing a <head> WordPress, plugin conflicts
Page builder wrapping content in a full doc Builders that output whole pages
Tag manager or A/B tool injecting a head GTM custom HTML, experiment scripts
Bad string concatenation in server code Manual HTML assembly

How to Detect It

  • View source, not inspect. Open view-source: on the URL and search the raw HTML for <head. The browser DevTools Elements panel shows the corrected DOM, which hides the problem. You need the raw response.
  • Screaming Frog custom search: add a custom extraction or search rule counting occurrences of <head> and flag any page with more than one. This scales the check across the whole site.
  • curl the URL: a quick curl -s URL | grep -o "<head" | wc -l tells you how many head start tags the server actually sent.
  • W3C validator: paste the page or URL into the Nu HTML Checker; a stray head throws a clear parse error.
  • Sitebulb / other crawlers: most surface HTML validity and duplicate head issues in their hints.

How to Fix It, Step by Step

  1. Confirm from the raw HTML. Use view-source or curl, not the rendered DOM, so you are debugging what the server actually emits.
  2. Find which layer prints the second head. Bisect. Disable plugins one at a time, or comment out template includes, and re-check the raw source until the duplicate disappears. In WordPress this is usually two things both hooking the header, or a header partial included twice.
  3. Remove the duplicate at the source. Do not try to paper over it with JavaScript that deletes the second head after load. Googlebot may read the raw HTML before that runs, and you are still shipping invalid markup. Fix the template or the plugin.
  4. Consolidate the important tags. Make sure the surviving single head contains your canonical, robots meta, title, description, hreflang, and structured data. Nothing SEO critical should be sitting in the body.
  5. Re-validate. Run the page through the Nu HTML Checker and re-crawl in Screaming Frog to confirm exactly one head across templates.
  6. Check the whole template family. A duplicate head is almost always a template level bug, so if the product page has it, the category and blog templates probably do too. Test one URL of each type.
DO
  • Debug from raw view-source or curl output
  • Fix the duplicate at the template or plugin level
  • Keep every SEO directive in the one real head
  • Re-validate with the Nu HTML Checker
  • Check every template type, not just one page
DON'T
  • Trust the DevTools DOM, it hides the bug
  • Delete the second head with client side JS
  • Leave canonical or robots meta in the body
  • Assume it is one page when it is a template
  • Ignore it because the page still renders

What Good Looks Like

One <head> per document, closed cleanly before <body> opens, containing exactly one title, one meta description, one canonical, the right robots directive, and your hreflang and structured data. The Nu HTML Checker returns no head related errors, and Screaming Frog reports a single head element across the whole crawl. Boring and correct, which is exactly what you want from your HTML skeleton.

FAQ

Will Two Head Tags Always Hurt My Rankings?
Not always, and not predictably, which is the annoying part. Sometimes the surviving head has everything it needs and nothing breaks. But because the parser can drop or relocate tags from the second head, you cannot rely on that. Treat it as a real defect to fix rather than a risk to gamble on.
Why Does the DevTools Inspector Show Only One Head?
Because DevTools shows the corrected DOM after the browser's parser has already recovered from the malformed HTML. The duplicate exists in the raw response the server sent, so you have to check view-source or curl to see it.
Can Google Tag Manager Cause This?
Yes. A custom HTML tag that outputs a full <head> block, or a template that assumes it is injecting into a fresh document, can create a second head. Audit any custom HTML tags that write structural markup rather than just scripts.
Is One Head With Duplicate Meta Tags the Same Problem?
No, that is a separate issue. Duplicate canonicals or titles inside a single valid head is its own check. Multiple head tags is specifically about the document structure being malformed with more than one <head> element.
Not sure what else your templates are quietly breaking?

Malformed head markup usually travels with other template level issues. A full audit surfaces them before they cost you indexation.

Encontre isso no seu próprio site

O Neova roda esta verificação e todas as outras em cada rastreamento e depois escreve a correção como um ticket para a sua equipe.

  • App para desktop no Mac, Windows e Linux
  • Todas as 696 verificações, cada uma com sua fonte
  • Search Console e Analytics 4, conectados só para leitura
  • Tickets para Jira, Linear e Asana

Baixar a Neova Plano Desktop Free, ou Solo grátis por 14 dias, sem cartão.

Todas as verificações da categoria Indexabilidade · Guias · Biblioteca de verificações

Escrito pela Neova Labs · Voltar à Biblioteca de verificações