Wednesday, March 30, 2011

Blog Stats [Live]

This is Blog tutorial how to make blog statistic into blog. Just follow the blog guide.

  1. Login blogger
  2. Layout --> Add gadget --> HTML Script
  3. insert this script

    <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://YOURBLOGNAME.blogspot.com/feeds/posts/default?alt=json-in-script&callback=numberOfPosts"></script></li>

    <li><script src="http://YOURBLOGNAME.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script></li></ul>
    <noscript><a href="http://YOURBLOGNAME.blogspot.com" target="_blank">Blogger Hacks</a></noscript>

That's it. ;)

Just change the YOURBLOGNAME into your blog name address.

1 comment:

  1. Simple to see and helpful. I did a little research on the topic and found that most people agree with your blog. Thanks for sharing this fabulous stuff.

    Projector Mount

    ReplyDelete

While comments maybe u would like to download another Blogger Templates Or Tricks ?? :)

Handphone Protector

handphone is the stuff that is always attached in your pocket. This m obile is a common item , but that does not mean it is not w...