# Extract the username from the CSS

**URL:** <https://community.dynatrace.com/t/extract-the-username-from-the-css/46084>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [June 12, 2024, 1:57pm UTC](https://community.dynatrace.com/t/extract-the-username-from-the-css/46084 "2024-06-12T13:57:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_carreno](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/carlos_carreno/32/28820_2.png) [@carlos\_carreno](https://community.dynatrace.com/u/carlos_carreno)\
**Post date:** [June 12, 2024, 1:57pm UTC](https://community.dynatrace.com/t/extract-the-username-from-the-css/46084/1 "2024-06-12T13:57:07Z")

</div>

Good morning everyone, I need your advice or collaboration to extract the username from an internal page of my company.

I want to extrac “\<!----\>lortiz\<!----\>”

```markup
<div class="ax-navbar-info">
<div class="ax-navbar-info-oficina">
<p style="color:#5b5b5b; margin-left: 10px; font-weight: 500;"><!---->Administración<!----></p>
<p class="navbar-fecha" style="color:#5b5b5b; margin-left: 10px;"><!---->June 12-2024 8:14:09 a. m.<!----></p>
</div>
<div class="ax-navbar-username">
<p style="margin-right: 5px; color: #5b5b5b; font-weight: 500;"><!---->lortiz<!----></p>
<iron-icon style="color: #5b5b5b;" icon="lumo:user" slot="prefix"></iron-icon>
</div>
</div>

```

the answer from the test is when I validate it in the terminal.

![carlos_carreno_0-1718200578412.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/2/9274f3b8e71d0a90bff5e44741acc8fb64bb1c9a.png)

thanks

---

<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:** [August 7, 2024, 7:52pm UTC](https://community.dynatrace.com/t/extract-the-username-from-the-css/46084/2 "2024-08-07T19:52:59Z")

</div>

when you inspect the page, are you able to copy that segment as the CSS and submit that in the user session tagging setting for the given app?

---

<div class="post-metadata">

**Author:** ![tyler\_rowe](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@tyler\_rowe](https://community.dynatrace.com/u/tyler_rowe)\
**Post date:** [August 8, 2024, 1:04pm UTC](https://community.dynatrace.com/t/extract-the-username-from-the-css/46084/3 "2024-08-08T13:04:16Z")

</div>

Can you try a CSS selector property set to

```markup
.ax-navbar-username

```

I think we should be able to pull it directly from the class.
