[OST497528][Added] usercentrips step/ option 2
detailed information about the new addings check docs: https://docs.usercentrics.com/#/consent-mode
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
|
||||
namespace D3\GoogleAnalytics4\Modules\Core;
|
||||
|
||||
use D3\GoogleAnalytics4\Application\Model\CMP\Usercentrics;
|
||||
use D3\GoogleAnalytics4\Application\Model\Constants;
|
||||
use D3\GoogleAnalytics4\Application\Model\ManagerHandler;
|
||||
use D3\GoogleAnalytics4\Application\Model\ManagerTypes;
|
||||
@ -245,4 +246,13 @@ class ViewConfig extends ViewConfig_parent
|
||||
{
|
||||
return Registry::getConfig()->getShopConfVar(Constants::OXID_MODULE_ID.$configParamName, null, Constants::OXID_MODULE_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function d3IsUsercentricsCMPChosen() :bool
|
||||
{
|
||||
return (bool) ($this->d3GetModuleConfigParam('_HAS_STD_MANAGER') === Usercentrics::sCMPName
|
||||
or $this->d3GetModuleConfigParam('_HAS_STD_MANAGER') === Usercentrics::sAlternatename);
|
||||
}
|
||||
}
|
Verwijs in nieuw issue
Block a user