Safe wrapper for dynatrace.userActions.create which reverts to a noop if RUM JavaScript or the user actions module is not available.
An options object to configure the user action.
A UserActionTracker object that can be started and completed, or undefined if the user actions module is not enabled.
UserActionTracker
undefined
import * as userActions from "@dynatrace/rum-javascript-sdk/api/user-actions";const userAction = userActions.create({ customName: "My Action" });// perform workuserAction?.complete(); Copy
import * as userActions from "@dynatrace/rum-javascript-sdk/api/user-actions";const userAction = userActions.create({ customName: "My Action" });// perform workuserAction?.complete();
Safe wrapper for dynatrace.userActions.create which reverts to a noop if RUM JavaScript or the user actions module is not available.