Contentful Personalization & Analytics
    Preparing search index...

    Configuration for PersonalizationStateful.

    interface PersonalizationProductConfig {
        allowedEventTypes?: EventType[];
        defaults?: PersonalizationProductConfigDefaults;
        getAnonymousId?: () => undefined | string;
        preventedComponentEvents?: Record<string, string[]>;
    }

    Hierarchy

    • ProductConfig
      • PersonalizationProductConfig
    Index

    Properties

    allowedEventTypes?: EventType[]

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

    ['page', 'identify']

    These types are compared against the type property of events.

    Default signal values applied during initialization.

    getAnonymousId?: () => undefined | string

    Function used to obtain an anonymous user identifier.

    Type declaration

      • (): undefined | string
      • Returns undefined | string

        A string identifier, or undefined if no anonymous ID is available.

    If a getAnonymousId function has been provided, the returned value will take precedence over the id property of the current Profile signal value

    preventedComponentEvents?: Record<string, string[]>

    A map of duplication keys to a list of component IDs that should be considered duplicates and therefore suppressed.

    The actual duplication check is performed by ValuePresence. The keys of this record are used as duplication scopes. An empty string '' is converted to an indefined scope when specific scopes are not required.