Breaking News

Statistics Widget for Blogger blog

What is Statistics Widget for Blogger?
Statistics Widget for Blogger will display the total number of posts and total number of comments on your blog. As of now, I have included only these two data for display. I do not see any value in displaying the total words in posts and total words in comments. I find them meaningless. If you are interested to display the total number of posts and total number of comments on your blog, please follow the instructions below.
Instructions to install Statistics Widget for Blogger
  1. Log in to your Blogger account
  2. On your Blogger Dashboard, click on the "Layout" link

    Layout Link
  3. This will take you to the "Page Elements" tab. Decide where you want to insert the statistics widget and click on the "Add a Gadget" link accordingly.

    Gadget Link
  4. Scroll down the list and find "HTML/ Javascript" and click on the "+" button

    HTML/ Javascript Gadget
  5. This will open the "Configure HTML/ Javascript" window. In the title section, please type "Blog Statistics" or "Blog Information" or "Blog Data" or any other title as you may wish
  6. In the content section, please copy & paste the following code:
    <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=""></script></li>

    <li><script src=""></script></li></ul>

    <span style="font-size:75%;"><a href="" target="_blank">Widgets for Blogger</a></span>
  7. Remember to replace the text in bold "yourblog" with your blog address. Take note to replace it in two locations.
  8. Your window should look like the image below.

    Configure HTML Gadget
  9. I have a link back to my blog at the bottom. You are free to remove the credit, if you don't like it
  10. Click on "Save" button at the bottom right hand corner

That's it. You have created a widget to display the number of posts and number of comments on your blog. Please contact me if you have any doubts or you face any problems with the widget.


  1. Hey, I didnt know this app. Well, my blog doesn't have a lot comment (for now :D) but I will usr it when I have a decent info to show.

    Nice blog

  2. It's a kool little thing, but im going to wait untill ive gotten some more traffic before i use it

  3. I don't have much post either.

  4. I'm trying this one...lemme see :)

  5. Hey I had put this one up on my blog but it showed the no of comments of only the last I removed it...what's the problem?

  6. @Varsh
    hey buddy its shows many posts and comments u have in your blog...not recent comments...hope u got u answer

  7. This is great. Though it's true - your site needs quite a lot of traffic first. If not it could look a little sad. I'll keep this one on my favorites for when I get more traffic in. Thanks! :)

  8. very nice...thank you :)

  9. The first several months of my site there were no comments; just give it time; now they come in like crazy every day! Thanks.
    Buy facebook likes

  10. Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me.
    buying facebook likes


Any Comments ?

Designed By GP