- applyOptIn(options): Promise<{
dataLayer: any[];
isManagerOptOut: boolean;
ready: Promise<void[]>;
services: {
group: ServiceGroup;
service: Pick<IServiceTemplateClientResponse, "legalBasis" | "isEmbeddingOnlyExternalResources" | "executePriority" | "codeOptIn" | "codeOptOut" | "codeOnPageLoad" | "executeCodeOptInWhenNoTagManagerConsentIsGiven" | "executeCodeOptOutWhenNoTagManagerConsentIsGiven" | "deleteTechnicalDefinitionsAfterOptOut" | "googleConsentModeConsentTypes" | "tagManagerOptInEventName" | "tagManagerOptOutEventName"> & {
codeDynamics: Record<string, string>;
id: number;
presetId?: string;
technicalDefinitions: ServiceTechnicalDefinition[];
uniqueName: string;
} & object;
}[];
}> Returns Promise<{
dataLayer: any[];
isManagerOptOut: boolean;
ready: Promise<void[]>;
services: {
group: ServiceGroup;
service: Pick<IServiceTemplateClientResponse, "legalBasis" | "isEmbeddingOnlyExternalResources" | "executePriority" | "codeOptIn" | "codeOptOut" | "codeOnPageLoad" | "executeCodeOptInWhenNoTagManagerConsentIsGiven" | "executeCodeOptOutWhenNoTagManagerConsentIsGiven" | "deleteTechnicalDefinitionsAfterOptOut" | "googleConsentModeConsentTypes" | "tagManagerOptInEventName" | "tagManagerOptOutEventName"> & {
codeDynamics: Record<string, string>;
id: number;
presetId?: string;
technicalDefinitions: ServiceTechnicalDefinition[];
uniqueName: string;
} & object;
}[];
}>
Opt-in to a set of services.