# User actions on mobile device

**URL:** <https://community.dynatrace.com/t/user-actions-on-mobile-device/45338>\
**Category:** Real User Monitoring\
**Tags:** user-actions, mobile-monitoring\
**Created:** [April 29, 2024, 12:27pm UTC](https://community.dynatrace.com/t/user-actions-on-mobile-device/45338 "2024-04-29T12:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TCTM](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@TCTM](https://community.dynatrace.com/u/TCTM)\
**Post date:** [April 29, 2024, 12:27pm UTC](https://community.dynatrace.com/t/user-actions-on-mobile-device/45338/1 "2024-04-29T12:27:08Z")

</div>

Hi,

I’ve looked over the Android Instrumentation document and have integrated it with Gradle in my App, and the dynatrace dashboard is displaying results.

It appears that the only way to send User Actions is via Compose (Our UI is in Compose) via the contentDescription or DTActionName attribute, is there a way to send User Actions via a method call instead?

For example it is common practise to have a sendEvent(event: Event) method that can be overridden that is provided by an analytics framework. Is that an option instead of sending User Actions via Compose?

Thank you for taking the time to read my question.

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [April 29, 2024, 4:34pm UTC](https://community.dynatrace.com/t/user-actions-on-mobile-device/45338/2 "2024-04-29T16:34:42Z")

</div>

HI&nbsp;[@TCTM](https://community.dynatrace.com/user/74983)

Dynatrace supports the auto-instrumentation of&nbsp;[Jetpack Compose](https://developer.android.com/jetpack/compose)&nbsp;UI components. OneAgent creates user actions based on the UI components that trigger these actions and automatically combines user action data with other monitoring data, such as information on web requests and crashes.&nbsp;

> **[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.

When you interact in the app UI, Dynatrace create a user action connect with the method calls in backend. 💪  
You use a “enterAction”, when you want to create a Manual User action and put inside web request ( backend) .

Let me know if it is useful to you, maybe you can explain with an example what you are needing.

---

<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:** [April 30, 2024, 1:03pm UTC](https://community.dynatrace.com/t/user-actions-on-mobile-device/45338/3 "2024-04-30T13:03:52Z")

</div>

> [@TCTM](https://community.dynatrace.com/user/74983)&nbsp;wrote:  
> It appears that the only way to send User Actions is via Compose (Our UI is in Compose) via the contentDescription or DTActionName attribute

content description and dtActionName are only used to determine the user action name. They are not responsible for generating a user action. If a user interaction is monitored or not depends on your settings in the Dynatrace Android Gradle plugin and if Dynatrace provides auto-instrumentation support for this component.

> [@TCTM](https://community.dynatrace.com/user/74983)&nbsp;wrote:
> 
> is there a way to send User Actions via a method call instead?

Yes, you can create custom user actions via the Dynatrace#enterAction API. [Here](https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/instrument-android-app/instrumentation-via-oneagent-sdk/oneagent-sdk-for-android#user-action-monitoring) is a link to the documentation.

> [@TCTM](https://community.dynatrace.com/user/74983)&nbsp;wrote:
> 
> For example it is common practise to have a sendEvent(event: Event) method that can be overridden that is provided by an analytics framework. Is that an option instead of sending User Actions via Compose?

I’m not sure, if I have understood this part correctly. Currently, it is only possible to generate custom user actions and enrich them with custom values. It is not possible to report user interactions in a different format.

When RUM will be available in the Dynatrace Platform, it will be possible to report generic events, where you can decide the structure of the events.
