Site Verification
Verify your site ownership with Google Search Console, Bing Webmaster Tools, Yandex, Pinterest, and Facebook.
Search engines and platforms require proof of site ownership before granting access to their webmaster tools. Boltdocs automatically injects the correct <meta> verification tags for the five most common providers.
Quick Start
Step 1: Get your verification code
Sign in to your provider's webmaster tool and copy the verification code:
| Provider | Tool | Meta Tag |
|---|---|---|
| Search Console | <meta name="google-site-verification"> | |
| Bing | Webmaster Tools | <meta name="msvalidate.01"> |
| Yandex | Webmaster | <meta name="yandex-verification"> |
| Claim Site | <meta name="p:domain_verify"> | |
| Business Settings | <meta name="facebook-domain-verification"> |
Step 2: Configure in boltdocs.config.ts
export default defineConfig({
seo: {
verification: {
google: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
bing: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
yandex: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
pinterest: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
facebook: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
},
},
})
Step 3: Verify ownership
Deploy your site and click Verify in the provider's webmaster tool. The verification <meta> tag is automatically injected into the <head> of every page.
Configuration Reference
| Property | Type | Required | Description |
|---|---|---|---|
google | string | — | Google Search Console verification code. |
bing | string | — | Bing Webmaster Tools verification code. |
yandex | string | — | Yandex Webmaster verification code. |
pinterest | string | — | Pinterest site claim code. |
facebook | string | — | Facebook Business verification code. |
Single Provider Example
seo: {
verification: {
google: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
},
}
Only the configured providers' meta tags are injected. There is no penalty for having verification tags for services you do not use, but keeping only what you need is recommended.
How It Works
Boltdocs generates the appropriate <meta name="..." content="..."> tag for each configured provider and injects it into the <head> element on both the server-rendered HTML and client-side navigation.
<!-- Example: All providers enabled -->
<head>
<meta name="google-site-verification" content="xxxxxxxxxxx" />
<meta name="msvalidate.01" content="xxxxxxxxxxx" />
<meta name="yandex-verification" content="xxxxxxxxxxx" />
<meta name="p:domain_verify" content="xxxxxxxxxxx" />
<meta name="facebook-domain-verification" content="xxxxxxxxxxx" />
</head>
Troubleshooting
Verification keeps failing
- Ensure the code is copied exactly (no extra spaces or characters)
- Verify your site's canonical domain matches what you entered in the webmaster tool (e.g.,
https://docs.example.comvshttps://example.com) - Check that the
<meta>tag appears in the page source
Meta tag not appearing
- Confirm
seo.verificationis nested correctly under theseokey (notintegrations) - Check that you are viewing the deployed production site, not a local development server