Hello,
I am working on an application in SP 2013, wherein client is looking for a report to see site hit count, views, unique hits etc for last one year. I have explored both OOTB and custom options.
OOTB - SharePoint 2013 provides Site Usage reports based on web analytic (in Site settings) and displays in excel sheet with daily and monthly graphs. But it shows only last 14 days data. I also checked for Audit Reports in site settings and did all configurations, but that report is not looking good.
Custom - I created a web-part which displays site hits count and also of sub-sites by querying[dbo].[RequestUsage] View in WSS_Logging database. But still it shows data of last 14 days. Then I also changed the retention time from 14 to 31 days(as 31 is the maximum limit) using powershell command "Set-SPUsageDefinition". I have also gone through many tables/views in SP Database, but not finding any suitable table to query to get the desired data.
Please suggest me a way to get site hit count of site collection, sub-sites, list items and individual web-parts on a page of last one year (For E.g. - from Jan 2014 to Jan 2015)..