One of the key features of Dynatrace real user monitoring is the ability to uniquely identify individual users across different browsers, devices, and user sessions. This enables you to analyze the user experience of individual users via user session analysis. With user tags, you can track specific user behavior throughout your application environment, across sessions, devices, and browsers.
By default, Dynatrace assigns a unique, random ID to each new user. You can however assign more meaningful user tags that are comprised of, for example, user names or email addresses.
If your organization doesn’t allow tracking of individual users for privacy reasons, you can alternatively define user tags that correspond to team names or department names. In this way, you can monitor the experience of individual users while not disclosing any identifying information.
- Go to Settings > Web and mobile monitoring > Custom user actions.
- Click Download documentation and samples. A sample HTML file called
User tagging based on page metadata
Once you’ve identified where usernames are located in your page source, you can create user tags based on the usernames:
- From the navigation menu, click Applications.
- Select the application you want to configure.
- Click the Browse (…) button and select Edit.
- Click the User tags tab.
- Click Add user tag rule.
- From the Expression type to capture drop list, select CSS selector.
- Type the CSS selector value into the CSS selector field.
- To ensure that there is a clean extraction of the username value, you can apply a regex cleanup rule.
In the example below, the text of the DOM element is
md= is now listed in this page’s metadata expressions.
Once you’ve completed this process, select User sessions from the navigation menu. Click in the filter text box at the top of the page. Choose the User tag attribute and select a user tag from the list. The chart now shows detailed session data related to the sessions of this specific user. You can click the name of the user that appears under the chart to navigate to this user’s overview page and view further details.
- The last user action in a session that contains a tag will be used as the tag for the entire session.
- You can also identify mobile users of native mobile apps.