Merge remote-tracking branch 'remotes/origin/rel_2.x'
This commit is contained in:
commit
8a643a0b8a
|
@ -31,11 +31,11 @@ $aLang = [
|
||||||
// for cookie manager settings
|
// for cookie manager settings
|
||||||
'SHOP_MODULE_GROUP_d3_gtm_settings_cookiemanager' => 'Cookie Manager Einstellungen',
|
'SHOP_MODULE_GROUP_d3_gtm_settings_cookiemanager' => 'Cookie Manager Einstellungen',
|
||||||
'SHOP_MODULE_d3_gtm_settings_hasOwnCookieManager' => 'Cookie Manager nutzen?',
|
'SHOP_MODULE_d3_gtm_settings_hasOwnCookieManager' => 'Cookie Manager nutzen?',
|
||||||
'HELP_SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER' => 'Mehr Informationen zu den genannten Coookie-Manager finden Sie auf den folgenden Home-Pages<br>
|
'HELP_SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER' => 'Mehr Informationen zu den genannten Coookie-Manager finden Sie auf den folgenden Home-Pages<br><br>
|
||||||
<a href="https://consentmanager.net/">Consentmanager</a><br>
|
<a href="https://consentmanager.net/">Consentmanager</a><br>
|
||||||
<a href="https://usercentrics.com/">Usercentrics</a><br>
|
<a href="https://usercentrics.com/">Usercentrics</a><br>
|
||||||
<a href="https://cookiefirst.com">Cookiefirst</a><br>
|
<a href="https://cookiefirst.com">Cookiefirst</a><br>
|
||||||
|
<hr>
|
||||||
Bei weiteren Fragen stehen wir gern zur Verfügung! Kontaktieren Sie uns einfach unter <a href="https://www.d3data.de/">https://www.d3data.de/</a>',
|
Bei weiteren Fragen stehen wir gern zur Verfügung! Kontaktieren Sie uns einfach unter <a href="https://www.d3data.de/">https://www.d3data.de/</a>',
|
||||||
'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER' => 'Nutzen Sie eine der folgenden Einbindungen?<br>
|
'SHOP_MODULE_d3_gtm_settings_HAS_STD_MANAGER' => 'Nutzen Sie eine der folgenden Einbindungen?<br>
|
||||||
Dann wählen Sie bitte die zutreffende aus.',
|
Dann wählen Sie bitte die zutreffende aus.',
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[{$smarty.block.parent}]
|
[{$smarty.block.parent}]
|
||||||
|
|
||||||
[{include file="event/view_cart.tpl"}]
|
[{include file="event/view_cart.tpl"}]
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[{$smarty.block.parent}]
|
[{$smarty.block.parent}]
|
||||||
|
|
||||||
[{include file="event/view_item.tpl"}]
|
[{include file="event/view_item.tpl"}]
|
||||||
|
|
15
CHANGELOG.md
15
CHANGELOG.md
|
@ -4,8 +4,20 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [2.15.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.14.0...2.15.0) - 2024-02-05
|
||||||
|
### Fixed
|
||||||
|
- missing Component-ArticleDetails extension, missing ManufacturerListController extension
|
||||||
|
|
||||||
|
## [2.14.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.13.1...2.14.0) - 2023-01-22
|
||||||
|
### Added
|
||||||
|
- add_to_cart Event to several new shop-pages (landing-page, Account, category article-list, start)
|
||||||
|
- PHPStan code-cleanup
|
||||||
|
### Changed
|
||||||
|
- template structure
|
||||||
|
- code cleanup
|
||||||
|
|
||||||
## [2.13.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.13.0...2.13.1) - 2023-01-03
|
## [2.13.1](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.13.0...2.13.1) - 2023-01-03
|
||||||
## Fixed
|
### Fixed
|
||||||
- error on array-count at zero entries
|
- error on array-count at zero entries
|
||||||
|
|
||||||
## [2.13.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.12.0...2.13.0) - 2023-09-13
|
## [2.13.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/2.12.0...2.13.0) - 2023-09-13
|
||||||
|
@ -129,6 +141,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
## [2.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.1...2.0) - 2023-01-20
|
## [2.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.1...2.0) - 2023-01-20
|
||||||
### Added
|
### Added
|
||||||
- using of ContainerFactory in ViewConfig
|
- using of ContainerFactory in ViewConfig
|
||||||
|
|
||||||
## [1.15.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.14.0...1.15.0) - 2024-01-25
|
## [1.15.0](https://git.d3data.de/D3Public/GoogleAnalytics4/compare/1.14.0...1.15.0) - 2024-01-25
|
||||||
### Fixed
|
### Fixed
|
||||||
- missing Component-ArticleDetails extension, missing ManufacturerListController extension
|
- missing Component-ArticleDetails extension, missing ManufacturerListController extension
|
||||||
|
|
|
@ -10,38 +10,7 @@ Tragen Sie hier im Normalfall die ID des zu prüfenden Cookies ein.
|
||||||
In bestimmten Fällen, müssen Sie hier alternative Werte eintragen. Diese Fälle sind bedingt
|
In bestimmten Fällen, müssen Sie hier alternative Werte eintragen. Diese Fälle sind bedingt
|
||||||
nach der gewählten CMP (Consent Manager Platform).
|
nach der gewählten CMP (Consent Manager Platform).
|
||||||
|
|
||||||
> nähere Infos unter [CMP](#consent-manager-platform-cmp)
|
> nähere Infos unter [CMP](#consent-manager-platform-cmp)
|
||||||
|
|
||||||
## Blöcke
|
|
||||||
Für den geregelten Ablauf sind folgende Blöcke nötig:
|
|
||||||
- Suchergebnisse
|
|
||||||
- Blockname: search_results
|
|
||||||
- Datei: page/search/search.tpl
|
|
||||||
- GA4 Event: view_search_results
|
|
||||||
- Artikelliste
|
|
||||||
- Blockname: page_list_productlist
|
|
||||||
- Datei: page/list/list.tpl
|
|
||||||
- GA4 Event: view_item_list
|
|
||||||
- Detailseite
|
|
||||||
- Blockname: details_productmain_title
|
|
||||||
- Datei: page/details/inc/productmain.tpl
|
|
||||||
- GA4 Event: view_item
|
|
||||||
- dem WK hinzufügen (button)
|
|
||||||
- Blockname: details_productmain_tobasket
|
|
||||||
- Datei: page/details/inc/productmain.tpl
|
|
||||||
- GA4 Event: add_to_cart
|
|
||||||
- aus dem WK entfernen
|
|
||||||
- Blockname: checkout_basket_main
|
|
||||||
- Datei: page/checkout/basket.tpl
|
|
||||||
- GA4 Event: remove_from_cart
|
|
||||||
- Warenkorb
|
|
||||||
- Blockname: checkout_basket_main
|
|
||||||
- Datei: page/checkout/basket.tpl
|
|
||||||
- GA4 Event: view_cart
|
|
||||||
- abgeschlossener Kauf
|
|
||||||
- Blockname: checkout_thankyou_main
|
|
||||||
- Datei: page/checkout/thankyou.tpl
|
|
||||||
- GA4 Event: purchase
|
|
||||||
|
|
||||||
## Verfügbare Datalayer Variablen
|
## Verfügbare Datalayer Variablen
|
||||||
Für die einfachste Übersicht der enthaltenen Daten empfehle ich den Vorschau-Modus vom Google Tag Manager.
|
Für die einfachste Übersicht der enthaltenen Daten empfehle ich den Vorschau-Modus vom Google Tag Manager.
|
||||||
|
@ -80,7 +49,7 @@ Aktivieren Sie anschließend diese Weiche. Setzen Sie den Haken bei "Eigenen Coo
|
||||||
- In der Usercentrics-Verwaltung die Services "Google Analytics" und "Google Tag Manager" anlegen
|
- In der Usercentrics-Verwaltung die Services "Google Analytics" und "Google Tag Manager" anlegen
|
||||||
- Den Service ```Google Tag Manager``` in den Moduleinstellungen des 'Google Analytics 4' unter
|
- Den Service ```Google Tag Manager``` in den Moduleinstellungen des 'Google Analytics 4' unter
|
||||||
Google Tag Manager eintragen
|
Google Tag Manager eintragen
|
||||||
-
|
|
||||||
- [Consent Management Provider](https://www.consentmanager.net/)
|
- [Consent Management Provider](https://www.consentmanager.net/)
|
||||||
- In der Consentmanager-Oberfläche den Anbieter "Google Tag Manager" mit der ID s905 hinzufügen
|
- In der Consentmanager-Oberfläche den Anbieter "Google Tag Manager" mit der ID s905 hinzufügen
|
||||||
- Im Frontend, im consentmanager-Pop-up nach dem 'Google Tag Manager' suchen
|
- Im Frontend, im consentmanager-Pop-up nach dem 'Google Tag Manager' suchen
|
||||||
|
@ -88,6 +57,9 @@ Aktivieren Sie anschließend diese Weiche. Setzen Sie den Haken bei "Eigenen Coo
|
||||||
- prüfen, ob ein Cookie vorgegeben ist
|
- prüfen, ob ein Cookie vorgegeben ist
|
||||||
- sonst, in der Consentmanager-Oberfläche Cookie-Liste entsprechendes Cookie suchen und im Admin unter
|
- sonst, in der Consentmanager-Oberfläche Cookie-Liste entsprechendes Cookie suchen und im Admin unter
|
||||||
```Einstell. > Cookie Manager Einstellungen > Cookie-ID``` eintragen
|
```Einstell. > Cookie Manager Einstellungen > Cookie-ID``` eintragen
|
||||||
|
|
||||||
- [Cookiebot](https://www.cookiebot.com)
|
- [Cookiefirst](https://cookiefirst.com)
|
||||||
- Nähere Informationen folgen bald! Bis dato, besuchen Sie bitte die offizielle Webseite.
|
- im Cookiefirst-Hub das jeweilige Cookie finden underen zugeordnete Kategorie kopieren
|
||||||
|
- die kopierte Kategory wird nun in den Einstellungen des Moduls hinterlegt:
|
||||||
|
```Erweiterungen > Module > Google Analytics 4 > Einstell. > Cookie Manager Einstellungen > Steuerungsparameter (vormals CookieID)```
|
||||||
|
- **Wichtig!** bei Nutzung des Consent-Managers von Google, muss zwangsläufig die Einstellung "Cookie manager Nutzen?" __ausgeschalten!__ werden
|
|
@ -120,4 +120,4 @@ class BasketController extends BasketController_parent
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,14 +62,6 @@ class ViewConfig extends ViewConfig_parent
|
||||||
return (bool) Registry::getConfig()->getConfigParam('d3_gtm_settings_hasOwnCookieManager');
|
return (bool) Registry::getConfig()->getConfigParam('d3_gtm_settings_hasOwnCookieManager');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function shallUseOwnCookieManager()
|
|
||||||
{
|
|
||||||
return (bool) Registry::getConfig()->getConfigParam('d3_gtm_settings_hasOwnCookieManager');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -181,7 +173,6 @@ class ViewConfig extends ViewConfig_parent
|
||||||
|
|
||||||
$oConfig = Registry::getConfig();
|
$oConfig = Registry::getConfig();
|
||||||
$oView = $oConfig->getTopActiveView();
|
$oView = $oConfig->getTopActiveView();
|
||||||
|
|
||||||
/** @var User|false|null $oUser */
|
/** @var User|false|null $oUser */
|
||||||
$oUser = $oConfig->getUser();
|
$oUser = $oConfig->getUser();
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
"php": ">=7.1",
|
"php": ">=7.1",
|
||||||
"oxid-esales/oxideshop-ce": "^6.5",
|
"oxid-esales/oxideshop-ce": "^6.5",
|
||||||
"google/apiclient":" ^2.0",
|
"google/apiclient":" ^2.0",
|
||||||
"phpstan/phpstan": "^1.8" },
|
"phpstan/phpstan": "^1.10"
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"D3\\GoogleAnalytics4\\": "../../../source/modules/d3/googleanalytics4"
|
"D3\\GoogleAnalytics4\\": "../../../source/modules/d3/googleanalytics4"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use D3\GoogleAnalytics4\Modules\Application\Component\d3GtmBasketComponentExtension;
|
||||||
|
use D3\GoogleAnalytics4\Modules\Application\Component\Widget\d3GtmWidgetArticleDetails as d3GtmWidgetArticleDetails;
|
||||||
|
use D3\GoogleAnalytics4\Modules\Application\Controller\ArticleDetailsController;
|
||||||
|
use D3\GoogleAnalytics4\Modules\Application\Controller\ArticleListController_AddToCartHelpMethods;
|
||||||
use D3\GoogleAnalytics4\Modules\Application\Controller\BasketController;
|
use D3\GoogleAnalytics4\Modules\Application\Controller\BasketController;
|
||||||
use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountNoticeListController;
|
use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountNoticeListController;
|
||||||
use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountRecommlistController;
|
use D3\GoogleAnalytics4\Modules\Application\Controller\d3GtmAccountRecommlistController;
|
||||||
|
@ -45,7 +48,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.13.1',
|
'version' => '2.15.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/',
|
||||||
|
|
11
phpstan.neon
11
phpstan.neon
|
@ -1,16 +1,15 @@
|
||||||
parameters:
|
parameters:
|
||||||
scanFiles:
|
scanFiles:
|
||||||
- IntelliSenseHelper.php
|
- IntelliSenseHelper.php
|
||||||
- ../../../../Shops/CE/6.1.x/616_/vendor/oxid-esales/oxideshop-ce/source/bootstrap.php
|
- ../../oxid-esales/oxideshop-ce/source/bootstrap.php
|
||||||
- ../../../../Shops/CE/6.1.x/616_/vendor/oxid-esales/oxideshop-ce/source/oxfunctions.php
|
- ../../oxid-esales/oxideshop-ce/source/oxfunctions.php
|
||||||
- ../../../../Shops/CE/6.1.x/616_/vendor/oxid-esales/oxideshop-ce/source/overridablefunctions.php
|
- ../../oxid-esales/oxideshop-ce/source/overridablefunctions.php
|
||||||
scanDirectories:
|
scanDirectories:
|
||||||
- ../../../../Shops/CE/6.1.x/616_/vendor/oxid-esales
|
- ../../oxid-esales
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#.*is not subtype of Throwable.*#'
|
- '#.*is not subtype of Throwable.*#'
|
||||||
- '#\$sValue of method OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController::addTplParam\(\) expects string,[ a-zA-Z\.]+#'
|
|
||||||
paths:
|
paths:
|
||||||
- ./
|
- ./
|
||||||
level: 5
|
level: 5
|
||||||
phpVersion: 70200
|
phpVersion: 80100
|
||||||
checkMissingIterableValueType: false
|
checkMissingIterableValueType: false
|
||||||
|
|
Loading…
Reference in New Issue