06 Oct 2023 08:37 AM - last edited on 13 Dec 2023 11:15 AM by Ana_Kuzmenchuk
Hello folks!
I am trying to instrument web app with dtrum now and I have simple question.
I want to add additional information to XHR action (for example "click on purchase").
Customer really want to save auto-detection XHR actions instead create custom action.
There is no problem to get actionID when we create custom action with dtrum:
var someactionid = dtrum.enterAction('SomeAction');
var someactionid will have value of our actionId.
With this we can send additional user action property:
function addDoubleProperties(actionId) {
dtrum.addActionProperties(actionId, null, null, dbl);
}
But what can I do in case that this action not custom - just regular normal autodetected XHR action.
I can't use workaround to have user session prop instead user action property. I need to have exactly user action prop.
Thanks.
Regards,
Alex Romanenkov
14 Nov 2024 01:02 PM
@Romanenkov_Al3x - very interesting need. Were you able to come up with any work arounds for this? All I can think of leveraging the action property to capture and set the value per action with the needed clean up rules etc.
15 Nov 2024 01:06 AM
I believe this could be achieved with action listeners detailed here https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#addEnterAct...
There is an example of listener usage here https://community.dynatrace.com/t5/Real-User-Monitoring/The-difference-between-addEnterActionListene...
While this is an old thread, hope this helps!