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

Leave a Reply

53 Comments on "Dynamic Meta Tags For Blogger/BlogSpot Blogs"

Notify of
avatar
Sort by:   newest | oldest | most voted
Ra♪eswar
Guest

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

View Comment
Sai
Guest

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

View Comment
Ra♪eswar
Guest

Thank You .. Its really great. Thanks again.

View Comment
akash
Guest

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

more templates http://www.itemplatez.com

View Comment
Online Garden Fountains
Guest

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

View Comment
Nikhil
Guest

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

View Comment
Lauren Wolf
Guest

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

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

View Comment
Cascia
Guest

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

View Comment
Divya
Guest

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. https://bloggerstop.net/2008/10/meta-tags-importance-and-how-to-use.html
2. https://bloggerstop.net/2008/11/how-to-add-separate-meta-tags-for_25.html
3. https://bloggerstop.net/2009/04/duplicate-meta-description-and-titles.html

Regards
Sai

View Comment
YOPOP
Guest

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

View Comment
Soufiane LeBlogger
Guest

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

I'll try and see 😀

View Comment
Divya Sai
Guest

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

View Comment
Satya
Guest

Great tips!

View Comment
Online Marketing Company
Guest

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

View Comment
Anonymous
Guest

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

View Comment
XQUID
Guest

DS

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

View Comment
Divya Sai
Guest

@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

View Comment
XQUID
Guest

Thanks !

View Comment
XQUID
Guest

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

View Comment
wpDiscuz