Export Report of Page Statistics for All Site Pages? (via PowerShell?)

Iron Contributor

I'm being asked to produce a page view report for all pages on a particular site.  I understand that I can view the most frequently viewed pages form Site Usage, but that is only for the last seven days and only the top pages.  There is also the Analytics button under the header of each page, but that has to be gathered one page at a time.  I'm looking to export stats for each page in a report/table format, I assume using PowerShell.  Is that possible?  My searches aren't coming up with anything.

1 Reply
Take a look at how the Graph API expose page statistics. I think you should be able to get those from the Graph and integrate it in a PowerShell script