i wanna create web part that shows all of the report since Sharepoint Web Analytics start to work.
but as far as i know, i have one choice and its SPWeb.GetUsageData() method and this method only return the last 30 days of reports.
I know Sharepoint itself has a webpart for this but i want more info Like Online Users. i know Sharepoint Web Analytics doesn't show list of Users Online.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
|||
|
To capture usage data from a longer time period, you have to modify the settings of your "Web Analytics Service Application". You can find the settings in your service application management, select the application and click "Properties" in the ribbon. You can define a data retention period from one month to 25 month. |
|||||
|
|
Change the retention period with following command:
|
|||||||
|
|
The only way that i came upon with is to reach the data directly from the Analytics Database of the SharePoint and do just reading from "WATrafficAggregationByDate" table. |
|||
|
SPWeb.GetUsageData();as in my environment it is returning anulldatatable. I can see that usage timer jobs are running on my SP 2010 environment. – Sudarshan S V Feb 15 at 11:05