:navigation-title: Consent integration .. _consent-integration-configuration: =================== Consent integration =================== .. versionadded:: 1.2.0 The consent integration blocks iframes and custom integrations until the visitor consents to the service. It replaces the Smart Data Protector: it does not intercept network requests and it does not reload the page when the visitor consents. It reads the consent from the API of the Usercentrics CMP (``window.__ucCmp`` and the event ``UC_CONSENT``). Enable the consent integration ============================== Set the constant ``useConsentIntegration`` to ``1`` and keep the Smart Data Protector disabled. .. code-block:: typoscript :caption: EXT:site_package/Configuration/TypoScript/Extensions/LiaUsercentrics/Constants.typoscript plugin.tx_liausercentrics { settings { activate = 1 useSmartDataProtector = 0 useConsentIntegration = 1 customOverlayIntegration = BJz7qNsdj-7:youtube, S1pcEj_jZX:gMaps reloadOnOptIn = reloadOnOptOut = } } .. warning:: ``useConsentIntegration`` and ``useSmartDataProtector`` cannot be enabled at the same time. ``reloadOnOptIn`` and ``reloadOnOptOut`` only work with the Smart Data Protector. The extension throws an exception for both configurations. ``whitelistedSDPServices`` is ignored. The extension adds these parts to every page with Usercentrics: * the configuration ``