cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Catch actionId with dtrum for autodetected XHR

Romanenkov_Al3x
DynaMight Champion
DynaMight Champion

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

DT_NGINX_FORCE_UNKNOWN_VERSION_INSTRUMENTATION=1
2 REPLIES 2

ChadTurner
DynaMight Legend
DynaMight Legend

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

-Chad

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

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!

Featured Posts