# Change the URL of RUM injection

**URL:** <https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [October 7, 2024, 12:21pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180 "2024-10-07T12:21:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [October 7, 2024, 12:21pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/1 "2024-10-07T12:21:34Z")

</div>

Hi,

I ve been asked if it is possible to change the url of get request that is downloading the RUM js to MyApplication.

[04/Oct/2024:16:19:04 +0200]|-|www.MyApplication.be|-|GET /abedt/ruxitagentjs\_ICA7NVfqrux\_10299241001084140.js HTTP/1.1|200|84190|0

is it possible to make it www.custom.be&nbsp;but still linked to&nbsp;MyApplication ?

Regards.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 7, 2024, 12:34pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/2 "2024-10-07T12:34:05Z")

</div>

Hello&nbsp;[@mhlamine](https://community.dynatrace.com/user/41730)

1. If the RUM data is flowing to My web application which is the default placeholder for RUM Signals, transfer the data to another application or create detection rules based on the domain or Host.
2. If you have concern regarding where the JS Tag or RUM modules are injected in the application, you can check the attached example to simulate as per your actual scenario.

**You can change the directory where the JS tag injected**

 ![2024-10-07_16h26_17.png](https://global.discourse-cdn.com/dynatrace/original/1X/93d98d9bc658f2223b111e051a64ddf55651e887.png)

 ![2024-10-07_16h29_00.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/b/6b318abc3e4ebf72b84dec9c9d219fe09e04fc45.png)

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![DynaWiz](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@DynaWiz](https://community.dynatrace.com/u/DynaWiz)\
**Post date:** [October 7, 2024, 12:37pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/3 "2024-10-07T12:37:04Z")

</div>

Dear&nbsp;mhlamine,

you can assign application by URL or HOST in settings-\> web and mobile monitoring → application detection.  
You can control PATH of RUM agent injection by going to your application-\>edit-\>capturing-\>Advanced setup

Best Regards

Michał

---

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [October 7, 2024, 12:51pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/4 "2024-10-07T12:51:19Z")

</div>

suppose my application url begins with [www.easytravel.com](http://www.easytravel.com)

and my detection rule is defined accordingly

if i do not set any url path&nbsp; the ruxitagent will be injected with

[https://www.easytravel.com/ruxitagentjs\_…](http://www.easytravel.com)

and if&nbsp;modify the url path it can be another url?

[https://www.anotherUrl.com/test/ruxitagentjs\_](https://www.anotherUrl.com/test/ruxitagentjs_)…

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 7, 2024, 1:02pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/5 "2024-10-07T13:02:25Z")

</div>

Hi&nbsp;[@mhlamine](https://community.dynatrace.com/user/41730)

- Detection rule is good to start with or contain the highlighted pattern&nbsp;[www.easytravel.com](http://www.easytravel.com/)&nbsp;to correlate the RUM data with the app no issue.
- ruxitagent will be injected in the page header, you can inspect the website and search for the ruxitagent you will find exactly where it’s injected and then you can change it if required.

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [December 16, 2024, 12:00pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/6 "2024-12-16T12:00:42Z")

</div>

Hi&nbsp;[@mhlamine](https://community.dynatrace.com/user/41730)! Did you manage to solve this one? 🙂

---

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [December 16, 2024, 12:14pm UTC](https://community.dynatrace.com/t/change-the-url-of-rum-injection/48180/7 "2024-12-16T12:14:10Z")

</div>

Hello,

Yes we are now using manual injection (code snippet async) and private cdn to serve the javascript.

Regards.
