How to create a navigation log in sp_log table for custom Service Portal activity?

Hemasundar_B
Tera Contributor

Hello Community,

We have a requirement to track user navigation within our custom Service Portal. Specifically, we want to create a record in the sp_log table every time a user navigates to a different page in the portal.

Any guidance, examples, or best practices would be greatly appreciated.

Thanks!

1 REPLY 1

Sanjay191
Tera Sage
Tera Sage

Hi @Hemasundar_B 


This is out-of-the-box (OOB) behavior — ServiceNow automatically creates entries in the sys_log table whenever a user navigates to any portal page, including custom ones. You don’t need to add custom scripts for tracking navigation unless you require additional data or custom logging beyond what sys_log  already captures.


If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You