Monitor usage of Views for cleaning up bloated app

Is there a way to see usage statistics of each View in my app? I want to reduce the number of views as the menu is getting bloated, so I hope to get some usage statistics.

Solved Solved
0 3 53
1 ACCEPTED SOLUTION

You can build a usageStats table, with columns corresponding to your views, and use them as counters. Then you can replace every action that leads to any of your views with a composite action that first increments the relevant counter in the usageStats table, then navigate the user to the view. 

View solution in original post

3 REPLIES 3

You can build a usageStats table, with columns corresponding to your views, and use them as counters. Then you can replace every action that leads to any of your views with a composite action that first increments the relevant counter in the usageStats table, then navigate the user to the view. 

Thank you for that solution.

Do you think it would noticeably affect the speed of the app?

No. Turn on "Delayed Sync" just in case. Also, you can choose to turn on/off this monitoring at will by setting some global flag in another table and run this counter-increment action only if this flag is true.

Top Labels in this Space