Creation of Custom Event to be used in User Experience Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2025 01:19 AM
Hello,
We are looking to create a custom event to be used in the User Experience Analytics dashboards to track when a user clicks a Quick Link widget on the Employee Centre, portal.
Following, SNAnalytics | ServiceNow Developers we have added the below code to the Client Controller of a clone of the Quick Link widget:
var payload= {};
payload.name = "Click Quick Link";
payload.data = {};
payload.data["Function Name"] = c.data.function_name;
payload.data["User Type"] = c.data.user_type;
payload.data["Company"] = c.data.company_name;
snAnalytics.addEvent(payload);
However, when I go to User Experience Analytics > All Applications > Events - the new event created from the above code is not showing.
Is anyone able to advise on if there are any other steps that need to be followed? The article linked above is not great.
Alternatively if there are any other suggestions on how to achieve reporting on this event.
Thanks,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2025 02:59 AM
Hi @MichaelCreatura Did you fix it facing same issue now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 12:47 PM
I am also curious - did you find where these events are being recorded?