[Added] additional check for properly activated module

This commit is contained in:
MaxBUhe 2024-05-29 12:16:22 +02:00
parent 4a4b328364
commit ef29f7eb1b
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@
[{assign var="d3GtmContainerIdString" value=$oViewConf->getGtmContainerId()}] [{assign var="d3GtmContainerIdString" value=$oViewConf->getGtmContainerId()}]
[{if $oViewConf->D3blShowGtmScript()}] [{if $oViewConf->isGA4enabled() and $oViewConf->D3blShowGtmScript()}]
[{if $d3GtmContainerIdString}] [{if $d3GtmContainerIdString}]
[{strip}] [{strip}]

View File

@ -73,6 +73,10 @@ class ViewConfig extends ViewConfig_parent
/** @var Config $oConfig */ /** @var Config $oConfig */
$oConfig = Registry::getConfig(); $oConfig = Registry::getConfig();
if (false === $this->isGA4enabled()){
return false;
}
// No Cookie Manager in use // No Cookie Manager in use
if (!$this->shallUseOwnCookieManager()) { if (!$this->shallUseOwnCookieManager()) {
return true; return true;