# Pro Tip: Prevent RUM Collisions on Legacy Sub-Paths

**URL:** <https://community.dynatrace.com/t/pro-tip-prevent-rum-collisions-on-legacy-sub-paths/54835>\
**Category:** Dynatrace Tips\
**Tags:** real-user-monitoring-classic, tips-and-tricks\
**Created:** [February 2, 2026, 6:00am UTC](https://community.dynatrace.com/t/pro-tip-prevent-rum-collisions-on-legacy-sub-paths/54835 "2026-02-02T06:00:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [February 2, 2026, 6:00am UTC](https://community.dynatrace.com/t/pro-tip-prevent-rum-collisions-on-legacy-sub-paths/54835/1 "2026-02-02T06:00:13Z")

</div>

Heya Community,

In large organizations, we often deal with complex web applications where different sub-paths (like /notebooks or /checkout) are managed by different teams using different tech stacks.

Imagine Team A manages the main site [home.dynatrace.com](http://home.dynatrace.com) on a modern stack, but Team B manages [home.dynatrace.com/notebooks](http://home.dynatrace.com/notebooks) on an older version of WebLogic. Following a OneAgent update, you might find that the RUM (Real User Monitoring) JavaScript injection causes a functional conflict on that older sub-path.

If this happens in Production, you can’t afford to lose functionality while waiting for a platform upgrade. You need to stop the injection **immediately** —but there is a common trap most people fall into.

### The Common Mistake: Disabling the Sub-App

Most admins think: _“I’ll just disable monitoring for the ‘Notebooks’ application in Dynatrace or disable injection at the host level.”_

**Why this fails:** If a user starts their journey on the **Home Page** (which is still monitored), Dynatrace starts a user session. To maintain end-to-end visibility, the RUM agent “follows” the user. Even if you’ve “disabled” the sub-app, the injection rules from the parent domain often still apply because the session cookie and headers are already active.

### The Solution: Custom Injection Rules

To truly “silence” Dynatrace on a specific part of your site, you must tell the **main application** specifically where _not_ to go.

**How to do it:**

1. Navigate to your **Main Application** (e.g., the Home Page app) in the Dynatrace UI.
2. Go to **Settings** \> **Injection** \> **Custom Injection Rules**.
3. Click **Add Item**.
4. Set the rule to **“URL contains”** (e.g., /notebooks).
5. Change the rule behavior to **“Do not inject”**.

### Why this matters

By doing this, you ensure that as soon as the user hits that specific path, the RUM agent stands down, preventing any JS conflicts with legacy code.

### A Word of Caution

While this restores your application’s functionality instantly, remember: **this is a workaround, not a permanent fix.**

> **Turning off monitoring and calling it “fixed” is like putting a piece of black tape over your car’s “Check Engine” light.** The light is gone, and you can see the road better, but the underlying issue remains.

Keep this in your back pocket for emergencies, but ensure the legacy teams have a plan to upgrade their stack to stay compatible with modern monitoring!

**Happy Monitoring!  
 [@Maheedhar\_T](https://community.dynatrace.com/user/76275)**
