Statistics Widget for Blogger
Monday, October 6, 2008
Here 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
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
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
- Log in to your Blogger account
- On your Blogger Dashboard, click on the "Layout" link
- 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.
- Scroll down the list and find "HTML/ Javascript" and click on the "+" button
- 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
- 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> - Remember to replace the text in bold "yourblog" with your blog address. Take note to replace it in two locations.
- Your window should look like the image below.
- I have a link back to my blog at the bottom. You are free to remove the credit, if you don't like it
- 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:
That's kinda cool. I might grab one of those...
nice widget...it's is useful for reader and also for owner...
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.
Thanx 4 da tools...
Hi PakciQue,
Thanks.
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.
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.
thanks for this code..
it's working fine on my 3 blogs :) :)
Hi Kim,
Thanks for your comments. I am glad to know that it works fine on your blog.
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
HI Takumi86,
Thanks for linking back to my post.
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
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.
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.
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).
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
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.
thanks a lot,
Hi "_uNt@lented_",
You are welcome.
Thanks so much!
Hi Leigh,
You are welcome. Thanks for taking some time to comment on this blog.
Very Useful!!
Hi Venkatesh,
Glad to know that the widget is useful to you. Thanks.
This blog is very useful for a person who is in the learning process like me..
Hats-off to ur service
nice widget...are you not mind that ia put this post on my blog....thanks before...
http://c3v3n.blogspot.com
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.
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 :(
Hi Vishal,
I apprciate your quick action to include a link to my post. Thanks. Hope we can work together for mutual benefit.
nice widget. I'm using it now on The Mexican Taint
Hi Taint,
I would have been happy if you had left the credit to my blog. Anyway, thanks for using the widget.
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
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!
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.
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.
this is awosome. actually i have been looking for another widget but this is great. keep sharing please :)
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
Its so interesting article..Thanks for sharing..
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
Thank you very much for your work, it works perfectly!
My blog: https://nirocino.blogspot.com/
Post a Comment