# userTagging in Application

**URL:** <https://community.dynatrace.com/t/usertagging-in-application/14243>\
**Category:** Real User Monitoring\
**Tags:** user-sessions\
**Created:** [July 27, 2018, 3:41pm UTC](https://community.dynatrace.com/t/usertagging-in-application/14243 "2018-07-27T15:41:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshinde](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pshinde/32/10356_2.png) [@pshinde](https://community.dynatrace.com/u/pshinde)\
**Post date:** [July 27, 2018, 3:41pm UTC](https://community.dynatrace.com/t/usertagging-in-application/14243/1 "2018-07-27T15:41:53Z")

</div>

Hi All,

We want to use userTagging but not sure what should be used in tag . I got below element from my Page. Can somebody help to user stand whether it should be meta data tag or CSS selector and what value I should use example input name = USER something

\<table border=“0” cellspacing=“0” cellpadding=“0”\>\<tbody\>\<tr\>\<td\>\<input name=“USER” id=“singlepoint-username” style=“width: 150px;” type=“text” maxlength=“256” autocomplete=“off”\>\</td\>

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [July 27, 2018, 4:49pm UTC](https://community.dynatrace.com/t/usertagging-in-application/14243/2 "2018-07-27T16:49:22Z")

</div>

Hi Prashant,

There’s really good documentation online for CSS selectors here [Selectors | jQuery API Documentation](https://api.jquery.com/category/selectors/)

And you can test your selector by opening dev tools in Chrome, switching to the console tab, and running document.querySelector() function inside it. If it returns your element, then Dynatrace will also find it.

 ![17766-sample.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5405d479f9e0837d4a5474010b896e0ca1331dd1.png)

In your case, I would try with input#singlepoint-username

Best regards,

Radu

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [July 30, 2018, 9:21am UTC](https://community.dynatrace.com/t/usertagging-in-application/14243/3 "2018-07-30T09:21:44Z")

</div>

Hi Radu,

When we check .navTxt\>label we get a long answer:

![17780-how-to.png](https://global.discourse-cdn.com/dynatrace/optimized/3X/1/d/1d4e50fde9827ad6c6a4f0565db5af3ea5c5e8c1_2_690x43.png)

Is there a way get the value of title?

Yos

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [July 30, 2018, 9:42am UTC](https://community.dynatrace.com/t/usertagging-in-application/14243/4 "2018-07-30T09:42:10Z")

</div>

Hi Yos,

I should’ve mentioned this. There is a long answer because document.querySelector() will return in the console the entire element as it appears in the HTML of the page. However, when Dynatrace extracts a user tag based on the selector, it will always show only the inner text of that element. So, in the example of your screenshot, Dynatrace would get the user tag from that element as “Welcome S140\_qa2” (because that’s the inner text of that element).

Regards,

Radu

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [July 30, 2018, 10:12am UTC](https://community.dynatrace.com/t/usertagging-in-application/14243/5 "2018-07-30T10:12:09Z")

</div>

Hi Radu,

We have tried it (.navTxt\>label) out already with no luck the session are not tag

Yos
