claudius-chat-widget
    Preparing search index...

    Interface AnalyticsPluginOptions

    Options for pluginAnalytics.

    interface AnalyticsPluginOptions {
        includeContent?: boolean;
        onEvent: (event: ClaudiusAnalyticsEvent) => void;
    }
    Index

    Properties

    includeContent?: boolean

    Include message text in message_sent / message_received events. Set to false to record only the character count and avoid logging user content.

    true

    onEvent: (event: ClaudiusAnalyticsEvent) => void

    Sink called once per chat lifecycle event. Wire it to your analytics provider (Google Analytics, PostHog, Segment, a custom endpoint, ...).