Monday, May 12, 2008

Blogger Title Tag for Better SEO Ranking

Blogger Title Tag for Better SEO RankingA big drawback till recently with Blogger platform was the way the title for each individual post displayed. Usually it involved the Blog title followed by the Page title. It is always better to display the Page title alone as it will increase the SEO ranking. But the most improved aspect could be a better performance in search results. People will click on a search result more if the title starts with the Keyword rather than Blog title. For example let’s assume that I am searching for term “FaveBot” – I have a page about FaveBot titled “FaveBot – Your Search Solution”. But in the search result it will show up as “Pen The Blog: FaveBot – Your Search Solution”. This will reduce my search effort considerably, especially considering that there could be tens of WordPress blogs which will only display Page title. Hence there was a huge demand from Blogger users from the beginning to find a solution to this.

The first solution available on the net for this issue was a JavaScript. I have no idea who compiled it – but it did serve somewhat its purpose. You can look at the code here. But its drawbacks were huge; whenever I tried to install that my blogger template started behaving oddly. So in the end I have to discard it and get satisfied with blogger default. Now Blogger team has answered all our calls. The solution is the <data:blog.pageName/> tag. This will display the Page Title alone or simply put the pageName variable holds the Name of the current page. Remember that this will not hold Blog Title and hence cannot be used to display Blog title. Why I am saying this is that people will be tempted to simply change the <title><data:blog.pageTitle/><title> with <title><data:blog.pageName/></title>. This will not work with your blogs homepage. The steps to add this to your blog is defined below. I am explaining two processes here – which one to chose is at your disposal.

Process 1:

1)Go to Edit HTML page of your blogger template.(DashBoard-> Layout->Edit HTML)
2)Search for <data:blog.pageTitle/> tag (Between head tags)
3)Replace the tag with Below given tag

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

Process 2:
In the step 3 replace with this code
<b:if cond='data:blog.url == &quot;Your_Blog_URL&quot;'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>


Replace the Your_Blog_URL with your blog url.


If you chose process 1, then you will have the index pages (i.e homepage, archive page, category/labe page) all displaying Blog title. In the second process only the homepage will display Blog title but the archive and labe pages will display their titles.

0 comments:

Woopra

      web tracker
web hosting - Web Hosting guide to popular hosts.