Becky Isserman

I am trying to look for some way to reference the usage data in the object model, so I can pull out the top 3 sites a user hits within a specific site collection. I was wondering if anyone knew of a good reference or had any idea how this can be done. I would assume it would be a webpart that displays the top 3 sites that person hits. A colleague suggested that I use reporting services. I have never used reporting services and would not even know where to begin. Any help would be greatly appreciated.
Sincerely,
Becky I.


Re: SharePoint - Development and Programming Get Top 3 Sites for a Specific User

JDC

Hi,

Did you get any progress on exposing usage reports on web parts

Do you have any hints you would like to share

Thank you so much for your time,

Best Regards,

Jorge Carvalho





Re: SharePoint - Development and Programming Get Top 3 Sites for a Specific User

Janie Pumphrey

I am trying to set this up too ...

Sharepoint has the usage reporting feature so my first step was to enable that, make sure that hits are being logged and make sure I can view usage data on the /_layouts/usageDetails.aspx page. There are steps here:

http://technet2.microsoft.com/Office/en-us/library/5233cf43-6a8f-40cb-9014-0724600e7e381033.mspx mfr=true

Next I am looking at the Microsoft.Sharepoint.Administration namespace ... I see some usage reporting classes, although I'm not sure how to use them and not sure if they do what we need. I wish I could see the code for the built-in /_layouts/usageDetails.aspx page ... it might be a perfect code sample.

If anyone has any code samples let us know.





Re: SharePoint - Development and Programming Get Top 3 Sites for a Specific User

Pritam Dahake

One other thing you can try doing is enable auditing for the site and you canquery the audit logs.

-Pritam





Re: SharePoint - Development and Programming Get Top 3 Sites for a Specific User

Janie Pumphrey

Is it true that auditing only tracks activity for documents Unfortunately I need to track activity for all pages in the site. (Specifically, I need to track the number of hits per day to any part of the site from a certain group of users.)





Re: SharePoint - Development and Programming Get Top 3 Sites for a Specific User

Janie Pumphrey

I think I found it ... take a look at this article. It has a code sample that shows how to get the usage data programmatically.

http://www.15seconds.com/issue/050623.htm

It looks like we will have to filter the results ourselves to remove any irrelevant data ... but it's a start.