Monday, January 11, 2010

A better way to add meta tags to Blogger

One way to improve SEO (Search Engine Optimization) is to put meta tags in your blog. Meta tags which consist of description meta tag and keyword meta tag are placed inside the head section of your blog template HTML. In description meta tag you put a description of your blog, telling what your blog is about. In keyword meta tag you put in words relevant to your blog contents.
There is a problem though, in Blogger (blogspot) the meta tags will not only reside in your homepage but also in every post pages that you create (when you post an article). Let say you posted 30 articles so far, then all 30 a pages+1 home page will have similar meta tags!. This is not good, for two reasons:
  1. Google uses your meta description (if you have one installed) as content snippet in Google search result listing. Imagine you have same snippet for all your pages!
  2. Google regard it as duplicate contents (duplicate meta descriptions).
There are two ways to tackle this:
  1. Create one set of meta tags for each page. This can be done, but man that’s a lot of meta taggin’ to be done!
  2. Limit meta description tag for homepage only. I choose this way, the lazy easy way! (When there is no meta description exists in a post page, Google will use an excerpt from the post content as search result content snippet).
So I’m going to explain method no.2, here it is:
  1. First go to Dashboard>Layout>Edit Template and find this line in your blog template HTML codes:

    1<b:include data='blog' name='all-head-content'/>
  2. Then put the meta tags code immediately below it. The final result should be as shown below.

    1<b:include data='blog' name='all-head-content'/>
    2<meta content='PUT KEYWORDS HERE SEPARATED BY COMMAS' name='keywords'/>
    3<b:if cond='data:blog.pageType == "index"'>
    4<meta content='PUT BLOG DESCRIPTION HERE' name='description'/>
    5b:if>
    What this code does is put keyword meta tag in all pages and limit description meta tag to only your homepage.
Do you find this article useful?

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home