Track clicks on links on Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 06:56 AM
We are using the HRI Information Links widget on the HR Portal to provide useful HR related links to our customers. Most of these are to exteral websites for Policies, Payroll etc. Our HR Department would like to track when a user clicks on a specific link for reporting. We would like something similar to the data in the Service Portal Log (sp_log) that tracks user views of knowledge articles. Could code be added to the HRI Link widget to track when someone clicks on a link and which link was clicked on?
The code that currently does this for the KBA views looks like this:
$sp.logStat('KB Article View', "kb_knowledge", knowledgeRecord.sys_id, knowledgeRecord.short_description);
Could this be modified to record the link clicks?
Thanks,
Marty
- Labels:
-
Employee Service Center

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 08:12 AM
You can use below solution
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2020 06:48 AM
Thanks Sachin, that solution is close but I was looking to track which specific link was clicked on within a widget. I would also like to add the data to the existing sp_log table.