diff --git a/Application/Model/ManagerTypes.php b/Application/Model/ManagerTypes.php index 01c9db5..f12af76 100644 --- a/Application/Model/ManagerTypes.php +++ b/Application/Model/ManagerTypes.php @@ -36,6 +36,8 @@ class ManagerTypes const COOKIEFIRST = "COOKIEFIRST"; + const COOKIEBOT = "COOKIEBOT"; + /** * @return array */ @@ -48,7 +50,8 @@ class ManagerTypes "oxps_usercentrics" => self::USERCENTRICS_MODULE, "usercentrics" => self::USERCENTRICS_MANUALLY, "consentmanager" => self::CONSENTMANAGER, - "cookiefirst" => self::COOKIEFIRST + "cookiefirst" => self::COOKIEFIRST, + "cookiebot" => self::COOKIEBOT, ]; } diff --git a/Application/views/admin/de/module_options.php b/Application/views/admin/de/module_options.php index 8960fd6..144a01f 100755 --- a/Application/views/admin/de/module_options.php +++ b/Application/views/admin/de/module_options.php @@ -43,5 +43,6 @@ $aLang = [ 'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER_CONSENTMANAGER' => 'consentmanager', 'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER_USERCENTRICS' => 'usercentrics', 'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER_COOKIEFIRST' => 'cookiefirst', + 'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER_COOKIEBOT' => 'Cookiebot', 'SHOP_MODULE_d3_gtm_settings_cookieName' => 'CookieID', ]; diff --git a/Modules/Core/ViewConfig.php b/Modules/Core/ViewConfig.php index 5df7d64..c066386 100644 --- a/Modules/Core/ViewConfig.php +++ b/Modules/Core/ViewConfig.php @@ -93,6 +93,7 @@ class ViewConfig extends ViewConfig_parent or $this->sCookieManagerType === ManagerTypes::USERCENTRICS_MANUALLY or $this->sCookieManagerType === ManagerTypes::CONSENTMANAGER or $this->sCookieManagerType === ManagerTypes::COOKIEFIRST + or $this->sCookieManagerType === ManagerTypes::COOKIEBOT or $this->sCookieManagerType === ManagerTypes::EXTERNAL_SERVICE ) { @@ -143,6 +144,10 @@ class ViewConfig extends ViewConfig_parent return 'type="text/plain" data-cookiefirst-category="' . $sCookieId .'"'; } + if ($this->sCookieManagerType === ManagerTypes::COOKIEBOT){ + return 'type="text/plain" data-cookieconsent="' . $sCookieId .'"'; + } + return ""; } diff --git a/metadata.php b/metadata.php index c31936c..31f10ef 100755 --- a/metadata.php +++ b/metadata.php @@ -144,7 +144,7 @@ $aModule = [ 'name' => 'd3_gtm_settings_HAS_STD_MANAGER', 'type' => 'select', 'value' => 'none', - 'constraints' => 'NONE|CONSENTMANAGER|USERCENTRICS|COOKIEFIRST', + 'constraints' => 'NONE|CONSENTMANAGER|USERCENTRICS|COOKIEFIRST|COOKIEBOT', ], ] ]; \ No newline at end of file