End User Monitoring (EUM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracking button click events in browser app

New Poster

Tracking button click events in browser app

Hi,

    Is there way in Appdynamics to track details such that which button the user has tapped in a single page application using Browser RUM ?

Tracking button click events in browser app
3 REPLIES 3
AppDynamics Team

Re: Tracking button click events in browser app

Hi Shan,

 

Not as of now; Our current EUM metrics are based on a Pages & AJAX based approach. We don't typically have a CLICK event. But we have this feature in the roadmap already but its not available in the current product versions. PM is working on prioritizing this so its gonna be part of the future releases but we have no timelines set yet.

 

However as a workaround what you can do is that based on your button clicks, initialize some variable and send that variable as a part of custom data in your application code. 
For example lets say I have a variable varClick. If the button 1 is clicked you can assign value "button1" to it and similarly "button2" or "button3" based on respective button.

Refer to the below do clin for how to add custom ser data to EUM pages:

https://docs.appdynamics.com/display/PRO44/Add+Custom+User+Data+to+a+Page+Browser+Snapshot


Add this variable as custom data and report to eum. So eum will have these custom data as a part of page data. You can use filters in analyze tab to do a selective search of the data corresponding to button1 or button2 or button3.

 

Or in your application code, you could basically generate a VirtualPage (start and end) events as part of the CLICK_handler and that would show up as a Virtual Page navigation within the EUM UI. 

 

Hope this helps.

 

Thank You,

Chitra



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
New Poster

Re: Tracking button click events in browser app

Thanks Chitra for the reply. We are using Browser RUM in an Angular 1.4 Cordova application. I tried to refer how to integrate Browser RUM in a SPA, but couldn't understand much. Can you please help. Should we need to add any code snippet while routing ? How we will track by each page ? 

Highlighted
AppDynamics Team

Re: Tracking button click events in browser app

Hi Shan,

 

You can get the directions for instrumenting an SPA app in our standard docs; Given below are the links for spa 1 monitoring help as well as SPA 2 monitoring help. Please refer to the respective link as suited

 

https://docs.appdynamics.com/display/PRO44/SPA1+Monitoring

https://docs.appdynamics.com/display/PRO44/SPA2+Monitoring

 

Hope this helps. Feel free to write back in case you have queries. 

 

 

Thank You,

Chitra

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.