# Android APP Auto Instrumentation & Detection

**URL:** <https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring, user-sessions\
**Created:** [October 13, 2020, 4:10pm UTC](https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552 "2020-10-13T16:10:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_mohamed-s](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Ahmed\_mohamed-s](https://community.dynatrace.com/u/Ahmed_mohamed-s)\
**Post date:** [October 13, 2020, 4:10pm UTC](https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552/1 "2020-10-13T16:10:47Z")

</div>

Hi All,

Kindly we have successfully integrated SDK to our android app (Auto instrumentation) and we are currently receiving app user sessions.

But we are facing below issues:

- User actions name are not easy to understand as it has many “Loading page” and “Touch on image”

- Current user actions counts don’t match our normal traffic, How can i validate my counts?

- What is the user session query to get user actions as below query didnt help me and responses are not correct

- How can we get specific journey KPI, example: for home page (number of users, duration)

- Some of user actions pages “Loading of my page” & “Touch on text” have internal requests “Display my page”

- Is there a recommended user session queries that I can use for my app dashboard as a presentation for our CIO.

I really need your support.

Thanks,

Ahmed

---

<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 13, 2020, 4:31pm UTC](https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552/2 "2020-10-13T16:31:19Z")

</div>

Hey Ahmed,

I assume you are using the Dynatrace Android Gradle plugin to auto-instrument your app. [This documentation section](https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-monitoring#user-action-naming) explains the logic that the agent uses to determine the user action name for the “Touch on” actions. The “Loading \<activity\>” user actions are generated, when a new activity is (re)displayed without a (monitored) user interaction.

You can customize the user action names by using the [Dynatrace.modifyUserAction](https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-monitoring#extend-and-modify-user-actions) method call.

---

<div class="post-metadata">

**Author:** ![Ahmed\_mohamed-s](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Ahmed\_mohamed-s](https://community.dynatrace.com/u/Ahmed_mohamed-s)\
**Post date:** [October 15, 2020, 11:30am UTC](https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552/3 "2020-10-15T11:30:09Z")

</div>

Thank you, we have disabled user actions in configuration and now all touches are cleared and only pages are displayed .

But also we have misunderstanding in the user actions:

1- Loading application action has multiple sub user actions “App start, display splash, display dashboard” however some time they are loaded in separate actions (Loading splash and loading dashboard activity)

2- How can I get number of user actions per page and average duration.

Thanks,

Ahmed

---

<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 15, 2020, 12:15pm UTC](https://community.dynatrace.com/t/android-app-auto-instrumentation-detection/20552/4 "2020-10-15T12:15:33Z")

</div>

“App start, display splash, display dashboard” are [lifecycle events](https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-monitoring#lifecycle-monitoring). A lifecycle event is always part of user action. When you have a button and the button generates an intent to start a new activity, then you will have a “Touch on \<button\>” user action which has a lifecycle event “Display \<new activity\>” as child element. The agent will add additional data (like web requests) to the user action, to provide a better overview of the impact from the button click. When there is no monitored user action, then the agent will generate a new user action based on the first activity (“Loading \<new activity\>”). This user action is needed to aggregate the lifecycle event and other data (as web requests).  
In the case of the splash screen scenario, the agent assume that both lifecycle events belong together and therefore will aggregate them if the time constraints are fulfilled. When the behavior is inconsistent, then you can adjust the default time settings.

> 2- How can I get number of user actions per page and average duration.

I’m not an USQL expert.
