I have a SharePoint 2010(Enterprise version) intranet site that uses Windows authentication. I am trying to implement 'Top 3 most visited pages' custom web part across a particular site. This should not count the repeated visits/hits made by a visitor.

In other words, How do I get Total number of unique hits for a page(unique in terms of visitors) ? Even if a user visits the next day, it should not count as a hit, because the user has already visited the page.

Site.GetUsageData() will give me the 'Total Hits' which includes repeated visits by the same visitor. I am looking for 'Total Unique Hits'. Any suggestions ?

  • Total visits (unique) /perpage/perday ??
    – sssreddy
    Commented Oct 12, 2012 at 2:00
  • Total visits (unique) /perpage - not per day, total till date
    – suhas
    Commented Oct 12, 2012 at 8:09

2 Answers 2


Please check Google Analytics .

ELSE 1. I would recommend to have a custom developed webpart and add it to master page. In this way you can track the activities of the user across the site for each page. 2. Maintain a list where you add the user and page name . Write a CAML query to pull the data for top three visitors.

Hope this helps for your logic. Tracking and reporting in sharepoint 2010 ? user accessing what kind of data ?


Unfortunately Microsoft didn't make APIs available that would provide this data. So, without using unsupported methods (i.e. querying the database directly) you wouldn't have a way to do this.

You could try third-party analytics packages that allow you do query their data via JavaScript and display that on the page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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