# How to disable mobile app user actions "touch on" capture

**URL:** <https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, mobile-monitoring, data-privacy, user-sessions, request-attributes\
**Created:** [October 23, 2022, 4:00pm UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998 "2022-10-23T16:00:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmedSamy](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AhmedSamy](https://community.dynatrace.com/u/AhmedSamy)\
**Post date:** [October 23, 2022, 4:00pm UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/1 "2022-10-23T16:00:40Z")

</div>

Hi Community,

Kindly I am using android Gradle for mobile user experience, and we had a request to disable the capture of user touch on sensors due to security reasons from code level (and not using masking) for example I don’t want to capture actions like “touch on 1”

Can you please support with the exact Gradle configurations to disable touch on listener sensors?

Should the below configuration work:

---------  
dynatrace {  
&nbsp; &nbsp; configurations {  
&nbsp; &nbsp; &nbsp; &nbsp; sampleConfig {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; userActions {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sensors {

// fine-tune the sensors if necessary  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UserActionSensors {  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Click false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itemClick false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itemSelect false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; }  
---------

Thanks,  
Ahmed

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 23, 2022, 5:12pm UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/2 "2022-10-23T17:12:42Z")

</div>

Hi&nbsp;[@AhmedSamy](https://community.dynatrace.com/user/55717)&nbsp;,

I’d highly recommend using user action masking as described&nbsp;[here](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/mobile-apps/instrument-android-app/instrumentation-via-plugin/monitoring-capabilities#mask-user-actions)&nbsp;.&nbsp;  
You can also exclude certain classes from [autoinstrumentation](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/mobile-apps/instrument-android-app/instrumentation-via-plugin/configure-plugin-for-instrumentation#exclude-classes-and-methods) (PIN code entry for example).

Would that solve your case?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 24, 2022, 7:48am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/3 "2022-10-24T07:48:39Z")

</div>

Hi&nbsp;[@AhmedSamy](https://community.dynatrace.com/user/55717)&nbsp;,

Here is an example for user action masking rule which wa mentioned by&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364).

Both solutions are perfect.

 ![Mizs_0-1666597492180.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/6/864b109bb80ac693f157ed8aceda91b1ac9bd29b.png)

 ![Mizs_2-1666597600373.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/b/fbd91e8b833b8f4d574aa6c99a238ecd1c722119.png)

I hope it helps. Have nice day

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 24, 2022, 8:01am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/4 "2022-10-24T08:01:35Z")

</div>

[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;Well, the user action naming rule just renames the action. But the information is still capture. OneAgent SDK 1.249 includes a feature which masks automatically the user action names if the name may contain sensitive information - if content description (android)&nbsp; or element text is about to be used in the captured name.

---

<div class="post-metadata">

**Author:** ![Thomas\_Wirth1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_wirth1/32/1776_2.png) [@Thomas\_Wirth1](https://community.dynatrace.com/u/Thomas_Wirth1)\
**Post date:** [October 24, 2022, 8:51am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/5 "2022-10-24T08:51:07Z")

</div>

Hey [@AhmedSamy](https://community.dynatrace.com/user/55717),

When you want to **only** deactivate sensors that generate a “Touch on” user action (and keep the other user actions), then you have to use the following configuration:

```java
dynatrace {
    configurations {
        sampleConfig {
            userActions {
                sensors {
                    click false
                    itemClick false
                    itemSelect false
                    menuClick false
                    optionSelect false
                }
            }
        }
    }
}

```

It almost has the same effect as [deactivating user action monitoring](https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configuration/mobile-apps/instrument-android-app/instrumentation-via-plugin/monitoring-capabilities#disable-user-action-monitoring) completely, because the plugin only instruments OnPageChangeListener and OnRefreshListener classes.

But I would also recommend the option(s) suggested by [@Julius\_Loman](https://community.dynatrace.com/user/3364). Masking via the “namePrivacy” options guarantees that the agent will not use any sensitive information for user action monitoring.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 24, 2022, 9:19am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/6 "2022-10-24T09:19:06Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364),

Thanks for the clarification and the information.

Can you help me where can I find the release notes or documnetation for OneAgent SDK 1.249? I would like to forward it for the affected mobile app developers.

Thanks in adavence. Have nice day.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 24, 2022, 9:23am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/7 "2022-10-24T09:23:33Z")

</div>

[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;It’s already in my post 🙂&nbsp;

> **[OneAgent SDK for iOS in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-ios-app/customization/oneagent-sdk-for-ios)**
>
> Enrich mobile user experience monitoring using OneAgent SDK for iOS.

> **[Configure monitoring capabilities of Dynatrace Android Gradle plugin in RUM...](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/mobile-applications/instrument-android-app/instrumentation-via-plugin/monitoring-capabilities)**
>
> Configure the Dynatrace Android Gradle plugin to adjust the monitoring capabilities of OneAgent.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 24, 2022, 9:25am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/8 "2022-10-24T09:25:44Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364),

I’am blind. I have to learn use the communtiy.&nbsp;:joy:

Thnaks.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 24, 2022, 9:29am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/9 "2022-10-24T09:29:27Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364),

Is there any similar solution for iOS?

Thanks in advance.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [October 24, 2022, 10:30am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/10 "2022-10-24T10:30:46Z")

</div>

there are 2 different ways to approach it on iOS:  
\* disable instrumentation of e.g. Button touches by configuring the controls you don not want to get touch actions from - see _DTXExcludedControls_&nbsp;in this help page:&nbsp;[OneAgent for iOS configuration keys in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/ios-configuration-keys)  
\* use custom control titles for dedicated buttons instead of having them autogenerated:&nbsp;[OneAgent SDK for iOS in RUM Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/ios-oneagent-sdk#custom-control-names)

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [October 24, 2022, 11:00am UTC](https://community.dynatrace.com/t/how-to-disable-mobile-app-user-actions-touch-on-capture/36998/11 "2022-10-24T11:00:23Z")

</div>

Hi&nbsp;[@Patrick\_H](https://community.dynatrace.com/user/31862),

Thanks very much your swift reaction and the information.

Have a nince day.

Best regards,

Mizső
