RUM JavaScript API - 1.345.1
    Preparing search index...

    Function sendSessionPropertyEvent

    • Safe wrapper for dynatrace.sendSessionPropertyEvent which reverts to a noop if RUM JavaScript is not available.

      Parameters

      • fields: ApiCreatedSessionPropertiesEvent

        Must be a valid JSON object and cannot contain functions, undefined, Infinity and NaN as values, otherwise they will be replaced with null. The fields need to be serializable using JSON.stringify. All keys must be prefixed with "session_properties.*" and must contain only lower-case characters, numbers, underscores or dots. Each dot must be followed by a lower-case character. Each underscore must be followed by a lower-case character or number.

      Returns void

      import { sendSessionPropertyEvent } from '@dynatrace/rum-javascript-sdk/api';

      sendSessionPropertyEvent({
      'session_properties.user_type': 'premium',
      'session_properties.subscription_tier': 'gold',
      'session_properties.region': 'us_east'
      });