Out of the custom apps and web parts listed in the tenant app catalog, is it possible to get usage analytics for those custom apps and web parts?
Ultimately, I am looking to see which web part gets loaded the most on the tenant-wide level. It would also be nice to see the site collection and subsite scope too.
I am looking for a solution that does NOT include modifying the code for the web parts.
Please note, I have Google Analytics actively running in my tenant.
Ex, In your tenant, the "Custom Events" web part was loaded 1234 times over the last 30 days. The "Custom Profile Image" web part was loaded 200 times over the last 30 days.
- Add a unique server call in the custom code of each web part and analyze the traffic/requests.
- Use SharePoint analytics or Google Analytics to find the most popular pages, then leverage the
?maintenancemode=truequery string to find the web parts on those popular pages.
- Out of a list of the top viewed site pages, use the REST API to get the page content from
CanvasContent1. The data includes the ID's for all the web parts on the page. Then you can convert the ID's for each web part to their alias name/title.