question

Matt E. avatar image
Matt E. asked ·

User Tagging with XHR request payload

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

user tagging
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Franz S. avatar image
Franz S. answered ·

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


2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Would this be considered a JavaScript Variable?

0 Likes 0 · ·

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.

0 Likes 0 · ·
Patrick H. avatar image
Patrick H. answered ·

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.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.