Service Portal Widget for Visitor Count

Community Alums
Not applicable

Hello Community,

 

I have a requirement to add a daily visitor counter widget to the self-service portal (sp).

Is this possible and if so what is the process to adding this widget?

4 REPLIES 4

Rajat Gupta6
Tera Guru

There is an OOB table called as "Service Portal Login Entries" or sp_log which could be used for tracking the users who have accessed the portal. It would give you an entry for each page accessed by the user and you could report on it further.

URL: https://INSTANCE_NAME.service-now.com/sp_log_list.do

 

If You are unable to see the user field in the report or in the sp_log list, there are two read ACLs (Access Control Lists) that restrict access for everyone.

Please check the following ACLs:

  1. https://instanceid.service-now.com/nav_to.do?uri=sys_security_acl.do?sys_id=95601d865330111066c1ddee...
  2. https://instanceId.service-now.com/nav_to.do?uri=sys_security_acl.do?sys_id=ae1f49465330111066c1ddee...

In these ACLs, remove the role "nobody" and add the roles "admin" or "ITIL" to enable access for your reporting purposes. Once the changes are made, you should be able to see the user field in the reporting.

Thank you.

Please accept my solution if it works for you and thumps up.

Community Alums
Not applicable

Thank you.. I have created the report, but how do I create a widget to be displayed on the service portal that shows the number of times the portal has been visited?

Carleneqww
Tera Contributor
 

Yes, it's possible to add a widget to your blog. Go to your blog’s dashboard, navigate to the “Layout” or “Appearance” section, select “Add a Widget” or similar, and paste the widget code or choose from available options. Save and preview your blog to see it live.

Rajat Gupta6
Tera Guru

You can use the 'Report' widget available OOB to embed the report on your portal. 

 

https://instancexxx.service-now.com/now/nav/ui/classic/params/target/sp_widget.do%3Fsys_id%3De41aa2d...

 

Please accept my solution if it works for you and thumps up.