rework code to actually fit 6.0.x && 6.1x
This commit is contained in:
parent
5b4bd5a05a
commit
f0466493b3
@ -30,10 +30,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
{
|
{
|
||||||
if ($this->sContainerId === null)
|
if ($this->sContainerId === null)
|
||||||
{
|
{
|
||||||
$this->sContainerId = ContainerFactory::getInstance()
|
$this->sContainerId = $this->getConfig()->getConfigParam('vt_gtm_sContainerID');
|
||||||
->getContainer()
|
|
||||||
->get(ModuleSettingBridgeInterface::class)
|
|
||||||
->get('vt_gtm_sContainerID', 'vt-gtm');
|
|
||||||
}
|
}
|
||||||
return $this->sContainerId;
|
return $this->sContainerId;
|
||||||
}
|
}
|
||||||
@ -44,10 +41,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
{
|
{
|
||||||
if ($this->blGA4enabled === null)
|
if ($this->blGA4enabled === null)
|
||||||
{
|
{
|
||||||
$this->sContainerId = ContainerFactory::getInstance()
|
$this->sContainerId = $this->getConfig()->getConfigParam('vt_gtm_blEnableGA4');
|
||||||
->getContainer()
|
|
||||||
->get(ModuleSettingBridgeInterface::class)
|
|
||||||
->get('vt_gtm_blEnableGA4', 'vt-gtm');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->blGA4enabled;
|
return $this->blGA4enabled;
|
||||||
@ -87,7 +81,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
//'httpref' => $_SERVER["HTTP_REFERER"] ?? "unknown"
|
//'httpref' => $_SERVER["HTTP_REFERER"] ?? "unknown"
|
||||||
];
|
];
|
||||||
|
|
||||||
return json_encode([$dataLayer], JSON_PRETTY_PRINT);
|
#return json_encode([$dataLayer], JSON_PRETTY_PRINT);
|
||||||
|
|
||||||
unset($dataLayer["user"]["http"]); // das brauchen wir hier nicht
|
unset($dataLayer["user"]["http"]); // das brauchen wir hier nicht
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user