Capture event and session properties for web frontends

  • Latest Dynatrace
  • How-to guide
  • Published Nov 11, 2025
  • Preview

Event and session properties let you attach custom-defined key-value pairs to user events and user sessions, using the namespaces event_properties and session_properties.

Before you start sending event or session properties

Event and session properties must be configured before they can be used. Incoming event and session properties that are not configured are dropped during event ingest.

To configure an event or session property

  1. In Experience Vitals Experience Vitals, select the frontend for which you want to add the property.
  2. In the Settings tab, select Event and session properties.
  3. Depending on whether you want to configure an event or session property, select Add under either Defined event properties or Defined session properties.
  4. In Field name, specify a name, for example cart.total_value.
  5. If you want field name validation to be case insensitive, turn on Field name validation should be case-insensitive.
  6. Under Datatype, select one of the available types—either string, boolean, or number.

Note that the field name is always prefixed with either event_properties. or session_properties., depending on the selected type, for example event_properties.cart.total_value

How to send properties

Currently, event and session properties can only be sent via the JavaScript API.

Limits

  • Naming
    • Field name maximum length: 100 characters (including the event_properties. / session_properties. prefix).
    • Allowed characters in field name: A–Z, a–z, 0–9, underscore _, and dot ..
  • Counts
    • Maximum of 20 event and session properties can be configured.
  • Values
    • For event and session properties of data type string, the length is limited to 1000 characters.
Related tags
Digital Experience