Showing results for 
Show  only  | Search instead for 
Did you mean: 

CSS selector for user tagging

Dynatrace Mentor
Dynatrace Mentor

Hey guys,

I'm in the midst of deploying Dynatrace Managed for a customer and I'm not really familiar with the CSS part for user tagging. We have identified the CSS element which contains the user name, but I'm just not too sure if the configuration is correct. Could you help me to verify?

As attached is a screenshot, and the highlighted part is the user name we want to capture. Would "#navTabButtonUserInfoText navTabButtonUserInfoWorker@title" work? As I will not be onsite until next week and customer is new to the product, I'd just thought of getting opinions here first...





First, capture the correct CSS selector by selecting your element from the WebGUI, then click right and select Inspect. You have this option in Chrome and Firefox, not in IE.

Then in the HTML editor, click on "copy as CSS", past in Dynatrace and that's done

In some cases, that may not be sufficient because you are capturing extra characters or strings. Then use a regex that you will put under the "Apply cleanup rule" option in the "User tag" rule of your Dynatrace application.

You can also have a look here:


Dynatrace Champion
Dynatrace Champion

Hi Chris,

Here's a brief step-by-step PowerPoint that may help also, especially if you want to test the CSS selector before you add it to Dynatrace:



Hi @dave_mauney 

Can you please share this PPT again as I've tried to access it, I find It's expired.


I shared it again here:


Our corporate policy is to set a 90 expiration on links shared on SharePoint, so the clock starts again now...

@dave_mauney Could I ask you to share again please?

HowToSpecifyUserTagCSSSelector.pptx (expires July 27th, 2023)

Dynatrace Mentor
Dynatrace Mentor

Thanks guys! The one that worked is #navBarUserInfoTextId > span.navTabButtonUserInfoText.navTabButtonUserInfoWorker.

Great thanks for sharing this Chris, very helpful for user tagging in MS Dynamics!

just to clear details:

to get value of attribute title it should be:

#navBarUserInfoTextId > span.navTabButtonUserInfoText.navTabButtonUserInfoWorker@title

This is not working anymore on latest version 9.1.x of MS Dynamics 365 on prem.