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
![](http://2.bp.blogspot.com/_Ef7AKnB3XSQ/SSks0tL4ZzI/AAAAAAAAAyA/3H6TJln2PoA/s400/Blog-Tips-Statistics-Widget-Blogger.jpg)
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.
![](http://1.bp.blogspot.com/_Ef7AKnB3XSQ/SSks0tALSeI/AAAAAAAAAyI/nZRfF57MwvE/s400/Blog-Tips-Statistics-Widget-Blogger1.jpg)
4. Scroll down the list and find "HTML/ Javascript" and click on the "+" button
![](http://1.bp.blogspot.com/_Ef7AKnB3XSQ/SSks1DdlAlI/AAAAAAAAAyQ/GmNTVSQ6TUg/s400/Blog-Tips-Statistics-Widget-Blogger2.jpg)
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://techtasks.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>
7. Remember to replace the text in bold "yourblog" with your blog address and [ with < . There are two locations you need to replace.
0 comments:
Respects for your's Questions & Opinions