Meta Tags Keyword Description | Dynamic Generation in Blogger
Wednesday, July 28, 2010 |
Edit Post
Dynamic Keyword Description Meta Tags to Improve Blogger SEO:
It took me awhile to research this technique, hopefully it'll save you some time. It creates meta tags dynamically in blogger for everything except archive paths, in which case it's left blank..
Open your blogspot account and proceed to the html template editor. Locate the <head> tag and paste the following code immediately below it:
<!--start dynamic description keyword title meta tags for Blogger --> <title><data:blog.pageTitle/></title> <b:if cond='data:blog.pageType != "archive"'> <meta expr:content='data:blog.pageName + ", " + data:blog.title' name='Description'/> <meta expr:content='data:blog.pageName + ", " + data:blog.title' name='Keywords'/> </b:if> <!--end dynamic description keyword title meta tags for Blogger -->
This will generate unique description and keyword meta tags constructed of your post title + blog title setting. It's a good SEO practice to have the title tag on top, and if you operate a multi-issue blog where global meta tags wouldn't be appropriate, then Dynamic Meta Tags will help search engines properly index your blogger content.
UPDATE:
Here's my setup: It sets the Page Title to that of the Item Title or Blog Title. -this removes the appended Blog Title + Item Title default Blogger behavior.
It simply leaves meta description blank -I've found that Google is great at producing concise descriptions in most cases.
<b:if cond='data:blog.pageName == ""'> <title><data:blog.title/></title> <b:else/> <title><data:blog.pageName/></title> </b:if> <b:if cond='data:blog.pageType != "archive"'> <meta expr:content='data:blog.pageName + ", " + data:blog.title' name='Keywords'/> <b:else/> </b:if>
6 comments:
Nice information.Thanks for sharing..
i was looking for a way how to imitate googles title handling in blogger but just ending up messing around..
but this works like a charm, thank you!!!
I've got unique title tag based on your code, thanks a lot. Anyway, meta description still doesn't work. Google still puts "homepage" description to all posts. Do you have anyway to fix that?
@Anonymous
I've found that it's best to leave meta description empty because Google is better at dynamically creating descriptions relevant to context searches.
The only time you'll ever see assigned meta descriptions show up in Google is when you do a filtered search such as site:mysite.com
Hope this helps.
very helpful for beginners like me, thank you very much
Post a Comment