In SharePoint 2010 and 2013, we can get the analytics data using analystics services application. In this blog, I have given the powershell commands to retrieves the aggregated analytics item data rolled up to a given scope or site collection.
- $searchAnalytics = Get-SPEnterpriseSearchServiceApplication
- $Site = Get-SPSite http:
- $result = $searchAnalytics .GetRollupAnalyticsItemData(1,[System.Guid]::Empty,$Site.ID,[System.Guid]::Empty)
- $Date = Get-Date "2014-12-20"
- $result.GetHitCountForDay($Date)
- $result.GetHitCountForMonth($Date)
Happy SharePointing :-)