Catch actionId with dtrum for autodetected XHR

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

@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.

I believe this could be achieved with action listeners detailed here https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html#addEnterActionListener

There is an example of listener usage here https://community.dynatrace.com/t5/Real-User-Monitoring/The-difference-between-addEnterActionListener-vs/m-p/230078

While this is an old thread, hope this helps!