Toggles

Service Configuration - Toggles Tab
Toggles
Required
required
-
- type
-
boolean
- Default
-
false
If
required
is set totrue
, Klaro will not allow this service to be disabled by the user. Use this for services that are always required for your website to function (e.g. shopping cart cookies).
Opt-Out
opt_out
-
- type
-
boolean
- Default
-
false
If
opt
is set toOut true
, Klaro will load this service even before the user has given explicit consent. We strongly advise against this.
Only Once
only_once
-
- type
-
boolean
- Default
-
false
If
only
is set toOnce true
, the service will only be executed once regardless how often the user toggles it on and off. This is relevant e.g. for tracking scripts that would generate new page view events every time Klaro disables and re-enables them due to a consent change by the user.
Contextual Consent Only
contextual_consent_only
-
- type
-
boolean
- Default
-
false
Content can be excluded from general consent by setting contextualConsentOnly to true. In this case, the consent must be contextual.