Is there way in Appdynamics to track details such that which button the user has tapped in a single page application using Browser RUM ?
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:
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.
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 ?
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
Hope this helps. Feel free to write back in case you have queries.