Helper class for sending analytics events.

Constructors

Accessors

  • get sessionId(): string
  • Returns the session ID that is utilized for each event that is sent.

    Returns string

    The session ID for the Analytics library.

    Deprecated

    Use the 'sessionID' accessor on an instance of the Visual class instead.

Methods

  • Returns a resolved Promise when the Analytics Utility has finished initializing.

    Returns Promise<void>

    A Promise that resolves when the Analytics Utility is finished initializing.

  • Sends a custom event to the analytics service.

    Parameters

    • eventName: string

      The name of the custom event to send.

    • Optional properties: object

      Event-specific information to include.

    Returns void

  • Sets event-agnostic properties to send with each event.

    Parameters

    Returns void

Generated using TypeDoc