[Fixed] Consentmanager doesn't get delivered
false value given for important decision-making. Since the value was false, we got "false" as return for D3blShowGtmScript() which made consentmanager not send the data to GTM
This commit is contained in:
parent
65b618e25c
commit
53b3c878ce
@ -16,6 +16,7 @@ class ManagerTypes
|
|||||||
const AGCOOKIECOMPLIANCE = "Aggrosoft Cookie Compliance";
|
const AGCOOKIECOMPLIANCE = "Aggrosoft Cookie Compliance";
|
||||||
|
|
||||||
const CONSENTMANAGER = "Consentmanager";
|
const CONSENTMANAGER = "Consentmanager";
|
||||||
|
const INTERNAL_CONSENTMANAGER = "cmconsentmanager";
|
||||||
|
|
||||||
const COOKIEFIRST = "Cookiefirst";
|
const COOKIEFIRST = "Cookiefirst";
|
||||||
|
|
||||||
@ -46,4 +47,22 @@ class ManagerTypes
|
|||||||
{
|
{
|
||||||
return in_array($sManager, array_keys($this->getManagerList()), true);
|
return in_array($sManager, array_keys($this->getManagerList()), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* the CMP from this method always needs the script tag delivered to the dom.
|
||||||
|
*/
|
||||||
|
public function scriptTagDeliveredByDefaultArray() :array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
Usercentrics::sModuleIncludationInternalName,
|
||||||
|
Usercentrics::sExternalIncludationInternalName,
|
||||||
|
ManagerTypes::CONSENTMANAGER,
|
||||||
|
ManagerTypes::INTERNAL_CONSENTMANAGER,
|
||||||
|
ManagerTypes::COOKIEFIRST,
|
||||||
|
ManagerTypes::COOKIEBOT,
|
||||||
|
ManagerTypes::EXTERNAL_SERVICE
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
@ -102,14 +102,12 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// UserCentrics or consentmanager
|
|
||||||
if (
|
if (
|
||||||
$this->sCookieManagerType === Usercentrics::sModuleIncludationInternalName
|
in_array
|
||||||
or $this->sCookieManagerType === Usercentrics::sExternalIncludationInternalName
|
(
|
||||||
or $this->sCookieManagerType === ManagerTypes::CONSENTMANAGER
|
$this->sCookieManagerType,
|
||||||
or $this->sCookieManagerType === ManagerTypes::COOKIEFIRST
|
(oxNew(ManagerTypes::class)->scriptTagDeliveredByDefaultArray())
|
||||||
or $this->sCookieManagerType === ManagerTypes::COOKIEBOT
|
)
|
||||||
or $this->sCookieManagerType === ManagerTypes::EXTERNAL_SERVICE
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Always needs the script-tags delivered to the DOM.
|
// Always needs the script-tags delivered to the DOM.
|
||||||
|
Loading…
Reference in New Issue
Block a user