How to Add Google Verification Code in WordPress
Add the Google site verification tag safely so Search Console can verify your WordPress site correctly.
Before you start
Step-by-step instructions
1. Copy the Google verification tag
Google usually gives you a meta tag that looks similar to the example below. Copy the entire line exactly as shown in your own account.
<meta name="google-site-verification" content="your_verification_code_here" />
Do not replace the example value with guesses. Use the exact code issued by Google for your site.
2. Use a safe head-code insertion method
For most non-developers, the safest option is to use a plugin or site settings area that lets you insert code into the head section without editing theme files directly.
Look for a setting such as Header Code, Scripts in Header, or another managed code insertion field.
The code stays separate from the theme files, so a theme update is less likely to remove it.
3. Place the tag in the head section only
The verification code should be output inside the page head, not inside the main content area, widget text, or a normal post editor.
Pasting the tag into a page, post, or footer area often causes Google verification to fail because the tag is not where Google expects it.
4. Check the page source after saving
After adding the verification tag, open the public site and view the page source. Search for google-site-verification to confirm the tag is actually present.
Some code insertion tools save the setting correctly but caching or theme output issues may still stop the tag from appearing on the live page.
5. Clear cache if the tag does not appear immediately
If you added the code but cannot see it in the page source, clear any page cache, plugin cache, or server cache and check again.
WordPress caching can keep serving an older page version even after the verification code was added correctly.
6. Return to Google and verify the site
Once the tag is visible in the page source, return to Google and run the verification step again.
Run verification only after you have confirmed the tag appears publicly on the site, not just inside WordPress settings.
Common situations this fixes
The tag may be missing from the live page source or inserted into the wrong part of the site.
This often happens when the verification tag was placed directly into a parent theme file.
Caching, output location, or plugin conflicts may be preventing the meta tag from appearing in the live head section.
Using a managed header-code method is usually easier and safer than editing theme files manually.
Common mistakes
Google usually expects the verification tag inside the head section, not inside the visible content of a page.
That may work temporarily, but future theme updates can erase the code without warning.
Saving the code inside WordPress is not enough. The real check is whether the tag appears publicly in the output HTML.
A cache layer can hide the newly added tag and make it look like the verification code was not added at all.