Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
9edf3b9265 | |||
2f7b07ab95 | |||
84240f96a9 | |||
542471b053 | |||
7873714f17 | |||
6dff6860bf | |||
81c7051f7b | |||
29831fa157 | |||
cf143c4881 | |||
16387c59bb | |||
cc2e9a5fc6 | |||
97dad5c8eb | |||
b7167ec60a |
@ -32,6 +32,8 @@ class ManagerHandler
|
|||||||
return $shopModuleId;
|
return $shopModuleId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,7 +55,7 @@ class ManagerHandler
|
|||||||
*/
|
*/
|
||||||
public function getModuleSettingExplicitManagerSelectValue() :string
|
public function getModuleSettingExplicitManagerSelectValue() :string
|
||||||
{
|
{
|
||||||
return Registry::get(ViewConfig::class)->d3GetModuleConfigParam('_HAS_STD_MANAGER');
|
return Registry::get(ViewConfig::class)->d3GetModuleConfigParam('_HAS_STD_MANAGER')?:"";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ $aLang = array(
|
|||||||
'D3ACTIVATEMOD' => 'Modul aktivieren',
|
'D3ACTIVATEMOD' => 'Modul aktivieren',
|
||||||
'D3CNTRLPARAM' => 'Steuerungsparameter',
|
'D3CNTRLPARAM' => 'Steuerungsparameter',
|
||||||
'D3CNTRLPARAM_HELP' => '<a target="_blank" href="https://github.com/d3datadevelopment/GoogleAnalytics4/blob/master/Docs/README.md#steuerungsparameter" class="text-muted text-decoration-none"><i class="bi bi-book-half"></i> Was ist der <strong>Steuerungsparameter</strong>?</a>',
|
'D3CNTRLPARAM_HELP' => '<a target="_blank" href="https://github.com/d3datadevelopment/GoogleAnalytics4/blob/master/Docs/README.md#steuerungsparameter" class="text-muted text-decoration-none"><i class="bi bi-book-half"></i> Was ist der <strong>Steuerungsparameter</strong>?</a>',
|
||||||
'D3INACTIVATEMOD' => 'Modul ist nicht aktiv! Es werde keine Funktionen ausgespielt!',
|
'D3INACTIVATEMOD' => 'Modul ist nicht aktiv! Es werden keine Funktionen ausgespielt!',
|
||||||
// Usercentrics Dynamische Optionen
|
// Usercentrics Dynamische Optionen
|
||||||
'D3USRCNTRCSDYNOPT' => 'Usercentrics Dynamische Optionen',
|
'D3USRCNTRCSDYNOPT' => 'Usercentrics Dynamische Optionen',
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ $aLang = array(
|
|||||||
völlig verhindert, solange keine Zustimmung erteilt wurde.<br>
|
völlig verhindert, solange keine Zustimmung erteilt wurde.<br>
|
||||||
<br>
|
<br>
|
||||||
Ein einfaches anschalten dieser Funktion regelt noch <strong>nicht</strong> die völlige Funktionsweise
|
Ein einfaches anschalten dieser Funktion regelt noch <strong>nicht</strong> die völlige Funktionsweise
|
||||||
aller beteiligten Instanzen; diese bedarf eine detailiertere Konfiguration!<br>",
|
aller beteiligten Instanzen; diese bedarf eine detailliertere Konfiguration!<br>",
|
||||||
|
|
||||||
// Use CMP?
|
// Use CMP?
|
||||||
'D3CMPTABTITLE' => 'Cookie Manager Einstellungen',
|
'D3CMPTABTITLE' => 'Cookie Manager Einstellungen',
|
||||||
@ -57,12 +57,12 @@ $aLang = array(
|
|||||||
Diese konformen CMP sind in
|
Diese konformen CMP sind in
|
||||||
<a target="_blank" href="https://cmppartnerprogram.withgoogle.com/">offizieller Partnerschaft mit Google ( Liste der Partner )</a>
|
<a target="_blank" href="https://cmppartnerprogram.withgoogle.com/">offizieller Partnerschaft mit Google ( Liste der Partner )</a>
|
||||||
und unterliegen strengen Vorschriften, um ein ordnungsgemäßes Senden und
|
und unterliegen strengen Vorschriften, um ein ordnungsgemäßes Senden und
|
||||||
Verarbeiten der Zustimmung unterliegenden Daten sicher zu stellen.',
|
Verarbeiten der Zustimmung unterliegenden Daten sicher stellen zu können.',
|
||||||
'D3CMP' => 'Consent Management Platform ( CMP ) wählen',
|
'D3CMP' => 'Consent Management Platform ( CMP ) wählen',
|
||||||
|
|
||||||
// Usercentrics Config
|
// Usercentrics Config
|
||||||
// activate Individual Default Values
|
// activate Individual Default Values
|
||||||
'D3USRCNTRCSCFG_ACT_INDIVDEFVAL' => "usercentrics individual 'Default Values' aktiveren",
|
'D3USRCNTRCSCFG_ACT_INDIVDEFVAL' => "Usercentrics individual 'Default Values' aktiveren",
|
||||||
// standard Consent
|
// standard Consent
|
||||||
'D3USRCNTRCSCFG_STD_CNST' => "GTM Standard Consent",
|
'D3USRCNTRCSCFG_STD_CNST' => "GTM Standard Consent",
|
||||||
// activate consent mode API
|
// activate consent mode API
|
||||||
@ -70,7 +70,7 @@ $aLang = array(
|
|||||||
// consent mode api
|
// consent mode api
|
||||||
'D3USRCNTRCSCFG_CNSTMDE_API' => "Consent Mode API",
|
'D3USRCNTRCSCFG_CNSTMDE_API' => "Consent Mode API",
|
||||||
'D3USRCNTRCSCFG_DOCS' => 'Nähere Infos zu den hier konfigurierbaren Einstellungen entnehmen Sie bitte der offiziellen
|
'D3USRCNTRCSCFG_DOCS' => 'Nähere Infos zu den hier konfigurierbaren Einstellungen entnehmen Sie bitte der offiziellen
|
||||||
Dokumentation von Usercentrics selbst: <a href="https://docs.usercentrics.com/#/consent-mode" class="text-primary"><i class="bi bi-book-half"></i> Dokumentation</a>',
|
Dokumentation von Usercentrics selbst: <a target="_blank" href="https://docs.usercentrics.com/#/consent-mode" class="text-primary"><i class="bi bi-book-half"></i> Dokumentation</a>',
|
||||||
'D3USRCNTRCSCFG_WARNING' => "Bevor Sie hier Anpassungen machen, konsultieren Sie bitte einen technischen Support!<br>
|
'D3USRCNTRCSCFG_WARNING' => "Bevor Sie hier Anpassungen machen, konsultieren Sie bitte einen technischen Support!<br>
|
||||||
Anpassungen können zu Beeinträchtigungen und Ausfall von Funktionen im Frontend führen!",
|
Anpassungen können zu Beeinträchtigungen und Ausfall von Funktionen im Frontend führen!",
|
||||||
|
|
||||||
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [unreleased](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.17.2...rel_2.x) - 2024-x
|
## [unreleased](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.17.2...rel_2.x) - 2024-x
|
||||||
|
|
||||||
|
## [2.19.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.18.2...2.19.0) - 2024-08-10
|
||||||
|
### Fixed
|
||||||
|
- usage of not yet existing function
|
||||||
|
|
||||||
|
## [2.18.2](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.18.1...2.18.2) - 2024-06-25
|
||||||
|
### Fixed
|
||||||
|
- oe-console apply-configuration triggers on-activate and overwrites existing values
|
||||||
|
|
||||||
|
## [2.18.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.18.0...2.18.1) - 2024-06-04
|
||||||
|
### Fixed
|
||||||
|
- missing return statement, on null/ none
|
||||||
|
|
||||||
## [2.18.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.17.2...2.18.0) - 2024-06-03
|
## [2.18.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.17.2...2.18.0) - 2024-06-03
|
||||||
### Added
|
### Added
|
||||||
- trait for generalized method
|
- trait for generalized method
|
||||||
|
@ -173,7 +173,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
|
|
||||||
public function isGtmConsentModeSetActivated() :bool
|
public function isGtmConsentModeSetActivated() :bool
|
||||||
{
|
{
|
||||||
return $this->d3GetModuleConfigParam("_blEnableConsentMode");
|
return $this->d3GetModuleConfigParam("_blEnableConsentMode")?: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getGtmDataLayer()
|
public function getGtmDataLayer()
|
||||||
@ -215,7 +215,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
|
|
||||||
public function isDebugModeOn() :bool
|
public function isDebugModeOn() :bool
|
||||||
{
|
{
|
||||||
return $this->d3GetModuleConfigParam("_blEnableDebug");
|
return $this->d3GetModuleConfigParam("_blEnableDebug")?: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,7 +225,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
*/
|
*/
|
||||||
public function getServerSidetaggingJsDomain() :string
|
public function getServerSidetaggingJsDomain() :string
|
||||||
{
|
{
|
||||||
return $this->d3GetModuleConfigParam("_sServersidetagging_js");
|
return $this->d3GetModuleConfigParam("_sServersidetagging_js")?: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,7 +235,7 @@ class ViewConfig extends ViewConfig_parent
|
|||||||
*/
|
*/
|
||||||
public function getServerSidetaggingNoJsDomain() :string
|
public function getServerSidetaggingNoJsDomain() :string
|
||||||
{
|
{
|
||||||
return $this->d3GetModuleConfigParam('_sServersidetagging_nojs');
|
return $this->d3GetModuleConfigParam('_sServersidetagging_nojs')?: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,6 +7,7 @@ namespace D3\GoogleAnalytics4\Setup;
|
|||||||
|
|
||||||
use D3\GoogleAnalytics4\Application\Model\Constants;
|
use D3\GoogleAnalytics4\Application\Model\Constants;
|
||||||
use OxidEsales\Eshop\Core\Registry;
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
|
use OxidEsales\Eshop\Core\ViewConfig;
|
||||||
|
|
||||||
class Actions
|
class Actions
|
||||||
{
|
{
|
||||||
@ -19,6 +20,10 @@ class Actions
|
|||||||
public function d3SaveDefaultSettings(string $sVarType, string $sSettingName, string $sSettingValue){
|
public function d3SaveDefaultSettings(string $sVarType, string $sSettingName, string $sSettingValue){
|
||||||
$oConfig = Registry::getConfig();
|
$oConfig = Registry::getConfig();
|
||||||
|
|
||||||
|
if ($this->d3GetModuleConfigParam($sSettingName) and (trim($this->d3GetModuleConfigParam($sSettingName)) !== trim($sSettingValue))){
|
||||||
|
$sSettingValue = trim($this->d3GetModuleConfigParam($sSettingName));
|
||||||
|
}
|
||||||
|
|
||||||
$oConfig->saveShopConfVar(
|
$oConfig->saveShopConfVar(
|
||||||
$sVarType,
|
$sVarType,
|
||||||
Constants::OXID_MODULE_ID.$sSettingName,
|
Constants::OXID_MODULE_ID.$sSettingName,
|
||||||
@ -27,4 +32,13 @@ class Actions
|
|||||||
Constants::OXID_MODULE_ID
|
Constants::OXID_MODULE_ID
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $configParamName
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function d3GetModuleConfigParam(string $configParamName)
|
||||||
|
{
|
||||||
|
return Registry::getConfig()->getShopConfVar(Constants::OXID_MODULE_ID.$configParamName, null, Constants::OXID_MODULE_ID);
|
||||||
|
}
|
||||||
}
|
}
|
@ -43,10 +43,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1",
|
"php": "7.1 - 8.2",
|
||||||
"oxid-esales/oxideshop-ce": "^6.5",
|
"oxid-esales/oxideshop-ce": "^6.5.3",
|
||||||
"google/apiclient":" ^2.0",
|
"google/apiclient":" ^2.0",
|
||||||
"phpstan/phpstan": "^1.10" },
|
"phpstan/phpstan": "^1.10"
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"D3\\GoogleAnalytics4\\": "../../../source/modules/d3/googleanalytics4"
|
"D3\\GoogleAnalytics4\\": "../../../source/modules/d3/googleanalytics4"
|
||||||
|
@ -50,7 +50,7 @@ $aModule = [
|
|||||||
Die Entwicklung basiert auf einem Fork von Marat Bedoev - <a href='https://github.com/vanilla-thunder/oxid-module-gtm'>Github-Link</a>
|
Die Entwicklung basiert auf einem Fork von Marat Bedoev - <a href='https://github.com/vanilla-thunder/oxid-module-gtm'>Github-Link</a>
|
||||||
",
|
",
|
||||||
'thumbnail' => 'thumbnail.png',
|
'thumbnail' => 'thumbnail.png',
|
||||||
'version' => '2.18.0',
|
'version' => '2.19.0',
|
||||||
'author' => 'Data Development (Inh.: Thomas Dartsch)',
|
'author' => 'Data Development (Inh.: Thomas Dartsch)',
|
||||||
'email' => 'support@shopmodule.com',
|
'email' => 'support@shopmodule.com',
|
||||||
'url' => 'https://www.oxidmodule.com/',
|
'url' => 'https://www.oxidmodule.com/',
|
||||||
|
Reference in New Issue
Block a user