How To Show Your Live Stat (Blogger)


This post i will show you some tips,and it might improve you blog and attract you visitor..
that useful check it out as below;
It’ll show on your blog like this;

Total Posts: 100
Total Comments: 400

Follow The Step In Below :

  1. Login into Blogger >> go to Layout >> page element and Add Gadget.
  2. Choose the HTML/Script
  3. Copy and paste code in below :
<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>
<font color="black"><script src="http://YOURDOMAIN.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script>
<script src="http://YOURDOMAIN.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></font>

4. Change (YOURDOMAIN) with your domain name,and Save.

0 comments:

Post a Comment