RUM JavaScript API - 1.345.1
    Preparing search index...

    Function setAutomaticDetection

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

      Disabling automatic detection only prevents future automatic user actions from being created. It does not complete, interrupt, or otherwise affect the currently active user action.

      Parameters

      • automaticDetection: boolean

        If false, pauses creation of future automatic user actions; otherwise resumes it.

      Returns void

      import * as userActions from "@dynatrace/rum-javascript-sdk/api/user-actions";
      userActions.setAutomaticDetection(false);
      // manual user action handling