# How to Divide Single Page App into Multiple Dynatrace Applications?

**URL:** <https://community.dynatrace.com/t/how-to-divide-single-page-app-into-multiple-dynatrace-applications/34051>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-rules, user-actions, application-monitoring\
**Created:** [February 7, 2022, 7:40pm UTC](https://community.dynatrace.com/t/how-to-divide-single-page-app-into-multiple-dynatrace-applications/34051 "2022-02-07T19:40:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael\_2\_kumme](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@michael\_2\_kumme](https://community.dynatrace.com/u/michael_2_kumme)\
**Post date:** [February 7, 2022, 7:40pm UTC](https://community.dynatrace.com/t/how-to-divide-single-page-app-into-multiple-dynatrace-applications/34051/1 "2022-02-07T19:40:20Z")

</div>

We have a single page web app that must be divided logically into multiple applications in Dynatrace.&nbsp; There is a parent app and multiple child apps, for example: [test.com/parent](http://test.com/parent) would be one, and [test.com/parent/child](http://test.com/parent/child) would be another.&nbsp; We’ve configured app detection rules for each app like that.

What we’re seeing is when the user navigates from /parent to /parent/child there isn’t a page load, so the js agent retains the parent app configuration until a page load occurs, and any actions taken on /parent/child end up within the parent app until that page load occurs.&nbsp; The same thing occurs when a user navigates from a child app to the parent app, or between child apps.

Is there any way to divide this app with more reliable action assignment while still using automatic injection?&nbsp; If not, what other methods are available?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [February 8, 2022, 1:38pm UTC](https://community.dynatrace.com/t/how-to-divide-single-page-app-into-multiple-dynatrace-applications/34051/2 "2022-02-08T13:38:04Z")

</div>

What if you set the application detection rules to be as the following:

1 - If the URL Matches [Test.com/Parent/Child](http://Test.com/Parent/Child)

2- If the URL Matches [Test.com/Parent](http://Test.com/Parent)

That should do it. Please share the screen shots you have if possible for the application detection.
