# RUM: Tagging only your user actions, keeping others anonymous

**URL:** <https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520>\
**Category:** Dynatrace Tips\
**Tags:** real-user-monitoring-classic, tagging, tips-and-tricks\
**Created:** [April 28, 2023, 2:51pm UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520 "2023-04-28T14:51:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 28, 2023, 2:51pm UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/1 "2023-04-28T14:51:30Z")

</div>

Hi,

Sometimes RUM is enabled but tagging users is not allowed for privacy reasons. And you would like to monitor your user actions in target web application but only yours, others must be still anonymous.

If you are in that situation:

1. Open your favorite browser in incognito mode.
2. Going to target application where RUM is enabled.
3. Press F12 in your keyboard or going to Developer tools interface.
4. Go to “Console” tab.
5. Type _dtrum.identifyUser(“Your\_username”)_ and press ENTER.

 ![AntonPineiro_0-1682693266760.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fd4b1a8fc9c7fa5757172d951b428e20fa85b6f6.png)

That session will be tagged with your input tag. It might be helpful for testing or discovery or troubleshooting purposes.

I hope it could help!

Best regards

---

<div class="post-metadata">

**Author:** ![uros\_djukic1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/uros_djukic1/32/37084_2.png) [@uros\_djukic1](https://community.dynatrace.com/u/uros_djukic1)\
**Post date:** [May 12, 2023, 8:12am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/2 "2023-05-12T08:12:23Z")

</div>

Always appreciable this type of sharing. In addition, here is the link detailing a complete list of these JS API functions.

[https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum\_types.DtrumApi.html](https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html)  
A more fleshed out tip, if you want to follow a specific user click (here click button "soumettre: ", possibility to change in the JS application code (requires the development team) as follows:

function submitCockpitAction(caseName)

{

action = dtrum.enterAction(“soumettre:” + caseName);

dtrum.leaveAction(action);

}

Result :

![uros_djukic1_0-1683879100854.png](https://global.discourse-cdn.com/dynatrace/optimized/2X/f/f8784b267b38a3e832382890b5c22a42e7339701_2_690x31.png)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 12, 2023, 8:44am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/3 "2023-05-12T08:44:42Z")

</div>

Thank you!&nbsp;😎

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [April 30, 2024, 5:24am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/4 "2024-04-30T05:24:12Z")

</div>

How about I would like to monitor my user actions in target web application but only specific web server routed by load balancer (4 web server routed by load balancer but only 1 web server that need to be monitored).

Rudy

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 30, 2024, 6:46am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/5 "2024-04-30T06:46:36Z")

</div>

Hi,

I am not sure if that is possible but, what do you want to achieve?

Best regards

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [April 30, 2024, 7:42am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/6 "2024-04-30T07:42:20Z")

</div>

We suspect that the request distribution is not balance enough (poorly done by load balancer). It has something to do with capacity planning (adding 1 more web server or replacing the load balancer)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 30, 2024, 9:41am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/7 "2024-04-30T09:41:19Z")

</div>

Hi,

Service Flow view can help to see how many request are going to which web servers.

If you have all web servers with OneAgent with fullstack, that is monitored out of the box.

Best regards

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [April 30, 2024, 11:58am UTC](https://community.dynatrace.com/t/rum-tagging-only-your-user-actions-keeping-others-anonymous/39520/8 "2024-04-30T11:58:27Z")

</div>

![rudy_h_0-1714478104230.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/675db7bab31bf88a7d96fb7c40084530eb62eac5.png)

Do you know which column in usersession that represents the web server? Or should we add additional properties like in this article ([Filter user sessions based on custom session properties (EAP) (dynatrace.com)](https://www.dynatrace.com/news/blog/filter-user-sessions-based-on-custom-session-properties-eap/))?
