Statistics Widget for Blogger

Monday, October 6, 2008

Statistics Widget For BloggerHere is my latest widget for Blogger/ Blogspot; I am going to call it Statistics Widget for Blogger. I have noticed a few sites displaying blog statistics like, total number of posts, total number of comments, total words in posts, total words in comments and similar data on their sidebar. I thought of coming out with a similar widget for Blogger.

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

    </script>

    <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>

    <span style="font-size:75%;"><a href="http://assessmyblog.blogspot.com/" 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.

Please subscribe to my feed if you like this post

39 comments:

The Fitness Diva October 6, 2008 at 6:55 AM  

That's kinda cool. I might grab one of those...

gotia2003 October 6, 2008 at 9:18 AM  

nice widget...it's is useful for reader and also for owner...

Manick October 6, 2008 at 9:03 PM  

Hi "The Fitness Diva",

Thanks. Let me know the blog at you which installed the widget. Any problem so far?

Hi "gotia2003"
Thanks for visiting my blog.

PakciQue October 7, 2008 at 12:42 AM  

Thanx 4 da tools...

Manick October 7, 2008 at 5:49 AM  

Hi PakciQue,

Thanks.

Free Money Maker October 16, 2008 at 10:08 AM  

Hi manick thanks for your widget post.I will implement it soon and obcourse I will post about it.Anyway I have a little recomendations about your comment format.Most of blogs are using new format which I have also opted.If you want then check me right now.Thanks.

Manick October 17, 2008 at 10:05 PM  

Hi Free Money Maker,

Thanks for writing about this widget on your blog.

Noted your suggestion on the new commenting system. I will take a look.

Kim October 23, 2008 at 7:58 PM  

thanks for this code..
it's working fine on my 3 blogs :) :)

Manick October 24, 2008 at 7:25 AM  

Hi Kim,

Thanks for your comments. I am glad to know that it works fine on your blog.

Anonymous October 28, 2008 at 10:13 AM  

I'm linking back to your blog, btw, interested in exchanging link? Post comment to my blog when you have put my link, because i'm not often visiting the same site:
http://tendou86.blogspot.com


Thanks

Manick October 30, 2008 at 7:11 PM  

HI Takumi86,

Thanks for linking back to my post.

Anonymous November 24, 2008 at 12:12 PM  

Ya i'm very very sorry for this, now i have removed all the 2 picture and tutorial from your blog post and create my own review, sorry i just enjoying to share, if you want you could add comment there too about my review of your blog post

Thanks

Manick November 24, 2008 at 5:48 PM  

Hi Takumi86,

I can understand. I am glad that you quickly reacted after my first comment. I had seen bloggers who won't even care about others. But, you are not of that kind. I sincerely appreciate your review of my blog. Thanks.

Popcorn House November 26, 2008 at 9:04 AM  

Manick, great job on this widget. I have placed it on our blog. I found you through a link on blogger buster. I have book marked your site for future reference. Have a great Thanksgiving.

Manick November 27, 2008 at 5:35 AM  

Hi "Popcorn House",

Thanks for your comments and for using my widget on your blog. I am glad that you found my blog through Blogger Buster (Thanks to Amanda for the link).

Sam December 15, 2008 at 3:02 PM  

a very useful thingie indeed, particularly as I want to know how many comments I have on my blog.

However, all I get is the number of posts, for the number of comments I just get a little dot and nothing else - no words or numbers!! Can you advise? Thanks

Manick December 16, 2008 at 9:07 PM  

Hi Sam,

You should not have any problem with the widget. Please check whether you have copied the entire code as it is. And replaced the text "yourblog" with your blog address.

I suggest you to start again and redo it. I am sure it will work. Thanks.

_el@i_ December 16, 2008 at 10:50 PM  

thanks a lot,

Manick December 17, 2008 at 9:55 PM  

Hi "_uNt@lented_",

You are welcome.

Leigh Penner January 2, 2009 at 7:40 PM  

Thanks so much!

Manick January 3, 2009 at 5:34 AM  

Hi Leigh,

You are welcome. Thanks for taking some time to comment on this blog.

Anonymous January 26, 2009 at 10:06 PM  

Very Useful!!

Manick January 27, 2009 at 6:08 PM  

Hi Venkatesh,

Glad to know that the widget is useful to you. Thanks.

RJ Dyena February 12, 2009 at 10:41 AM  

This blog is very useful for a person who is in the learning process like me..

Hats-off to ur service

c3v3n February 13, 2009 at 10:52 PM  

nice widget...are you not mind that ia put this post on my blog....thanks before...

http://c3v3n.blogspot.com

Manick March 1, 2009 at 5:33 AM  

Dyena: Your comments are valuable. NANDRI!

S3V3N: Thanks for your comments. You can use this widget on your blog. No problem. I would be glad if you can keep the link to my blog.

VISHAL March 22, 2009 at 10:15 PM  

Hi ,

I am sorry that i copied ur post and post it on ma blog without ur permission... I have given a proper credit to your original post now and also deleted other post from my blog (Comment with URL )....

sorry for the inconvenience :(

Manick March 22, 2009 at 10:44 PM  

Hi Vishal,

I apprciate your quick action to include a link to my post. Thanks. Hope we can work together for mutual benefit.

Unknown May 1, 2009 at 11:03 AM  

nice widget. I'm using it now on The Mexican Taint

Manick May 1, 2009 at 9:28 PM  

Hi Taint,

I would have been happy if you had left the credit to my blog. Anyway, thanks for using the widget.

Unknown June 29, 2009 at 7:56 AM  

hello there...I saw your blog...it's nice...I got the link thru vishal gaikar...and am happy to find you...I am almost new to blogging (started blogging since just a week now)... but I am not getting much visits...comments, etc.
can you please have a look at my blog & tell me what else should i do so that I get more readers like you have, my blog goes here
http://designofobia.blogspot.com/

bye & take care

Chicky November 16, 2009 at 10:29 PM  

Hi Manick!

Thanks for this little tool! I just put it up on my blog... miss_teeriousleft the link-back to you 'coz more ppl can benefit. :)
I did tweak the appearance a little bit... hope that's ok with u! Thanks once again!

Manick November 17, 2009 at 5:45 PM  

Hi Kaddu,

Thanks for your comments. I am glad that you are using the statistics widget on your blog. Please go ahead and do any modifications to suit your interest.

Blog Rasmi YM Syed Abi Ghufran Al-Idrus November 24, 2009 at 9:35 PM  

hai there..what happen to my "Statistics Widget for Blogger"..it sholud be more 5++..but it show only...54 comment..after 4++ comment..it show 54 comment.. why??? u can see it in my blog.. http://ymsagasama.blogspot.com thank u.

comments system November 30, 2010 at 3:47 AM  

this is awosome. actually i have been looking for another widget but this is great. keep sharing please :)

price per head online June 28, 2012 at 5:02 PM  

Please one more post about that.I wonder how you got so good. This is really a fascinating blog, lots of stuff that I can get into. One thing I just want to say is that your Blog is so perfect

hosted virtual call center June 29, 2012 at 10:24 AM  

Its so interesting article..Thanks for sharing..

Barney August 14, 2014 at 1:28 AM  

I am glad that you are using the statistics widget on your blog. I have given a proper credit to your original post now and also deleted other post from my blog

Romeo August 31, 2022 at 6:17 AM  

Thank you very much for your work, it works perfectly!
My blog: https://nirocino.blogspot.com/

Post a Comment

  © Free Blogger Templates Columnus by Ourblogtemplates.com 2008

Back to TOP