What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

To verify your website in Google Search Console using an HTML tag, you must have permission to modify the source code of your homepage. Add your site's URL under the URL prefix option, copy the generated HTML tag, and paste it into the header of your homepage without altering its content. Once this is done, you can click 'Verify' in the Search Console.
0:01
🎥 Source video

Extracted from a Google Search Central video

⏱ 1:05 💬 EN 📅 11/12/2019
Watch on YouTube (0:01) →
📅
Official statement from (6 years ago)
TL;DR

Google allows you to verify your site's ownership in Search Console by adding an HTML tag to the header of your homepage. This method requires access to the source code but avoids DNS manipulations or file uploads. Note: the tag must remain in place permanently; otherwise, verification will fail during Google's periodic checks.

What you need to understand

Why does Google require multiple verification methods?

Google offers five verification methods to cater to varying levels of technical access for site owners. The HTML tag is one of the most accessible options, along with file upload and Google Analytics.

This diversity addresses a real-world situation: not all webmasters have access to DNS records for their domain, especially in large organizations where these permissions are locked by IT teams. The HTML tag offers a compromise — it merely requires the ability to modify the source code of the homepage.

What is the technical mechanism behind this verification?

Specifically, Google generates a unique string in the form of a meta tag. This tag contains an identifier specific to your Search Console property. When you click on "Verify," Google's crawlers visit your homepage and look for this specific tag in the <head>.

If the tag is present and its content exactly matches the generated one, the verification passes. Google then stores this information and periodically re-checks that the tag is still in place. Remove it, and you will lose access to your data after a few days.

Does this method work for all types of sites?

The HTML tag works very well for static sites or traditional CMSs (WordPress, Drupal, etc.). Most themes and builders allow for code injection in the <head> without touching templates.

It becomes tricky with client-side generated sites (React/Vue/Angular apps in SPA). If your <head> is dynamically built by JavaScript after the initial load, Google's crawler may not see the tag quickly enough. In this case, prefer DNS verification or through Google Tag Manager.

  • The tag must be placed in the <head>, not in the <body>
  • Never modify the content of the generated tag; even a space changes the hash
  • The verification is linked to the homepage only — no need to duplicate the tag on all pages
  • Google re-checks regularly: if you redesign the site and forget the tag, you lose access
  • This method only verifies the URL prefix: if you add example.com, the tag must be on example.com, not on example.com/fr/

SEO Expert opinion

Is this statement consistent with real-world practices?

Absolutely. The HTML tag verification is one of the most used methods in agencies, as it only requires FTP or CMS interface access. SEO teams often do not have DNS access, especially with large accounts where these permissions are managed by IT.

What is less known: Google periodically re-checks for the presence of the tag. I've seen clients lose access to their Search Console after a redesign where the new template overwrote the customized <head>. The error message is harsh: "Verification failed." It's also impossible to recover data history if you don't have another verification method in place.

What nuances should be added to this simplified procedure?

Google presents this as a simple operation — and it is, technically. But there is a blind spot not mentioned: HTML tag verification does not prove that you control the domain, only that you can modify the homepage at a given moment.

If a freelance developer adds the tag for you and then disappears, and you no longer have access to the code, you're stuck. Worse: if someone else gains access to the CMS (former employee, contractor), they could add their own tag and claim ownership simultaneously. [To be verified]: Google never specifies how many distinct owners can verify the same site simultaneously via different tags.

In what cases does this method pose problems?

Multi-domain or multi-language sites are problematic. If you manage example.com, example.fr, and example.de, you must verify each domain separately with its own tag. And if you use subdomains (blog.example.com, shop.example.com), each requires its own verification.

Another edge case: sites with CDN or aggressive caching. If your homepage is entirely cached (Cloudflare, Varnish), Google's crawler might retrieve a version without the tag for several hours after the addition. Verification fails, you panic, while it's just a cache purge issue.

Warning: If you're using a headless CMS or a static site generator (Gatsby, Next.js), ensure that your build pipeline correctly includes the tag in the final generated HTML. I've seen cases where the tag was present locally but absent in production due to a faulty Webpack configuration.

Practical impact and recommendations

What concrete steps should be taken to ensure successful verification?

First step: in Google Search Console, make sure to select the "URL Prefix" option and not "Domain Property." The latter requires DNS verification. Then, copy the generated meta tag — it looks like <meta name="google-site-verification" content="ABC123..." />.

Paste this tag in the <head> of your homepage, ideally just after the <title> tag or the meta description. On WordPress, use a plugin like Insert Headers and Footers or add it directly in your theme's header.php file. On Shopify, go through the theme.liquid file.

Once the tag is in place, clear all caches: server cache, CDN cache, browser cache. Visit your homepage in private browsing mode and display the source code (Ctrl+U). Manually search for your tag in the <head>. If it doesn't appear, Google won't see it either.

What mistakes should be absolutely avoided?

The classic mistake: modifying the content of the tag thinking it will help. Some webmasters add spaces, change single quotes to double, or truncate overly long code. The result: immediate verification failure. The tag must be copied and pasted without any modification.

Second pitfall: placing the tag in the <body> instead of the <head>. Google crawls the HTML in order — if the tag is too low in the DOM, the crawler might not see it. This also applies if it is injected afterwards by JavaScript: the server-side rendering must already include the tag.

Third mistake: forgetting that verification is permanent. If you change your WordPress theme, Shopify template, or redesign the site, remember to re-inject the tag. Otherwise, you will lose access to your Search Console data within 30 days.

How can you verify that the configuration remains valid over time?

Set up a simple monthly monitoring. Visit your homepage, display the source code, and search for the tag. If it disappears, you have a few days before Google revokes access. You can also use a tool like Screaming Frog to crawl your homepage and check for the presence of the tag in the <head>.

A more robust alternative: add a second verification method in parallel (DNS or Google Analytics). This way, if one method fails (redesign, CMS change), you retain access through the other. This is particularly critical for high-traffic sites where losing 30 days' worth of Search Console data can be costly.

These optimizations may seem simple on paper, but implementing them in complex technical environments (multi-sites, CDN, headless CMS) requires a sharp expertise. If you manage critical infrastructure or lack internal resources, hiring a specialized SEO agency can ensure these technical foundations while allowing you to focus on your core business.

  • Ensure the tag is present in the <head> by checking the source code
  • Test the verification in private browsing to avoid false positives related to cache
  • Document the exact location of the tag (file, line) for future redesigns
  • Add a secondary verification method (DNS or Google Analytics) as backup
  • Monthly check for the tag's presence using a crawler or automated script
  • Train dev/webmaster teams to avoid overwriting the tag during deployments
HTML tag verification is the most accessible method to connect your site to Search Console, but it requires diligence. Ensure the tag remains in place over time, systematically clear caches before checking, and document the procedure for your teams. A DNS verification in parallel will safeguard you against surprises during redesigns.

❓ Frequently Asked Questions

Combien de temps la balise HTML doit-elle rester en place ?
Indéfiniment. Google re-vérifie périodiquement sa présence. Si vous la retirez, vous perdez l'accès à vos données Search Console dans les 30 jours environ.
Peut-on utiliser la balise HTML pour vérifier un sous-domaine ?
Oui, mais chaque sous-domaine nécessite sa propre balise. Si vous gérez blog.example.com, vous devez ajouter la balise générée pour cette URL spécifique sur la homepage du sous-domaine.
Que se passe-t-il si le cache CDN empêche Google de voir la balise ?
La vérification échoue. Vous devez purger le cache CDN (Cloudflare, Fastly, etc.) avant de cliquer sur Vérifier dans Search Console. Attendez quelques minutes après la purge pour être sûr.
Est-ce que plusieurs personnes peuvent vérifier le même site avec des balises différentes ?
Google ne documente pas clairement cette limitation. En théorie, chaque propriété Search Console peut avoir plusieurs propriétaires vérifiés, mais via différentes méthodes (balise, DNS, Analytics).
La balise HTML fonctionne-t-elle avec un site en JavaScript pur (SPA) ?
Seulement si le rendu côté serveur (SSR) inclut la balise dans le HTML initial. Si elle est injectée dynamiquement par JavaScript après le chargement, Google risque de ne pas la voir. Privilégiez la vérification DNS dans ce cas.
🏷 Related Topics
Domain Age & History Content AI & SEO Domain Name Search Console

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.