How to add a page view counter to your blog

Views:



Page post view or post views hit counter to count how many times any post or article on blogspot blog has 
been read. Several times bloggers like to count how many times any post or articles on blog has been read.

But blogger doesn't provide any way for counting page views or any post hit counter widget



To put page views counter in all posts of your blog , follow these simple steps:

1. Login to Blogspot -> Dashboard -> Layout -> Edit HTML

2. click on expend widget Templates

3. find below mentioned line of code
<p><data:post.body/></p>
Now paste below mentioned code above this line

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='hit-counter'>
&lt;a href=&#39;http://www.csharpaspnetarticles.com&#39; rel=&#39;follow&#39;&gt;
<script src='http://amitjain.in/pageviews.php' type='text/javascript'/> &lt;/a&gt;
</div></b:if>

4. Save your template
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
Alternate method:
If you don't want to edit html code than you can put this counter in sidebar of your blog. 
For this Go to Layout > Click on Add a Gadget 
Select HTML/Javascript
Now copy and paste below mentioned code in the box

<a href="http://www.csharpaspnetarticles.com"><script src='http://amitjain.in/pageviews.php' type='text/javascript'/></a>
Click on Save.
Test the post views counter, leave me a comment if you like it or having any problems in installing it .

Enjoy Blogging...!!!

Enhanced by Zemanta
Like "Jitu's Pensieve" on Facebook
×