How To Add Post/Page Views Counter to Blogger

Posted by Lasantha Bandara File Under : post, widget 8 Comments

This trick is very important if you want to show your blogger post page views to your visitors.I found this tip from here.

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Click on "Expand Widget Templates"

3.Scroll down to where you see below code:

<div class='post-header-line-1'/>

4.Now below code and paste it just below the above code.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='hit-counter'>
<a href='http://csharpdotnetfreak.blogspot.com' rel='follow'/>
<script src='http://www.amitjain.co.in/pageview.php' type='text/javascript'/>
</div></b:if>

NOTE: If you can't find <div class='post-header-line-1'/> in your template paste above code just before <data:post.body/> .

5.Now save your template and you are done.

8 thoughts on “How To Add Post/Page Views Counter to Blogger

  1. Here's the updated version. You can use it to display how many times individual post was viewed in your home page.

    http://freeincomeopportunities.blogspot.com/2010/01/blog-post-view-counter-in-home-page.html

  2. for me, it works. Is it possible to change the language displayed (e.g. instead oа "15 Views" to display "15 показов"?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.