Saturday, February 28, 2009

blogger page views post view hit counter to count views of post/page


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

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 == &quot;item&quot;'>
<div id='hit-counter'>
&lt;a href=&#39;http://csharpdotnetfreak.blogspot.com&#39; rel=&#39;follow&#39;&gt;
<script src='http://www.amitjain.co.in/pageview.php' type='text/javascript'/> &lt;/a&gt;
</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
www.tips-fb.com
Shout it
Stumble Upon Toolbar
Submit this story to DotNetKicks vote it on WebDevVote.com add to del.icio.us saved by 0 users
Subscribe to Feeds

55 comments:

amiT said...

This post has been removed by the author.


Asian VIP said...

wow
Great hack for blogger
i will try it
http://bloggeronline.net


phattrien@so said...

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


RainMe LeoBellicose said...

This post has been removed by a blog administrator.


solfater said...

This post has been removed by a blog administrator.


sanker said...

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.


sanker said...

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?


amiT
amiT jaiN said...

@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


Albanicus said...

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


amiT
amiT jaiN said...

@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 :)


nakahito said...

hi! your counter is better, thanks.:))


ذؤيب said...

Thank you amiT jaiN !
hop you find a way to get this count visits not views .
And thank you again for your great blog !


Karthik said...

thanks


seema gupta said...

good job ya

regards


amiT
amiT jaiN said...

@seema gupta ji and karthik:

Thanks a lot for appreciation :)


I Caps said...

This post has been removed by a blog administrator.


Shailesh Bharatwasi said...

Can you plesae give me its open source code?


amiT
amiT jaiN said...

@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 :)


savry said...

thanks for that post
www.savryshare.com


Fjordan Allego said...

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....


amiT
amiT jaiN said...


@Fjordan Allego: Please re-install the counter on your blog again as mentioned above , it will surely work ,


jute said...

This post has been removed by a blog administrator.


Anonymous said...

This post has been removed by a blog administrator.


ss said...

/pageview.php to file plz


demented dragonfly said...

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!


amiT
amiT jaiN said...

@demented dragonfly :

Thanks for the appreciation :)


Anonymous said...

Publish code which is working!


amiT
amiT jaiN said...

@Above:

Please let me know which code is not working for you ?


lilaliss said...

do u have the top post from these widget?


Anonymous said...

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?


Anonymous said...

very nice Blog...
Regards
------------
Film izle | Sohbet | muhabbet


Toadlink.com said...

thank for this, just what I've been looking for


amiT
amiT jaiN said...

@Toadlink.com:

You are welcome [:)]

Keep visiting


something new said...

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


Anonymous said...

(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


amiT
amiT jaiN said...

@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 ?


wagithaejr said...

This post has been removed by a blog administrator.


latif said...

bisa di coba niih


hailatifer said...

This post has been removed by a blog administrator.


Magic Storm said...

Nice ! =))


Anonymous said...

manxss<"/co'ol\">


Grace said...

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.


Cassandra said...

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


Anonymous said...

i had a problem with this but i guess i can live with it. thx btw

http://unlimovie.blogspot.com


jmaza37 said...

it work great, thanks a lot


Joseph Vizcarra said...

This post has been removed by a blog administrator.


star said...

This post has been removed by a blog administrator.


Zia said...

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/


styleanywhere said...

i want to use it.is this also applicable to wordpress blogs? thanks


davc said...

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


engineer said...

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


PK.Dương said...

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


andi said...

This post has been removed by a blog administrator.


ali febriyanto said...

i used it in my blog but not work

http://catatanharianfebri.blogspot.com


amiT
amiT jaiN said...


@ali febriyanto: I've checked your blog and it seems working fine,


please tell me whats not working for you ?


About Me

My Photo
amiT jaiN
Hi, I am amiT jaiN Software engineer working on C#.NET and ASP.NET technologies
View my complete profile

Comments

.NET Resources

Find More Articles


Subscribe To Feeds

Subscribe by E-mail

Enter your email address:

Delivered by FeedBurner


Subscribe in your favorite reader

This site is best viewed with || You may get errors in proper display of this site if using Internet explorer


C#.NET Articles and tutorials,ASP.NET Articles - blog by amiT jaiN