---
title: "Advanced"
manual: "Klaro! Consent Manager"
version: "3.0"
permalink: "https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:for-editors-configuration-advanced@3.0"
source: "Editor/Configuration/Advanced/Index.rst"
rendered: "2026-09-24T10:59:28+00:00"
---

# Advanced {#for-editors-configuration-advanced}

![Advanced tab of a Klaro configuration record](../../../Images/Configuration-Advanced.png)

-   [Base Configuration](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:base-configuration@3.0)
-   [Storage](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:storage@3.0)
-   [Callback](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:callback@3.0)

## Base Configuration {#base-configuration}

### Config Variable Name {#config-variable-name}

-   **config_variable_name**

    -   *type:* string
    -   *Default:* ''

    By default, Klaro loads the configuration from a global variable `klaroConfig`. You can change this here. Specifying this field will cause the attribute data-klaro-config="yourConfigVariableName" to be set.

### Element ID {#element-id}

-   **element_i_d**

    -   *type:* string
    -   *Default:* ''

    You can customize the ID of the `div` element that Klaro will create when starting up. By default, Klaro will use "klaro".

### Style Prefix {#style-prefix}

-   **style_prefix**

    -   *type:* string
    -   *Default:* (empty)

    Prefix for CSS classes/container to namespace Klaro styles.

### Additional Class {#additional-class}

-   **additional_class**

    -   *type:* string
    -   *Default:* ''

    You can specify an additional class (or classes) that will be added to the Klaro `div`

## Storage {#storage}

### Storage Method {#for-editors-configuration-advanced-storage-method}

-   **storage_method**

    -   *type:* select
    -   *Default:* 'cookie'

    You can customize how Klaro persists consent information in the browser.
    Specify either `cookie` (the default), `localStorage`, or the empty value
    for no persistent storage.

    **Options:**

    -   None `[empty value]`
    -   Cookie (default) `[cookie]`
    -   Local Storage `[localStorage]`

### Storage Name {#storage-name}

-   **storage_name**

    -   *type:* string
    -   *Default:* ''

    You can customize the name of the cookie or localStorage entry that Klaro will use for storing the consent information. By default, Klaro will use "klaro".

## Callback {#callback}

### Callback {#callback-1}

-   **callback**

    -   *type:* string
    -   *Default:* ''

    You can define an optional callback function that will be called each time
    the consent state for any given service changes. The consent value is passed
    as the first parameter (`true` means consented). The `service` config is
    passed as the second parameter. The content of this field is wrapped with
    `callback: function(consent, service) { }`.

    Enter only trusted JavaScript. Syntax errors or unsafe code in this field
    are emitted to the frontend configuration.
