I have list named : "Posts" in Sharepoint 2010 - Blog site, I need to calculate total number of visitors to an indivadual post or item, Using Hit counter webpart I have tried but it shows total number of visitors on the page not to an particular post.

Can anyone share the idea of how to achieve this.

  • Do you want that number as a report available for admin only, or as an additional field displayed on the post itself (for all visitors to see it)? – Evariste Feb 11 '16 at 9:08
  • Additional field to be displayed on the post itself for all visitors to see how may page hit does the item got. – Bagavathi Feb 11 '16 at 9:38

Web Analytics will give you numbers very easily.


For the identity of users you could try using auditing, that will let you see who's accessing the site. Other than auditing you'd need to look at custom code of some sort that runs when a web-part is rendered.


  • Bagavathi stated in the comments he wanted to display the hit counter on the post page, not only get the count as a report info for admin only... – Evariste Feb 12 '16 at 8:33
  • Yes Evariste, you are correct. – Bagavathi Feb 12 '16 at 12:25

That one looks to fit your exact requirements: http://spjsblog.com/2010/02/18/hit-counter-for-sharepoint/. It looks from the description you can differenciate pages by the ID of the "post" item (second parameter of hitCounter: isDispForm).
It's based on JavaScript files to store in a doc lib of your blog site, and a list to create in the blog site as well. The list has to allow read/write access to all users, that's one downside I can see with this solution, but at least you can hide the list; should not be a big deal if this is an Intranet site.
Maybe you'll only have to remove the "Like" part.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.