[Fixed] getGtmContainerId gave false/ null
on second call method gave false
This commit is contained in:
parent
ec2d43ff3c
commit
ce1614996a
@ -3,12 +3,14 @@
|
|||||||
var dataLayer = [{$oViewConf->getGtmDataLayer()}] || [];
|
var dataLayer = [{$oViewConf->getGtmDataLayer()}] || [];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
[{assign var="d3GtmContainerIdString" value=$oViewConf->getGtmContainerId()}]
|
||||||
|
|
||||||
[{if $oViewConf->D3blShowGtmScript()}]
|
[{if $oViewConf->D3blShowGtmScript()}]
|
||||||
[{if $oViewConf->getGtmContainerId()}]
|
[{if $d3GtmContainerIdString}]
|
||||||
[{strip}]
|
[{strip}]
|
||||||
|
|
||||||
[{if $oViewConf->isGtmConsentModeSetActivated()}]
|
[{if $oViewConf->isGtmConsentModeSetActivated()}]
|
||||||
<script type="text/javascript">
|
<script>
|
||||||
function gtag() {
|
function gtag() {
|
||||||
dataLayer.push(arguments);
|
dataLayer.push(arguments);
|
||||||
}
|
}
|
||||||
@ -32,7 +34,7 @@
|
|||||||
j.async = true;
|
j.async = true;
|
||||||
j.src = '[{$oViewConf->getServerSidetaggingJsDomain()}]?id=' + i + dl;
|
j.src = '[{$oViewConf->getServerSidetaggingJsDomain()}]?id=' + i + dl;
|
||||||
f.parentNode.insertBefore(j, f);
|
f.parentNode.insertBefore(j, f);
|
||||||
})(window, document, 'script', 'dataLayer', '[{$oViewConf->getGtmContainerId()}]');
|
})(window, document, 'script', 'dataLayer', '[{$d3GtmContainerIdString}]');
|
||||||
</script>
|
</script>
|
||||||
<!-- End Google Tag Manager -->
|
<!-- End Google Tag Manager -->
|
||||||
[{/strip}]
|
[{/strip}]
|
||||||
|
Loading…
Reference in New Issue
Block a user