Contentful Personalization & Analytics
    Preparing search index...

    Supported cookie attributes for the Web SDK.

    These options are used when persisting the anonymous ID cookie.

    interface CookieAttributes {
        domain?: string;
        expires?: number;
    }
    Index

    Properties

    Properties

    domain?: string

    Cookie domain attribute.

    If omitted, the browser will scope the cookie to the current host.

    expires?: number

    Determines the expiration date of the cookie as the number of days until the cookie expires.