Tuesday, September 10, 2024

How to get the Google verification on my Blog? by Upload a Verification Meta Tag to the HTML Header

 To upload a verification file to your Blogspot (Blogger) blog (https://tvlavin.blogspot.com/), you’ll need to follow a specific process since Blogger does not support direct file uploads like some other platforms. However, you can complete verification by placing the verification code or file in the HTML code of your blog. Here are two methods to do this:

Method 1: Upload a Verification Meta Tag to the HTML Header

This is the most common method for verifying ownership with Google Search Console or other services.

  1. Log in to your Blogger account.
  2. Go to the Dashboard and select your blog from the list.
  3. In the left-hand menu, click on Theme.
  4. In the Theme section, click the Customize drop-down and select Edit HTML.
  5. Locate the </head> tag in the HTML code.
  6. Paste the verification meta tag provided to you (from Google, for example) just before the closing </head> tag. The meta tag will look something like this:
    html
    <meta name="google-site-verification" content="your-verification-code" />
  7. Click Save.

Your blog should now be verified, and the file will remain on the site as long as you don't remove the meta tag.

Method 2: Upload a Verification File Using Google Search Console

If you have a verification file instead of a meta tag, you can’t upload it directly to Blogger, but you can verify your site using other methods:

  1. Sign in to Google Search Console: Go to Google Search Console and log in with the Google account associated with your Blogger blog.
  2. Click Add Property and enter your Blogspot URL (e.g., https://tvlavin.blogspot.com).
  3. Choose one of the following options for verification:
    • HTML tag: Google will provide you with an HTML meta tag (similar to the method above). Copy the code and follow the steps in Method 1 to paste it into your blog’s HTML header.
    • Google Analytics: If you have Google Analytics installed on your Blogger site, you can use that to verify the ownership.
  4. Once you've added the verification code to your blog, return to Google Search Console and click Verify.

If successful, your site will be verified without needing to upload a file directly.

Keep the Verification Code or File

To stay verified, don't remove the verification meta tag or file, even after verification succeeds. Keeping the meta tag in your HTML ensures that your site remains verified in Google Search Console and other verification services.


Since the <head> section already contains meta tags for the viewport and other elements, you can insert your custom meta tag right after the existing <meta> tags and before the <title> tag.



For example:

html
<head> <b:if cond='data:blog.isMobile'> <meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/> <b:else/> <meta content='width=1100' name='viewport'/> </b:if> <!-- Add your meta tag here --> <meta name="description" content="Your blog's description here"> <b:include data='blog' name='all-head-content'/> <title><data:blog.pageTitle/></title> <b:skin><![CDATA[/* ... ]]></b:skin> </head>

You can replace the meta tag with whatever specific one you need to add.


Option 2

For example, let's say you want to add a meta tag for a description of your blog. You would insert it like this:

html
<head> <meta name="description" content="This is an example description of my blog."/> <b:if cond='data:blog.isMobile'> <meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/> <b:else/> <meta content='width=1100' name='viewport'/> </b:if> <b:include data='blog' name='all-head-content'/> <title><data:blog.pageTitle/></title>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.