Friday, October 25, 2013

Usage Reports in SharePoint 2013


We do not have Web Analytics feature in the sharepoint 2013. A new feature is introduced to get the site usage reports is called Analytics feature

If you want to view site usage reports of your site or web, Here is the procedure

Site Settings -> Click on Popularity Trends on Site Adminitrsation section -> View Usage Report

Programmatically if you want get the information:

$mysearchApp = Get-SPEnterpriseSearchServiceApplication
$site = Get-SPSite "site url"
$web =  Get-SPWeb "web url"
$myusageData = $mysearchApp.GetRollupAnalyticsItemData(1,[System.Guid]::Empty,$site.ID,$web.ID)


If you are looking at the site collection level

$myusageData = $mysearchApp.GetRollupAnalyticsItemData(1,[System.Guid]::Empty,$site.ID,Guid.Empty)

1 comment: