How to create a navigation log in sp_log table for custom Service Portal activity?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 06:15 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
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
