We have been moved to http://www.bloganol.com/

Statistics Widget For BloggerStatistics is a widget that shows the total no of posts and comments in your blog.The credits of this widget goes to Assess My Blog.This widget is featured here on the request of our reader Sherry.

To show your blog statistics in your blog sidebar,copy the following code and paste it in your blog by Adding a new gadget -> HTML/JavaScript.

<script style="text/javascript">

function numberOfPosts(json) {
document.write('Total Posts: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');

function numberOfComments(json) {
document.write('Total Comments: <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');


<ul><li><script src="http://yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script></li>

<li><script src="http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>

<noscript><a href="http://assessmyblog.blogspot.com/" target="_blank">Widgets for Blogger</a> | <a href="http://www.bloganol.com" target="_blank">Bloganol</a></noscript>

In the above code change yourblog with your blog name and Save the code and see the wiget working.


12 Responses to "Statistics widget for blogger"
techniqueal t. said...
October 8, 2008 at 1:36 AM

hi. this is a great widget! been looking for this for a long time. thanks for sharing this ^_^

indungg said...
October 8, 2008 at 6:07 AM

it's not work on my blog??

Deinesh said...
October 8, 2008 at 7:10 AM

@ Indungg

This widget works with every blogger blog.I think you have used this code it in Html section of your blog or you can try this code by adding www after http:// in the code.

Johan Carlsson said...
October 8, 2008 at 7:08 PM

Thanks for a great widget. I like to be able to show posts and comment counts. It gives me a bit of bragging rights:)

Sherry said...
October 8, 2008 at 7:44 PM

thank you for giving the code, it works on http://sherryshopping.blogspot.com I can't wait to test out on other blogs :)

template-godown said...
October 10, 2008 at 1:42 PM

nice work.

thank you for share, i ask your permission to post about this useful script on my blog also.

thank you.

Manick said...
October 12, 2008 at 11:50 PM


Thanks for the link back to my blog. Appreciate that.

Cristian Olteanu said...
October 14, 2008 at 2:57 AM

Great tip, I will try using it on my blog.

0612 said...
October 18, 2008 at 4:55 AM

Very nice one! I'll be using it. Thanks a lot!

filozzoff said...
November 19, 2008 at 8:44 AM

perfect, thank you

LoLLY JeaN said...
May 13, 2009 at 3:43 AM

doesn't work?
always says:
"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The reference to entity "callback" must end with the ';' delimiter."

what should i do?

Kristanna said...
September 28, 2009 at 11:10 PM

This is very interesting work.Thanks for sharing it.These help me alot to upgrate my blog attractive.
externe festplatten

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!