Contentful Personalization & Analytics
    Preparing search index...

    Stateless analytics implementation that sends each event immediately in a single‑event batch.

    Hierarchy

    • AnalyticsBase
      • AnalyticsStateless
    Index

    Constructors

    Properties

    allowedEventTypes?: string[]

    Allow‑list of event type keys permitted when consent is not present.

    Optimization API client used to send events to the Experience and Insights APIs.

    builder: EventBuilder

    Event builder used to construct strongly‑typed events.

    interceptors: LifecycleInterceptors

    Interceptors that can mutate/augment outgoing events or optimization state.

    onEventBlocked?: (event: BlockedEvent) => void

    Optional callback invoked when an event call is blocked.

    Methods

    • Publish blocked event metadata to both callback and blocked event signal.

      Parameters

      • reason: "consent"

        Reason the method call was blocked.

      • product: BlockedEventProduct

        Product that blocked the method call.

      • method: string

        Name of the blocked method.

      • args: readonly unknown[]

        Original blocked call arguments.

      Returns void