Contentful Personalization & Analytics
    Preparing search index...

    Configuration for the Node-specific Optimization SDK.

    This configuration extends CoreConfig but allows partial overrides of the event-builder configuration. SDKs commonly inject their own library metadata or channel definitions.

    interface CoreStatelessConfig {
        analytics?: Omit<
            undefined
            | Omit<InsightsApiClientConfig, GlobalApiConfigProperties>,
            "beaconHandler",
        >;
        clientId: string;
        environment?: string;
        eventBuilder?: Omit<
            EventBuilderConfig,
            "getLocale"
            | "getPageProperties"
            | "getUserAgent",
        >;
        fetchOptions?: Omit<ProtectedFetchMethodOptions, "apiName">;
        logLevel?: LogLevels;
        personalization?: Omit<
            ExperienceApiClientConfig,
            GlobalApiConfigProperties,
        >;
    }

    Hierarchy (View Summary)

    Index

    Properties

    analytics?: Omit<
        undefined
        | Omit<InsightsApiClientConfig, GlobalApiConfigProperties>,
        "beaconHandler",
    >

    Override configuration for the analytics (Insights) API client. Omits beaconHandler.

    clientId: string

    Client identifier used for authentication or tracking.

    environment?: string

    Contentful environment identifier.

    Defaults to main when not provided.

    eventBuilder?: Omit<
        EventBuilderConfig,
        "getLocale"
        | "getPageProperties"
        | "getUserAgent",
    >

    Overrides for the event builder configuration. Omits methods that are only useful in stateful environments.

    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.

    logLevel?: LogLevels

    Minimum log level for the default console sink.

    Configuration for the personalization (Experience) API client.