Contentful Personalization & Analytics
    Preparing search index...

    Interface ConsentGuardInternal

    Contract implemented by classes that gate operations based on consent.

    This predicate is consumed by consent-gated send paths to decide whether to proceed with an operation.

    interface ConsentGuard {
        hasConsent: (name: string) => boolean;
    }

    Implemented by

    Index

    Properties

    Properties

    hasConsent: (name: string) => boolean

    Determine whether the named operation is permitted given current consent and any allow‑list configuration.

    Type Declaration

      • (name: string): boolean
      • Parameters

        • name: string

          Logical operation/method name (e.g., 'track', 'page').

        Returns boolean

        true if the operation can proceed; otherwise false.

    The mapping between method names and event type strings can be product‑specific.