mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
Remove more of Hubspot and Google Ads
This commit is contained in:
parent
44b8dc0fe0
commit
99e40b0f1c
@ -323,28 +323,6 @@ class erpooSystem extends Application
|
||||
}
|
||||
}
|
||||
|
||||
$activateDoubleClick = false;
|
||||
/** @var Dataprotection $dataProtectionModule */
|
||||
$dataProtectionModule = $this->loadModule('dataprotection');
|
||||
|
||||
if($dataProtectionModule !== null && $dataProtectionModule->isHubspotActive()) {
|
||||
$activateDoubleClick = true;
|
||||
$this->Tpl->Add(
|
||||
'SCRIPTJAVASCRIPT',
|
||||
'<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/6748263.js"></script>'
|
||||
);
|
||||
$this->Tpl->Add(
|
||||
'ADDITIONALCSPHEADER',
|
||||
' js.hs-scripts.com js.hscollectedforms.net js.hsleadflows.net js.hs-banner.com js.hs-analytics.net api.hubapi.com js.hsadspixel.net '
|
||||
);
|
||||
$this->Tpl->Add(
|
||||
'ADDITIONALCSPHEADER',
|
||||
'forms.hubspot.com forms.hsforms.com track.hubspot.com www.google.com www.google.de '
|
||||
);
|
||||
}
|
||||
if($activateDoubleClick) {
|
||||
$this->Tpl->Add('ADDITIONALCSPHEADER', ' googleads.g.doubleclick.net ' );
|
||||
}
|
||||
$hooktpl = 'JSSCRIPTS';
|
||||
$this->erp->RunHook('eproosystem_ende', 1, $hooktpl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user