Dynamic Meta Tags For Blogger/BlogSpot Blogs

Make your pages are unique
If you are new to Meta tags, then in short: "Meta tags introduce your blog to search engines", and so these tags are a must for every website/blog or rather for each and every page/article of websites.
In blogger you can easily add these tags to either the HomePage or to any other "specific page". And now, you can even avoid an important error (duplication of meta tags and titles).
But even after doing all these hacks, it is not easy to manually add description and keyword tags to each and every page/post.
So here's a simple code to automate the process of assigning meta description and keyword tags to every page of your blog. Although not very effective but it may slightly improve the visibility of your pages in SERPs. These are the Dynamic meta tags, which have the same code but display different content for different pages. Actually it simply shows the blog name and title of the post in the meta description/keywords content.
Log in to Blogger, go to Layout -> Edit HTML
and find (CTRL+F) this code in the template:
<b:skin><![CDATA[
And immediately BEFORE/ABOVE it, paste this code:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta expr:content='data:blog.pageName + data:blog.title + data:blog.pageName' name='Description'/>
<meta expr:content='data:blog.pageName + data:blog.title + data:blog.pageName' name='Keywords'/>
</b:if>
Along with this, DO NOT forget to do these changes in your template too:
Remove the meta tags and titles duplication problem.
Swap the Blog title position for Search Engine Optimization.

Thanks to Rajeswar for suggesting these dynamic meta tags.

Image credits: illumin8.com

ProBlogger - Inspiring Others Realize Their Dreams!

Share this

Related Products

Related Posts

Previous
Next Post »

53 comments

Write comments
May 02, 2009 8:27 AM delete

I have one more request.My blog contain about 40-50 posts every month (Its a blog of my song's collection).Now google index every pages including the achieves pages and when anyone come from google to that achieve page it become very long and these pages also causes having duplicate title and meta tags.Is there any way to prevent it from indexing? I tried this code but the block my Labels too.

"
(b:if cond='data:blog.pageType == "archive"')
(meta content='noindex,follow' name='robots'/)
(/b:if) "

HERE IS MY BLOG

Reply
avatar
Sai
May 02, 2009 9:05 AM delete

Hi Rajeshwar, just updated the post with your blog's link, and regarding the long pages of archives, you may try this method:

Show Only Titles In ArchivesAnd actually this is also an important hack, as if you do not apply this hack to your blog, then the same content(your posts) will be displayed in two different pages (your original post and in your archives), and Google may note it is as Duplicate content !
So do it as soon as possible...

Regards
Sai

Reply
avatar
May 04, 2009 3:57 AM delete

Thank You .. Its really great. Thanks again.

Reply
avatar
May 04, 2009 7:02 AM delete

I think this is really neat
i like ur website. thanks for this comment posting...

more templates http://www.itemplatez.com

Reply
avatar
May 05, 2009 1:20 PM delete

I learn a lot from your post. :) Great post. I am still learning about SEO and your blog is a great help.

Reply
avatar
May 07, 2009 1:22 PM delete

somebody got a bit of knowledge........:):)

Reply
avatar
May 08, 2009 8:16 PM delete

ahhh all this stuff hurts my head! Glad someone gets it...

Lauren Wolf
Your Sensual Advocate for tasteful, heathy, modern sensuality
www.signaturesensuality.com
lwolf@signaturesenuality.com

Reply
avatar
May 25, 2009 10:52 AM delete

Does this work for XML? Every time I try to improve my meta tags I get error messages.

Reply
avatar
May 25, 2009 11:43 AM delete

Hi Casia,

If you have tried exactly this method, then I am sure you'll not get any error messages(while saving the template)

But while indexing, some of your meta descriptions may look 'short', because everybody do have 'short titles' in some of their posts, which is then copied as meta description in this hack, and then it is considered as 'short meta description'.

So if you do not want to show 'short meta tags' to search engines, then read these three posts:
1. http://bloggerstop.net/2008/10/meta-tags-importance-and-how-to-use.html
2. http://bloggerstop.net/2008/11/how-to-add-separate-meta-tags-for_25.html
3. http://bloggerstop.net/2009/04/duplicate-meta-description-and-titles.html

Regards
Sai

Reply
avatar
June 16, 2009 3:19 AM delete

very nice tutorial
but 1 question how to add comma in data:blog.pageName + data:blog.title + data:blog.pageName

so my meta keyword look like this
meta content='Olympus E-30, Olympus Digital Camera, Olympus E-30' name='Keywords

take a look at my blog http://olympus-tech.blogspot.com

Reply
avatar
June 25, 2009 3:23 AM delete This comment has been removed by the author.
avatar
July 09, 2009 10:15 AM delete

i think it will cause the error: "Invalid XML: too many tags"

I'll try and see :D

Reply
avatar
July 09, 2009 10:31 AM delete

Don't worry, only one meta tag will be displayed per page (the code is within a condition)...

Reply
avatar
Anonymous
July 23, 2009 7:16 AM delete

http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif

Reply
avatar
September 13, 2009 6:46 PM delete

I'll give it a try, I'd successfully applied something similar but a recent blogger update rendered loads of javascript errors, so had to remove this code from several blogs. Hoping your free code snippet will help - particularly with the duplication issue.

Thanks for sharing
Steve

Reply
avatar
Anonymous
October 01, 2009 2:37 AM delete

I have submitted my blog to google but they have not indexed it for 3 days ! what should i do ?

Reply
avatar
October 03, 2009 3:45 AM delete

DS

I have submitted my blog to google but for 3 days there has been no page indexed !

Reply
avatar
October 03, 2009 4:12 AM delete

@XQUID,
your site has been indexed, check out the link below:
http://www.google.co.in/search?hl=en-GB&q=site%3Ahackmeout.blogspot.com

Reply
avatar
October 04, 2009 8:05 AM delete

Is there any hack to include HTML and scripts in Blogger template ?

Reply
avatar
October 05, 2009 7:03 AM delete

You can directly add any html in widgets. Go to layout then click on "Add A Gadget" and finally paste the code there.

Reply
avatar
Anonymous
February 19, 2010 4:36 AM delete

Thanks for the hack...I have implemented this hack in my blog...I have been looking for this type of hack for year..today i got it thanks a lot..


My Blog

Reply
avatar
February 27, 2010 10:49 AM delete

How can I include first lines of story content along with page title and blog title?

Is there a data:blog.content variable that I can add to the above code?

Reply
avatar
April 23, 2010 9:59 PM delete

one question, know when i analize the tags of any post of my blog the title and the keywords are the same so do you think this is good or google counts as a duplicate content.

thanks man your site rocks

Reply
avatar
Sai - Blogger Help
April 24, 2010 9:53 AM delete

Thanks buddy!

Keywords tags will never cause the problem of suplication, in fact it is nowadays not even considered as an important part of SEO, it the description tag which is more imp. and may cause the problem of duplication. But again, duplication is not between the title and the tag.
Here duplication means - two different pages having the same description tag.

Reply
avatar
May 01, 2010 9:12 AM delete

hello bloggers... google doesnt penalize for duplicate content.. ;)

Reply
avatar
June 12, 2010 6:37 PM delete

thanks for this tag,,, i use this metode and my visitor generate form google search... thanks again...

Reply
avatar
June 25, 2010 5:11 AM delete

-meta expr:content='data:blog.pageTitle' name='Description'/-

In the above tag i want to add my own sentences with page title. Please help me to do that..

I tried the following but it shows error

-meta expr:content='data:blog.pageTitle' + 'My own sentences which describes more about my website' name='Description'/-

Reply
avatar
June 28, 2010 2:32 AM delete

Tnx for this tip im using too, but is there any way to automatically add first few post sentences in description?

Reply
avatar
June 30, 2010 2:57 PM delete

When i share something on facebook, it takes the first few lines of the content normally.

But after putting this code, it takes page title - blog name - page title. How can i fix that? I want it to take first few lines again.

Reply
avatar
August 09, 2010 11:34 AM delete

Hi Sai,

I also notice that after putting this code, when you tried to share the post eg. in facebook, the description became page title-blog name-page title. Is it really the result of this code? or we need to add something to see the first few lines of the content.

Hoping for a response..
thank you in advance!!

-SoftwareApp

Reply
avatar
September 24, 2010 9:48 AM delete

Hi sai..

Please check my blog site if it's clear and Good to Go of all Meta tags problems that I added into my blog...

Thanks and best regards Vice T. Vanish

http://vicetvanish.blogspot.com/

Reply
avatar
September 26, 2010 4:01 AM delete

I agree with tyler78 and applicationsandsoftwares..

here's my errors of sharing to facebook or (others)..

Image #1 - http://img215.imageshack.us/img215/78/60347274.png

In image #1 this was sir tyler78 and applicationsandsoftwares
trying to show a certain error regarding sharing it to facebook.

Image #2 - http://img842.imageshack.us/img842/3594/60021353.png

In Image #2 is also my concern regarding the sign '\'
Because as shown in the picture.. The supposed Title would be The Shade's Massage not The Shade\

Please sir sai.. if there is something you can do with these kind of errors

thank you and best regards
Vice T. Vanish

Reply
avatar
September 30, 2010 8:31 AM delete

Hi again sir sai...

I have no more problem about this issue/image #1 but as of this image #2, I was wandering of how to make a description of it..

e.g example:
The shade's massage (pageName)
(description)------------
-------------------------

I've solved the problem about image #1
but Can you give me/us a clue about this descriptions in image #2...

regarding how to make a body content description of the said title.

data:blog.(?)

UP it is also connected to sharing to facebook.

thanks and best regards again
Vice T. Vanish

Reply
avatar
October 13, 2010 7:19 AM delete

I have tried a number of times to add a description meta tag to an article in blogspot.com, but it just does not work. The same description appears on all the other articles. Any ideas to correct this will be appreciated.

Reply
avatar
October 17, 2010 6:21 AM delete

gracias por el aporte de los metas,un buen post,saludos a todos.

Reply
avatar
October 18, 2010 7:33 AM delete

The description tag i would agree is still very important in both search engine terms for crawling and ranking and also for enticing browsers to your website however keywords these days does not have much strength in SEO.

Reply
avatar
October 26, 2010 5:12 AM delete

Thnk you so much for this useful information! The only thing I'm not sure about is the 'name' part in the meta tag. Should I put my own name or the one I write under?

Reply
avatar
October 26, 2010 12:26 PM delete

No, you don't have to edit any code in this tutorial.
Those meta tags are different, where you provide the information manually, read about them here:
Meta Tags - Importance and How To Use

Reply
avatar
December 11, 2010 2:39 AM delete

Thanks Sai! You know what would be SO GREAT?

If there was some code which could provide a way to automatically add the labels of an individual post as the keywords meta tag for that post, and the first lines of the post itself as the description meta tag for that post. Possible?

Reply
avatar
December 26, 2010 4:46 AM delete

Wow this is cool ...
but my question is
is it possible to add another static meta tag about keywords..

help thanks in advance..

Tech Tasks

Reply
avatar
January 16, 2011 12:25 AM delete

Meta My Blog Duplicate .......
Help Me ... Http:///iam.2yoemt.co.cc

Robots = noodp

Reply
avatar
July 01, 2011 5:08 AM delete

I was more than happy to search out this web-site.I wished to thanks in your time for this excellent read!! I undoubtedly enjoying every little little bit of it and I've you bookmarked to take a look at new stuff you weblog post.

Reply
avatar
July 22, 2011 2:35 AM delete

The blog is in reality the great on this worthy subject. I match in together with your conclusions and looking forward to your coming updates. Thanks for sharing.

Reply
avatar
August 17, 2011 8:56 AM delete

I have tried a number of times to add a description meta tag to an article in blogspot.com, but it just does not work. Thanks for your post which helps me a lot. The only thing I'm not sure about is the 'name' part in the meta tag. Should I put my own name or the one I write under?
How can I make money on the Internet?

Reply
avatar
August 21, 2011 3:49 AM delete

Should i use only dynamic tag or both general and dynamic meta tag on my web
jobzfree.blogspot.comsuggest me what should i do

Reply
avatar
August 23, 2011 7:54 AM delete

I have tried a number of times to add a description meta tag to an article in blogspot.com, but it just does not work. Thanks for your post which helps me a lot. The only thing I'm not sure about is the 'name' part in the meta tag. Should I put my own name or the one I write under?
Instant Approval Article Directory

Reply
avatar
August 31, 2011 3:34 AM delete

The description tag i would agree is still very important in both search engine terms for crawling and ranking and also for enticing browsers to your website however keywords these days does not have much strength in SEO.
Birthday sms and shayari

Reply
avatar
September 17, 2011 4:12 AM delete

Thanks for making such a cool project. I’ve been checking the site for the Windows version, but I never left a comment about it. I know you are working hard and doing it for free so you shouldn’t feel rushed or anything.

Reply
avatar
October 21, 2011 4:19 AM delete

I am enjoying this site, this site some great resource like cruises and give it away for free. Thanks for taking the time to discuss this site. I really loved reading this post. Keep up the good work.

Reply
avatar
November 01, 2011 1:52 PM delete

V Divya, I do not see this in your code. Have you dropped the meta description completely and are letting Google read from the page?

Reply
avatar

Comments are moderated on this blog

Allowed HTML tags: <b>, <i> and <a>

Comment Like This! and Optimize your blog EmoticonEmoticon