SEO
Google Search Console Setup
Add and verify your website in Google Search Console for indexing visibility, crawl data, and sitemap submission.
Why Add Your Site
Google Search Console gives you:
- Indexing visibility — See which pages Google has indexed and identify coverage issues
- Crawl errors — Discover broken links, server errors, and crawl blocks
- Performance data — Impressions, clicks, average position, and CTR by query
- Sitemap submission — Tell Google about your pages and speed up discovery
This guide covers SEO indexing (sitemaps, crawl data, search performance). For OAuth consent screen verification (Gmail sign-in), see Google Brand Verification.
Property Types
Search Console supports two property types:
| Type | Example | Scope | Verification |
|---|---|---|---|
| URL-prefix | https://example.com | Only URLs with this exact prefix | HTML file, HTML tag, GA, GTM, or DNS |
| Domain | example.com | All subdomains and protocols (http, https, www) | DNS only |
Use Domain property if you control DNS (e.g. via Cloudflare). It covers www, non-www, and subdomains in one property. Use URL-prefix if you only need a specific site (e.g. https://yourdomain.com).
Add a Property
- Go to Google Search Console
- Click Add property
- Choose URL-prefix or Domain and enter your URL or domain
- Click Continue to proceed to verification
Verification Methods
URL-Prefix Properties
| Method | Pros | Cons |
|---|---|---|
| HTML tag | Simple, no file upload | Requires editing page source |
| HTML file | No code changes if you can upload files | Must upload to site root; redirects not followed |
| Google Analytics | One-click if GA is installed | Requires same Google account; GA must be in <head> |
| Google Tag Manager | One-click if GTM is installed | Requires same Google account; GTM must be right after <body> |
| DNS | Works for Domain property; no code changes | Requires DNS access |
Domain Properties
Only DNS verification (TXT or CNAME record) is supported. See Verify ownership for details.
NextBento-Specific Setup
HTML Tag (URL-Prefix)
Next.js supports verification via the metadata API. Add to your root app/layout.tsx:
export const metadata: Metadata = {
// ... existing metadata
verification: {
google: 'YOUR_VERIFICATION_CODE',
},
}
Replace YOUR_VERIFICATION_CODE with the value from Search Console (the part after content=" in the meta tag).
DNS (Domain Property or URL-Prefix)
If your domain is on Cloudflare (or another DNS provider):
- In Search Console, choose Domain name provider verification
- Add the TXT record at your DNS provider:
- Name/Host:
@or leave blank (for apex) - Value: The string provided by Search Console (e.g.
google-site-verification=...)
- Name/Host:
- Wait for propagation (minutes to 48 hours), then click Verify in Search Console
Do not remove the DNS verification record after verification. Search Console periodically re-checks it.
Post-Verification
Submit Your Sitemap
NextBento generates sitemaps at /sitemap.xml. After verification:
- In Search Console, go to Sitemaps
- Enter
sitemap.xml(or the full URL, e.g.https://yourdomain.com/sitemap.xml) - Click Submit
Request Indexing (Optional)
For important new or updated pages:
- Use URL Inspection in Search Console
- Enter the page URL
- Click Request indexing if the page is not yet indexed
Best Practices
- Submit sitemap — Ensures Google discovers all indexable pages
- Fix coverage issues — Address errors and excluded pages in the Coverage report
- Monitor Core Web Vitals — Use the Experience report to improve page experience
- Use URL Inspection — Debug indexing for specific URLs
- Add multiple verification methods — Backup methods help if one fails (e.g. GA tag removed)
References
- Verify your site ownership — Google Search Console Help
- Add a property — Google Search Console Help