2009-04-28

Image

Meta Tags For Blogger / Blogspot

Meta Tags are HTML elements used to provide structured metadata about a web page. Such tags are placed in the head section of an HTML document
We can also add meta tags to Blogger Blogs.But the problem is that having the same meta tags for all pages in your blog is not a good practice.So it would be better if you could add meta tags on your home page only.Just find out the appropriate keywords and description for your site

Now copy out the following code into a text file

<link href='mailto:Your_Email_Address' rev='made'/>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='Your keywords separated by commas'
name='keywords'/>
<meta content='Your Site Description' name='description'/>
</b:if>
<meta content='Your_Name' name='author'/>
<meta content='ALL' name='ROBOTS'/>
Make the following Replacements
1.Replace Your_Email_Address with your Email Address.
2.Replace Your keywords separated by commas with your site's keywords.
3.Replace Your Site Description with a good description of your site.
4.Replace Your_Name with your Name 


I would suggest you to take into consideration the following character limits
a.The maximum size of the title tag should be 60 characters
b.The maximum size of your site description should be 150 characters
c.it would be better to limit the keyword size to 200 characters
you might use this character count tool.. Now copy out the edited code and place it within the head section of your blogger template.. It would be appropriate to place it below the title tag
<title><data:blog.pageTitle/></title>
If you are using my SEO Title Tag hack, then you will have to place the meta tags after the whole of the title tag hack that is below

<!-- Start www.bloggerplugins.org: Changing the Blogger Title Tag -->

<b:if cond='data:blog.pageType == &quot;index&quot;'>

<title><data:blog.pageTitle/></title>

<b:else/>

<title><data:blog.pageName/> ~ <data:blog.title/></title>

</b:if>

<!-- End www.bloggerplugins.org: Changing the Blogger Title Tag -->



When you use this meta format, the keyword description meta tags will appear on your blogs home page only thus avoiding duplicate meta tags on blog pages..

Now if you wish to add meta tags for a particular post page you can do that also..In that case you will have to follow the following format..here is the code that i have used for implementing meta tags on this post page.
<b:if cond='data:blog.url == &quot;http://www.bloggerplugins.org/2008/06/meta-tags-for-blogger-blogspot.html&quot;'>

<meta content='optimize blogger,optimize blogspot,meta tags for blogger' name='keywords'/>

<meta content='Adding Meta tags to blogger blog is very useful. Here is a tutorial on Optimizing blogger by using appropriate meta tags on homepage and post pages.' name='description'/>

</b:if>
You should replace the post url,the keyword and description tags appropriately and place them in the head section of your template.

التعليقات:

Total Pageviews