Add a Posts Comments and Pages Statistic Widget for Bogger


Statistic for blogger are very important be'coz we can easily track the progress of our visitors but similarly as we want to track our visitors and our visitors also may be wants to track us our posts, pages and comments etc so for this purpose we have a very unique widget for blogger by which ypu can show your visitors that how many post we have written and how many comments we got till yet and the profit will be that if your post will be above than 75 then visitors will love to read your content.




Add Stats Widget in Blogger

  • Login to Blogger > Dashborad
  • Click on Drop Down Menu and select Layout
  • Add a HTML/JavaScript Gadget
  • Paste below code in 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>');
}

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

</script>

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

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


<li><script src="http://www.widgetgenerators.com/feeds/pages/default?alt=json-in-script&callback=numberOfPages"></script></li>
</ul>

<span style="font-size:75%;"><a href="http://www.widgetgenerators.com/" target="_blank" style="color: #FFFFFF">Widgets for Blogger</a></span>


  • Save your Widget.


Make Changes....!

  •  Replace it www.widgetgenerators.com with your own blog link (3 Times)


If Any Problem Comes, Ask in Comments