Friday, October 30, 2009

Add meta tags to each Blogger posts

Meta tag is an HTML tag which resides in the <head> section of a web page. Meta tags is not visible when seen in a browser, so visitors never see them. Meta tag is very valuable because of the fact that search engines are going to use it to describe our site in the search result. Meta tags are also used as an information for the search engine as whether your site is the one that users are looking for. Ignoring on-site search engine ranking factors can be costly because things like keyword-rich titles and solid internal linking can produce a very significant impact. Since Meta keywords and Meta description are not automatically generated for Blogger templates, we have to add them to the HTML markup of our Blogger templates.

How to add meta tags to blogger posts
How to add meta tags to each of your Blogger page:
  • Login and open the dashboard of your Blogger blog
  • Click Layout and Edit HTML
  • Before making any changes to your template, always backup your current template.
  • Find the following code:

    <title><data:blog.pageTitle/></title>
  • Copy the following code snippet below, and after that paste it below the 'grey' code:

    <b:if cond='data:blog.url == data:blog.homepageUrl'>
    <meta content='DESCRIPTION' name='description'/>
    <meta content='KEYWORDS' name='keywords'/>
    </b:if>
  • So finally it will look like this:

    <title><data:blog.pageTitle/></title>
    <b:if cond='data:blog.url == data:blog.homepageUrl'>
    <meta content='DESCRIPTION' name='description'/>
    <meta content='KEYWORDS' name='keywords'/>
    </b:if>

    That will add the meta tags for your homepage of your blog.
  • Replace the DESCRIPTION with a description about your homepage (keep it less than 150 character).
  • Replace the word KEYWORDS with your keywords, each keyword separated by commas and make it relevant for your homepage (keep word repetition less than 3 in order to avoid keyword spamming).
  • To create and add another meta tags to each of your Blogger posts, copy this following code:

    <b:if cond='data:blog.url == &quot;URL-OF-YOUR-PAGE&quot;'>
    <meta content='DESCRIPTION' name='description'/>
    <meta content='KEYWORDS' name='keywords'/>
    </b:if>

    place the code just below the homepage code that you just entered. You need to repeat the step above in order to create another meta tags for your next individual post.
  • You can check whether you've add the meta tags correctly without any mistake with any meta tag analizer provided on the web like submit express or seo centro.

No comments:

Post a Comment