[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()}]
[{if $oViewConf->D3blShowGtmScript()}]
[{if $oViewConf->isGA4enabled() and $oViewConf->D3blShowGtmScript()}]
[{if $d3GtmContainerIdString}]
[{strip}]

View File

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