Can I customize real user monitoring using the JavaScript API?

Dynatrace enables you to extend its default real user monitoring functionality using the JavaScript API.

The Real User Monitoring JavaScript API allows you to

  • Create custom user actions
    If you want to monitor key functionality in your application that isn't automatically monitored by Dynatrace, you can define your own custom user actions. Suppose that you want to monitor a specific UI element that's displayed in response to a user click, which doesn´t trigger a web request. When no web request is triggered, Dynatrace won't consider the click to be a user action. Using the JavaScript API, you can still monitor such user interaction.

  • Report errors
    Sometimes there are errors that aren't recognized by Dynatrace by default. You can use the JavaScript API's error reporting functionality to send error events, which are then displayed in the Top JavaScript errors section of the application overview page.

  • Add and extend 3rd-party monitoring
    Dynatrace supports the detection of 3rd-party resources. Automatic detection works for images and scripts. You can use the JavaScript API to enable automatic detection of additional resources.

  • Use tagging for user identification
    With user tags, you can track user behavior of specific users throughout your application environment, across sessions, devices, and browsers.

  • Define custom names for user actions
    You can use the JavaScript API to define your own user action names and override the default naming behavior.

To download samples and instructions for RUM JavaScript API, go to Settings > Web and mobile monitoring > Custom user actions and click Download documentation and samples.