RUM JavaScript API - 1.345.1
    Preparing search index...

    Function create

    • Safe wrapper for dynatrace.userActions.create which reverts to a noop if RUM JavaScript or the user actions module is not available.

      Parameters

      Returns UserActionTracker

      A UserActionTracker object that can be started and completed, or undefined if the user actions module is not enabled.

      import * as userActions from "@dynatrace/rum-javascript-sdk/api/user-actions";
      const userAction = userActions.create({ customName: "My Action" });
      // perform work
      userAction?.complete();