[Added] additional check for properly activated module

This commit is contained in:
MaxBUhe 2024-05-29 12:16:22 +02:00
bovenliggende 4a4b328364
commit ef29f7eb1b
2 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen

Bestand weergeven

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

Bestand weergeven

@ -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;