Don't Miss

How to Add a Simple Blog Statistics Widget to Blogger

By Zohaib Liaqat - 1 Comment
This is a Simple Blog statistics widget for your Blogger Blog. This widget shows Total number of Posts and Comments of your Blog. You can add this widget to your Blog's Sidebar and let your visitors to know about the total number of posts and comments that are published on your blog. This widget displays your blogs total number of posts and comments as text. Follow the steps below to add this widget to your Blog

Adding Simple Blog Statistics Widget to Blogger 

Step 1. Log in to your Blogger Dashboard
Step 2. Go to Layout >> Click on Add a Gadget and select HTML/JavaScript Gadget from the list of Gadgets
Step 3. Now Copy the below code and Paste it in the HTML/JavaScript Widget Box


<script type="text/javascript">
function bgtnumberofposts(json) {document.write('Total Posts : ' + json.feed.openSearch$totalResults.$t + '<br/>');}
function bgtnumberofcomments(json) {document.write('Total Comments : ' + json.feed.openSearch$totalResults.$t );}
</script>
<script src="http://www.blogolect.blogspot.com/feeds/posts/summary?alt=json-in-script&callback=bgtnumberofposts"></script>
<script src="http://www.blogolect.blogspot.com/feeds/comments/summary?alt=json-in-script&callback=bgtnumberofcomments"></script>
<a href='http://www.blogolect.blogspot.com'><img style='border:0;background:none;' src='http://img1.blogblog.com/img/blank.gif'/></a>

Customization :
  • Replace www.blogolect.blogspot.com with your Blog/Website URL Address
Step 4. Hit the Save Button
And you're Done! 

---> Do you like this article? Share it with your friends/followers and subscribe to this blog now, for you to stay updated with our latest posts.

Tags:

1 comment to ''How to Add a Simple Blog Statistics Widget to Blogger"

ADD COMMENT