Is there a way to monitor or audit PA Dashboard usage?

tracydavis
Mega Contributor

I need to know how often some dashboards are being used (if ever), is there a way to monitor usage?

I have the widget statistics but it doesn't give me a clear understanding of who is using the dashboard or how often.

15 REPLIES 15

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi Tracy,



You can navigate to Instance Usage --> Application Usage overview if you are on JAkarta instance.



Regards,


Sachin


Adam Stout
ServiceNow Employee
ServiceNow Employee

If you are on Jakarta (or beyond), Dashboard views are logged in sys_ui_navigator_history along with the reference to the user who viewed it and the time accessed.   These records are secured from most viewers seeing them but if you PA user has access, you can certainly create an indicator source on this table.   The biggest trick is to parse out the sys_id of the dashboard out of the URL field with something like this:



var match = /sysparm_dashboard=([a-z0-9]{32})/g.exec(current.url);


match[1];



Once you have that, you can map it into a breakdown by dashboard and away you go.


Hi Adam,



How would one go about extracting the dashboard sys_id?   As far as I can tell, indicator sources have no scripting field/component.



Thanks!


The source itself can't be a script but the indicators can use a script.  



You indicator script can extract the dashboard sys_id as above then you can use that (in the script) to query the pa_dashboards table and dot hop to get what you want or just use the sys_id for a breakdown on dashboard.