# UserJourneyTraceConfig

**Kind**: interface | **Module**: [Insights](https://docs.interop.io/browser/reference/javascript/insights/index.md)

**Source**: https://docs.interop.io/browser/reference/javascript/insights/userjourneytraceconfig/index.html

Configuration for User Journey trace behavior.
Controls how significant User Journey milestones are tracked throughout the platform session.

## Properties

- **`chainLength`** (`number`, optional) default: `0`
  If specified, this number of previously focused applications and their focus times will be added as attributes to
  the User Journey span. This is useful for some kinds of querying.
- **`descriptiveName`** (`boolean`, optional) default: `true`
  If `true`, the User Journey trace spans will be named interopio.desktop.userJourney.<event>.<applicationName>.
  If `false`, the User Journey trace spans will be named interopio.api.userJourney.<event>
- **`enabled`** (`boolean`, required)
  Whether the User Journey trace is enabled.
- **`includeWorkspaceInfo`** (`boolean`, optional) default: `true`
  Unless `false`, focus spans for windows that sit in a workspace also
  carry the workspace context - workspaceId, workspaceName and
  workspaceTitle. Only workspace membership is resolvable synchronously;
  the id/name/title are fetched from the workspaces frame asynchronously
  (two round trips per focus change into a workspace window) and added to
  the still-open focus span when they arrive - a focus change racing the
  lookup loses only these attributes.
- **`structure`** (`"sibling" | "nested"`, optional) default: `"sibling"`
  If `sibling`, all spans in the User Journey trace will be nested under the same
  root span. This is useful when working with visualization interfaces that do not handle
  arbitrarily nested spans.

  If `nested`, every span in the User Journey trace will be nested under the previous span.
  This is useful for some kinds of querying.
