New answers tagged site-usage
This blog has the answer to your question. The code generates site hit reports for the past 30 days. If you review the code given in this blog then I believe it meets your needs. Report for site hit count in SharePoint The other alternate is to use an available sandbox solution on MSDN code: Create Custom hit counter in SharePoint 2010 using Sandbox ...
Top 50 recent answers are included