monitor-api - v1.3.0
    Preparing search index...

    Function emitMonitorEvent

    • Emits a custom application event that can be captured by the event collector.

      The event is dispatched on window, so it is ignored outside browser environments or before an event collector has been started.

      Parameters

      • label: string
      • Optionaldata: Record<string, unknown>

      Returns void

      emitMonitorEvent('checkout:complete', { total: 49.99 })