Contentful Personalization & Analytics
    Preparing search index...
    • Create a deterministic, versioned fingerprint for selected optimization state.

      Parameters

      • selectedOptimizations:
            | {
                experienceId: string;
                sticky?: boolean;
                variantIndex: number;
                variants: Record<string, string>;
            }[]
            | undefined

        Selected optimization outcomes to fingerprint.

        • {
              experienceId: string;
              sticky?: boolean;
              variantIndex: number;
              variants: Record<string, string>;
          }[]
          • experienceId: string

            Identifier of the personalization or experiment experience.

          • Optionalsticky?: boolean

            Indicates whether this optimization selection is sticky for the user.

            false
            

            Reuse sticky selections on subsequent requests for the same user rather than re-allocating a new variant.

          • variantIndex: number

            Index of the selected variant within the experience configuration.

            Typically corresponds to the index of the selected OptimizationConfig entry.

          • variants: Record<string, string>

            Mapping of baseline entry IDs to their selected variant entry IDs.

            The keys are component identifiers and the values are the identifiers of the selected variant for that component.

        • undefined

      Returns string

      Readable v1 fingerprint with normalized selection and variant-map order.