A user action represents a significant operation within the frontend and its implications. This page explains the concept for web frontends in the New RUM Experience and how it differs from RUM Classic.
User actions in web frontends can be grouped into three types:
Navigation user actions: When a soft navigation occurs, which results in a view change, a new user action is created automatically. Navigations are usually triggered by a user interaction, but a user interaction is not required for a user action to be created.
Request user actions: If a click user interaction is followed by an XHR or fetch request, a user action is created.
API user actions: You can also create user actions using dynatrace.userAction.create() in the JavaScript API. There are no prerequisites for triggering a user action this way.
A user action ends automatically based on certain conditions, or you can close it manually via the API.
While a user action is active, the RUM JavaScript keeps track of XHR and fetch requests, DOM mutations, and resource timings to determine when the user action ends. A user action ends when one of the following conditions is met:
user_action.interrupted_by_instance_id attribute.You can close user actions via the API using UserActionTracker.finish().
By default, API-created user actions follow the default end behavior. To disable auto-closing, use UserActionTracker.autoClose(), or set the autoClose option to false when creating the user action.
The diagram below illustrates the lifecycle of a user action, using a request user action as an example.

RUM Classic also provides a user action concept, but it differs in several ways from user actions in the New RUM Experience. The table below highlights the key differences.