diff --git a/Application/views/blocks/_gtm_js.tpl b/Application/views/blocks/_gtm_js.tpl index 35f1158..4ff4f37 100755 --- a/Application/views/blocks/_gtm_js.tpl +++ b/Application/views/blocks/_gtm_js.tpl @@ -3,12 +3,14 @@ var dataLayer = [{$oViewConf->getGtmDataLayer()}] || []; +[{assign var="d3GtmContainerIdString" value=$oViewConf->getGtmContainerId()}] + [{if $oViewConf->D3blShowGtmScript()}] - [{if $oViewConf->getGtmContainerId()}] + [{if $d3GtmContainerIdString}] [{strip}] [{if $oViewConf->isGtmConsentModeSetActivated()}] - [{/strip}]