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

masking UEM click on labels (mobile agent)

Hi guys,

Financial customer has mobile application and one of its buttons is showing user account numbers so if user can switch between his accounts.

This mobile application is instrumented with mobile agent , so in AppMon we can see now "touch on account ID ...." with all the accounts number which is not fun form security perspective.

Is there a way to mask the account numbers ?



Dynatrace Pro
Dynatrace Pro

Hi Yos,

it is not possible to mask the auto-user action on the agent side. It is only possible to mask it on the server side (in the rules section of Dynatrace). This feature is on our roadmap.

For the Android platform you can use one of the following workarounds:

  • Another option is to exclude the OnClickListener from auto-instrumentation with the property DTXExcludePackages. Then the agent will no generate the mentioned user action. Instead you can manually generate a user action, which doesn't contain account-specific details.
  • The last option is to override the contentDescription attribute of the mentioned button. The agent will use the specified content description value instead of the button text. I'm not sure if this workaround will be available in future agent versions.

Best regards


Hi Thomas

Thanks for the information!



Maybe giving the button a hardcoded name via the data-dtname attribute would be a working solution too:

this only sounds like a possible solution if the mobile app is hybrid and the buttons are in the JavaScript part, as this only works for the JavaScript agent

Dynatrace Pro
Dynatrace Pro

for iOS you can exlude the instrumentation of button taps by adding this to the Info.plist file:





Hi Patrick

Tanks for complete the vision from IOS prespective