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

User Tagging in Dynatrace SAAS showing inappropriate result


Hi Team,

I'm trying to apply user tagging on one of our application which is getting monitored under dynaTrace SAAS

The tag I'm getting in user session is like this, Sirname, Name ( alias ) | Logout but according to regex applied \bEmpId" value="([^"]*) in cleaning rule it supposed to give me only "alias".

The CSS selector result is (I checked it via browser),

<div class="middle-header-content">
Surname, Name ( Alias ) <span>|</span> <a href="Logout.htm" class="logout" data-step="9" data-intro="Click here to Logout"></a>
<a href="Logout.htm" data-step="9" data-intro="Click here to Logout"><img src="images/custom/Logout.png" style=" vertical-align: middle; margin-top: -6px;" alt="logout" title="logout">Logout</a>
<input type="hidden" name="empName" id="empName" value="Sirname, Name ( alias ) ">
<input type="hidden" name="emailAdd" id="emailAdd" value="">
<input type="hidden" name="mobileNo" id="mobileNo" value="4712683461">
<input type="hidden" name="repManagerFullName" id="repManagerFullName" value="">
<input type="hidden" name="EmpId" id="EmpId" value="alias">
<input type="hidden" name="Gender" id="Gender" value="GM">


I don't know why it is showing such abnormal result. Please help.




DynaMight Legend
DynaMight Legend

Tried your HTML code, this CSS selector works for me in Dynatrace (if you need the EmpID as user tag):


Actually, I don't see any reasons to use regex or cleanup rules in your case.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thanks Julius..It worked perfectly fine. No need of writing regex too.

But just to have more information,

What was wrong with my configuration. I have selected appropriate CSS selector, applied correct regex, then why it was showing inappropriate results?

This will help me understand user tagging configuration better as I'm new to dynatrace SAAS.



Always try new settings in private browser window or with cookies cleared. I guess your session was evaluated as existing one, since cookies have been present and you did not call dtrum.endSession().

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

DynaMight Legend
DynaMight Legend

And you you want the "Sirname, Name" from your example as the user tag, you should use this selector:


With the cleanup rule:

(.*) \(.*

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts