Export SharePoint Site Analytics

Copper Contributor

Can we export data from /_layouts/15/siteanalytics.aspx?view=19?

I would like to get data on Most Viewed and Most Unique Viewers. Currently, it only shows Past 7 days. There is no way to change it.

Please help.

 

6 Replies
You need to use the office 365 management API for usage and retrieve the data on a schedule and store in your own database, you can then use PowerBI to report on top of that. You need to register an Azure AD app and give it permissions to use this API. If you have a Flow P1 you could use this to query the API on a schedule and SQL Server connector to write to a database

@Alan Marshall, thank you so much. Is there documentation on how to achieve this?

Why do Microsoft make life so difficult? Exporting stats should be basic stuff.

Rob
Los Gallardos

my thoughts exactly

@RobElliott 

Really would like to show it in a power bi report, there should be a direct way to push it to reporting tools like powerbi, or any export method to get the data.