Contentful Personalization & Analytics
    Preparing search index...

    Configuration for the stateful analytics implementation.

    interface AnalyticsProductConfig {
        allowedEventTypes?: EventType[];
        defaults?: AnalyticsProductConfigDefaults;
        onEventBlocked?: (event: BlockedEvent) => void;
        queuePolicy?: QueueFlushPolicy;
    }

    Hierarchy

    • ProductConfig
      • AnalyticsProductConfig
    Index

    Properties

    allowedEventTypes?: EventType[]

    The set of event type strings that are allowed to be sent even if consent is not granted.

    ['identify', 'page', 'screen']

    These types are compared against the type property of events.

    Default signal values applied on initialization.

    onEventBlocked?: (event: BlockedEvent) => void

    Callback invoked whenever an event call is blocked by guards.

    This callback is best-effort. Any exception thrown by the callback is swallowed to keep event handling fault tolerant.

    queuePolicy?: QueueFlushPolicy

    Policy that controls stateful queue flush retries, backoff, and circuit behavior after repeated failures.