14 Aug 2023 11:07 AM - edited 14 Aug 2023 11:14 AM
Hi
I'm requested to provide some user session reporting based on data found in the user-agent, and I was wondering if there is a feature to extract an attribute from user sessions, and tag the individual session to provide a foundation for the requested reporting?
If anyone could point me in the right direction, it would be greatly appreciated.
Best regards
Solved! Go to Solution.
14 Aug 2023 12:25 PM
Yes you can. The first step is you'll need to define a request attribute in your Settings>Server-side service monitoring> Request Attributes. Then add in a new attribute and define out the criteria. For example you could pull out IP, o define the domian via the URL etc...
Once that is completed and the Attribute is defined and saved, navigate to your desired front end application in Dynatrace, Click Edit> Capturing> Usertag and select Add user tag rule, then select the request attribute function.
Very similar to this, but you'll be looking at the user tag segment at the end: https://community.dynatrace.com/t5/Product-ideas/Ability-to-sort-by-Domain-from-User-Sessions/idi-p/...
14 Aug 2023 12:49 PM
Hi Chad
Thank you for pointing me in the right direction. I managed to create a working request attribute, but I already have a user tag configured for the specific applications user session, and I dont want to overwrite it with the user-agent info. Im currently trying to make it work as a user-session property.
Best regards
14 Aug 2023 01:04 PM
Perfect, that link show you how to add it as a session property. Also Tags are based on a priority level. So if you add that RA in as the second line item, when your first tag rule isn't applicable, it will default to the second rule and apply it if applicable
14 Aug 2023 02:15 PM
It worked! User sessions are tagged with the user-agent request attribute now - thank you so much.
14 Aug 2023 02:29 PM
You are very welcome! happy to help 🙂