From ce1614996af346ded395b9299d67de95d3399748 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 10 Apr 2024 12:21:21 +0200 Subject: [PATCH] [Fixed] getGtmContainerId gave false/ null on second call method gave false --- Application/views/blocks/_gtm_js.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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}]