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

User Tagging with XHR request payload

matt_evanson1
Organizer

Can we use XHR request payload values for user name taggin? If so, what would the configuration look like? Thanks

4 REPLIES 4

franz_soengen
Inactive

Hi Matthew,

if the user name is loaded into a JavaScript Variable you may be able to retrieve it from there.

Another possibility is using the JavaScript API and calling dtrum.identifyUser() after the request.

best regards

Franz

Would this be considered a JavaScript Variable?

Which kind of Storage is this? It looks like Local or Session Storage. That is of course accessible by Javascript functions but I don't think Dynatrace accepts a function call here.

pahofmann
DynaMight Guru
DynaMight Guru

Unfortunately you can't use the payload of an XHR Request for tagging.

If the value is not available via a CSS selector, Cookie, JavaScript variable or a Meta Tag, the only way is to use the JavaScript API to set the user tag. If you choose that route be sure to evalute if the agent is loaded before performing the call to identify the user.

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Featured Posts