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
I've written a hit counter script for blogspot bloggers to count page / post views or hits and sharing it with everyone who needs it
to put page views counter in all posts of your blog , follow these steps
Just click on button below to add this counter
Second Method.
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 == "item"'>
<div id='hit-counter'>
<a href='http://csharpdotnetfreak.blogspot.com' rel='follow'>
<script src='http://www.amitjain.co.in/pageview.php' type='text/javascript'/> </a>
</div></b:if>
<div id='hit-counter'>
<a href='http://csharpdotnetfreak.blogspot.com' rel='follow'>
<script src='http://www.amitjain.co.in/pageview.php' type='text/javascript'/> </a>
</div></b:if>
4. Save your template
Third 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://csharpdotnetfreak.blogspot.com/2009/02/blogger-post-page-views-hit-counter.html"><script src='http://www.amitjain.co.in/pageview.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
Have fun
![]() |
||
|
|
![]() |
|
| add to del.icio.us saved by 0 users |










55 comments:
This post has been removed by the author.
wow
Great hack for blogger
i will try it
http://bloggeronline.net
amiT: sorry you, i haved changed to keep the credits and code intat.
Thank you very much.
Please chưck it in http://www.vnpressnet.com/2009/05/thu-thuat-blogspot-tien-ich-em-so-luot.html?showComment=1243851318311#c9203658755502955949
This post has been removed by a blog administrator.
This post has been removed by a blog administrator.
Excellent..I like your work.Seo is a raging fact in these days.As matter of fact traffic is really connected with page rank ,creating and adding new pages to increase a site's total PageRank so that it can be channeled to specific pages, there are certain types of pages that shouldnotbe added. These are pages that are all identical or very nearly identical and are known as cookie-cutters. Google considers them to be spam and they can trigger an alarm that causes the pages, and possibly the entire site, to be penalized. Pages full of good content are a must.Check my BLOG.And get connected to updated SEO TRICKS.
AmiT.Its nice. But a prob.I hope,you clear that.In my blog i have used this.And its working fine [credits to you man] .But the issue is ,i have added "readmore" widget also.So its showing the count only after clicking "readmore".Its not showing views, in the main page.Any idea man,how to make it ok?
@sanker:
Tha's not feasible because of restrictions of blogger , i tried but results were not desirable as blogger doesn't provide too many APIs for coders.
Any way i guess it must be working fine when perticular page loads
Hey buddy. Thnx for visiting my blog. I have to tell you that I have reviewed your pageview counter at my blog but it stoped working, so I removed your link and put other pageview counter. Is it working now???
Greetings from http://www.blogalit.com
@Albanicus:
I was having some issues with hosting provider , so counter was not working for some time ,
Issue is resolved now , and counter is working fine :)
hi! your counter is better, thanks.:))
Thank you amiT jaiN !
hop you find a way to get this count visits not views .
And thank you again for your great blog !
thanks
good job ya
regards
@seema gupta ji and karthik:
Thanks a lot for appreciation :)
This post has been removed by a blog administrator.
Can you plesae give me its open source code?
@Shailesh Bharatwasi:
You can use this page views counter on your blog or site, if you want some changes in displayed text or a custom counter , than feel free to ask, i'll provide you a counter according to your needs :)
thanks for that post
www.savryshare.com
hi there, I already use this one before but it seems that it doesnt count anymore.. If youll check one of my blog pages, youll just see the word 'Views' but the number before it doesnt show anymore....
@Fjordan Allego: Please re-install the counter on your blog again as mentioned above , it will surely work ,
This post has been removed by a blog administrator.
This post has been removed by a blog administrator.
/pageview.php to file plz
Thank you so much for the counter! It's the best one I've seen, and the only one working for my blog. You rock!
@demented dragonfly :
Thanks for the appreciation :)
Publish code which is working!
@Above:
Please let me know which code is not working for you ?
do u have the top post from these widget?
hi.. thanx for code. that works fine. can you modify it so, that everybody can replace the word "view(s)" with some of from his own language?
very nice Blog...
Regards
------------
Film izle | Sohbet | muhabbet
thank for this, just what I've been looking for
@Toadlink.com:
You are welcome [:)]
Keep visiting
Excellent..I like your work.Seo is a raging fact in these days.As matter of fact traffic is really connected with page rank ,creating and adding new pages to increase a site's total PageRank so that it can be channeled to specific pages, there are certain types of pages that shouldnotbe added
(data:post.body/) can not find this html in my Blogspot -> Dashboard -> Layout -> Edit HTML. And can't work stap 4. Plz help me.
mail. jewelfuji@yahoo.com
My site. http://downloadbazarbd.blogspot.com
@Above :
Please follow these steps
Go to Dashboard -> Layout -> Edit HTML > Click on Expand Widget Templates CheckBox
Now search for Data:Post.Body
And follow steps mentioned in article.
Other wise u can click on Add this widget to your blog Button in top of article to add it to your blog automatically, u won't be needing to edit any html code.
and you can drag and place this widget where ever u want in ur blog by going to Layout
do let me know if it solves your problem or not ?
This post has been removed by a blog administrator.
bisa di coba niih
This post has been removed by a blog administrator.
Nice ! =))
manxss<"/co'ol\">
thx for the script..
But I got some problem when opening my blog using Opera 10.
The browser will be not responding.
Can you help me?
My blog is http://rosadora.blogspot.com
Thank you.
It seems to be working fine for me. Took me a while to find just a simple view counter like this for my blog - all the others want to tell you where people viewing you are from, what their IP address is etc.
Thanks
i had a problem with this but i guess i can live with it. thx btw
http://unlimovie.blogspot.com
it work great, thanks a lot
This post has been removed by a blog administrator.
This post has been removed by a blog administrator.
I have pasted in my blog but unable to see any result... And where i will be able to see the counter as it is not visible??? and How can i check it ... My blog is
http://bestptc123.blogspot.com/
i want to use it.is this also applicable to wordpress blogs? thanks
hey i'm having a slight problem.
for some reason, the counter is counting the views of all my pages altogether (i.e. the page view number is the sum of total page views).
my website: http://t20vid.blogspot.com
plz get back to me asap
sir why the counter is not visible to my site after 2500views? please help me to fix the problem. thank you http://www.juan3.com
Hi amiT jaiN,
I am Duong from Vietnam, this is very great script blog entry pageview. I love this script so much, easy to use.
I'd be grateful if you can give out source code file pageview.php
Many thanks,
Duong
This post has been removed by a blog administrator.
i used it in my blog but not work
http://catatanharianfebri.blogspot.com
@ali febriyanto: I've checked your blog and it seems working fine,
please tell me whats not working for you ?
Post a Comment