[OST830498][Added] consent-mode standard values

This commit is contained in:
2024-04-02 08:59:17 +02:00
parent 1ae5a9d926
commit a38dcb8e45
3 changed files with 38 additions and 0 deletions

View File

@ -169,6 +169,14 @@ class ViewConfig extends ViewConfig_parent
return $this->blGA4enabled;
}
public function isGtmConsentModeSetActivated() :bool
{
return $this->sContainerId = ContainerFactory::getInstance()
->getContainer()
->get(ModuleSettingBridgeInterface::class)
->get('d3_gtm_blActivateConsentMode', Constants::OXID_MODULE_ID);
}
public function getGtmDataLayer()
{
if (!$this->getGtmContainerId()) return "[]";