Statistics Widget For Blogger

Statistics widget that shows all the statistics counting total no of posts and comments in your blog.The credits of this widget goes to Assess My Blog.The bloggers who have thousands of comments on there blog will sure love to use this widget in there blog as it will dispaly the all counts of there comments and post counts too.

Now How to add this widget to you Blog. Follow the instructions.

Go to dashboard of your blogger > Layout > Add a Gadget > HTML/JAVASCRIPT

Add the below codes to it-

<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>’);
}

</script>

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

<li><script src="http://anshuldudeja.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>
<noscript><a href="http://anshuldudeja.blogspot.com" target="_blank">Blogger Hacks</a></noscript>

Now Just change the code in red to your blog url or your domain name to display of your total no of posts and comments.

And now save it. Its Done enjoy using this. senyum

10 Comments

  1. Sofhal Jamil November 1, 2008
  2. Anshul November 1, 2008
  3. Widgets for Blogger November 2, 2008
  4. inetbuzz November 3, 2008
  5. Laane November 16, 2008
  6. snam March 14, 2009
  7. Anshul March 16, 2009
  8. yen April 4, 2009
  9. Anshul April 4, 2009

Leave a Reply