Contentful Personalization & Analytics
    Preparing search index...

    Configuration for CoreStateful.

    interface CoreStatefulConfig {
        allowedEventTypes?: EventType[];
        analytics?: Omit<InsightsApiClientConfig, GlobalApiConfigProperties>;
        clientId: string;
        defaults?: CoreConfigDefaults;
        environment?: string;
        eventBuilder?: EventBuilderConfig;
        fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">;
        getAnonymousId?: () => undefined | string;
        logLevel?: LogLevels;
        personalization?: Omit<
            ExperienceApiClientConfig,
            GlobalApiConfigProperties,
        >;
        preventedComponentEvents?: Record<string, string[]>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    allowedEventTypes?: EventType[]

    Allow-listed event type strings permitted when consent is not set.

    Configuration for the analytics (Insights) API client.

    clientId: string

    Client identifier used for authentication or tracking.

    Optional set of default values applied on initialization.

    environment?: string

    Contentful environment identifier.

    Defaults to main when not provided.

    eventBuilder?: EventBuilderConfig

    Event builder configuration (channel/library metadata, etc.).

    fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">

    Options used to configure the underlying protected fetch method.

    apiName is derived from the client name and must not be provided here.

    getAnonymousId?: () => undefined | string

    Function used to obtain an anonymous user identifier.

    logLevel?: LogLevels

    Minimum log level for the default console sink.

    Configuration for the personalization (Experience) API client.

    preventedComponentEvents?: Record<string, string[]>

    Initial duplication prevention configuration for component events.