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.
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:
And immediately BEFORE/ABOVE it, paste this code:and find (CTRL+F) this code in the template:
<b:skin><


























32 comments:
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
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
Thank You .. Its really great. Thanks again.
I think this is really neat
i like ur website. thanks for this comment posting...
more templates http://www.itemplatez.com
I learn a lot from your post. :) Great post. I am still learning about SEO and your blog is a great help.
somebody got a bit of knowledge........:):)
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
Does this work for XML? Every time I try to improve my meta tags I get error messages.
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
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
i think it will cause the error: "Invalid XML: too many tags"
I'll try and see :D
Don't worry, only one meta tag will be displayed per page (the code is within a condition)...
http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif
Great tips!
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
I have submitted my blog to google but they have not indexed it for 3 days ! what should i do ?
DS
I have submitted my blog to google but for 3 days there has been no page indexed !
@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
Thanks !
Is there any hack to include HTML and scripts in Blogger template ?
You can directly add any html in widgets. Go to layout then click on "Add A Gadget" and finally paste the code there.
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
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?
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
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.
hello bloggers... google doesnt penalize for duplicate content.. ;)
thanks for this tag,,, i use this metode and my visitor generate form google search... thanks again...
-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'/-
Tnx for this tip im using too, but is there any way to automatically add first few post sentences in description?
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.
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
Allowed HTML tags: <b>, <i> and <a>
Join and share your views with other bloggers at BloggerStop Community
Comment Like This! and Optimize your blog...
SPAMMER OF THE MONTH: www[.]Seeking4Hosting[.]com