# Filtering specific URLs in Android RUM

**URL:** <https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions, mobile-monitoring\
**Created:** [May 12, 2023, 3:20pm UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726 "2023-05-12T15:20:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietro](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pietro](https://community.dynatrace.com/u/pietro)\
**Post date:** [May 12, 2023, 3:20pm UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/1 "2023-05-12T15:20:33Z")

</div>

I would like to filter specific requests that are independent of user actions like keep-alives and external analytics tools.

Currently any web-request happening after an action extends the length of the action even though a specific page of the application has already loaded for the user.

I found this for iOS&nbsp;[Solved: How to disable monitoring on particular domain or url - Dynatrace Community](https://community.dynatrace.com/topic/123624)&nbsp;I understand how to use it but I feel the documentation should have some examples.

For Android I was unable to find a similar setting to exclude only some URLs from RUM data.

Is there any reference on the documentation I missed?

---

<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:** [May 14, 2023, 4:31pm UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/2 "2023-05-14T16:31:43Z")

</div>

As far as I know, you are right and Android Gradle Plugin does not (yet) have this feature. Perhaps&nbsp;[@paul\_kapeller](https://community.dynatrace.com/user/53816)&nbsp;or&nbsp;[@Patrick\_H](https://community.dynatrace.com/user/31862)&nbsp;can provide more information.

---

<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:** [May 15, 2023, 8:07am UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/3 "2023-05-15T08:07:33Z")

</div>

I can confirm that a similar option is not available for the Dynatrace Android Gradle plugin.

You could deactivate monitoring for the external analysis tool via the [exclude feature](https://www.dynatrace.com/support/help/shortlink/dynatrace-android-gradle-plugin-instrumentation#exclude-a-list-of-packages-classes-and-methods-via-the-packages-classes-and-methods-properties). Therefore you have to determine the main package(s) of this library and specify it in the plugin configuration. Then the plugin will skip these classes in the instrumentation step.

---

<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:** [May 15, 2023, 8:22am UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/4 "2023-05-15T08:22:50Z")

</div>

[@Thomas\_Wirth1](https://community.dynatrace.com/user/35396)&nbsp;would this really apply also to network requests only? So for example if an autogenerated user action has attached REST calls and also includes requests to 3rd party services such as Crashlytics - can I exclude the crashlytics requests just be excluding the Crashlytics classes?

Never tried it, but until now I thought the exclude feature applies to instrumentation only (capturing autogenerated user actions) and network requests are captured by the webrequest sensor level.

---

<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:** [May 15, 2023, 9:26am UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/5 "2023-05-15T09:26:29Z")

</div>

The exclude rules are applied to all auto-instrumentation features, including web request monitoring. The main goal of this feature is to customize instrumentation to avoid problems with invalid or unsupported class files. As side effect, it can also be used to filter monitoring data.

For features like web request monitoring, this can be a little bit more tricky, because you have to determine in which package/classes the web request are generated and executed. Based on your example, you would have to determine if the web requests are executed within the Crashlytics library or its transitive dependencies.

---

<div class="post-metadata">

**Author:** ![pietro](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@pietro](https://community.dynatrace.com/u/pietro)\
**Post date:** [May 16, 2023, 2:16pm UTC](https://community.dynatrace.com/t/filtering-specific-urls-in-android-rum/39726/6 "2023-05-16T14:16:32Z")

</div>

Thank you,

I’ll try this approach as soon as possible.
