Track clicks on links on Portal

Marty Bright
Giga Expert

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

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

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.