Creation of Custom Event to be used in User Experience Analytics

MichaelCreatura
Tera Guru

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);

MichaelCreatura_0-1736327673574.png

 
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 

2 REPLIES 2

preethigovi
Tera Contributor

Hi @MichaelCreatura  Did you fix it facing same issue now.

CCSF-Syd
Tera Expert

I am also curious - did you find where these events are being recorded?