[Added] additional check for properly activated module
This commit is contained in:
parent
4a4b328364
commit
ef29f7eb1b
@ -5,7 +5,7 @@
|
||||
|
||||
[{assign var="d3GtmContainerIdString" value=$oViewConf->getGtmContainerId()}]
|
||||
|
||||
[{if $oViewConf->D3blShowGtmScript()}]
|
||||
[{if $oViewConf->isGA4enabled() and $oViewConf->D3blShowGtmScript()}]
|
||||
[{if $d3GtmContainerIdString}]
|
||||
[{strip}]
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user