2021-07-17 23:22:23 +02:00
|
|
|
<?php
|
2023-06-21 15:23:50 +02:00
|
|
|
|
2023-08-03 14:57:26 +02:00
|
|
|
use D3\GoogleAnalytics4\Modules\Application\Controller\BasketController;
|
2023-06-22 10:37:09 +02:00
|
|
|
use D3\GoogleAnalytics4\Modules\Application\Model\Basket as Basket;
|
2023-06-21 15:23:50 +02:00
|
|
|
use D3\GoogleAnalytics4\Modules\Application\Model\Category as Category;
|
2023-08-15 11:52:46 +02:00
|
|
|
use D3\GoogleAnalytics4\Modules\Application\Model\Manufacturer as Manufacturer;
|
2023-01-19 15:31:56 +01:00
|
|
|
use D3\GoogleAnalytics4\Modules\Core\ViewConfig;
|
2023-08-03 14:57:26 +02:00
|
|
|
use OxidEsales\Eshop\Application\Controller\BasketController as OEBasketController;
|
2023-06-22 10:37:09 +02:00
|
|
|
use OxidEsales\Eshop\Application\Model\Basket as OEBasket;
|
2023-06-21 15:23:50 +02:00
|
|
|
use OxidEsales\Eshop\Application\Model\Category as OECategory;
|
2023-08-15 11:52:46 +02:00
|
|
|
use OxidEsales\Eshop\Application\Model\Manufacturer as OEManufacturer;
|
2023-01-19 15:31:56 +01:00
|
|
|
use OxidEsales\Eshop\Core\ViewConfig as OEViewConfig;
|
2021-07-17 23:22:23 +02:00
|
|
|
|
|
|
|
$sMetadataVersion = '2.1';
|
2022-06-09 20:41:59 +02:00
|
|
|
$aModule = [
|
2023-01-19 15:31:56 +01:00
|
|
|
'id' => 'd3googleanalytics4',
|
|
|
|
'title' => 'Google Analytics 4',
|
2023-01-20 09:33:36 +01:00
|
|
|
'description' => "Dieses Modul bietet die Möglichkeit in Ihrem OXID eShop (6.x) die neue 'Property'
|
|
|
|
Google Analytics 4 (GA4) von Google zu integrieren.<br>
|
|
|
|
Hierfür stehen Ihnen verschiedene 'templates' zur verfügung,
|
|
|
|
mit denen Sie bestimmte Events tracken können.<br>
|
2023-01-20 11:04:22 +01:00
|
|
|
Beispiele dafür sind: view_item, add_to_basket, purchase, ...<br><br>
|
|
|
|
Die Integration und Verbindung zu Google wird mithilfe des gtag (Google Tag Manager) realisiert.<br><br>
|
|
|
|
Weiterführende Informationen: https://developers.google.com/analytics/devguides/collection/ga4<br>
|
|
|
|
<hr>
|
|
|
|
Die Entwicklung basiert auf einem Fork von Marat Bedoev - <a href='https://github.com/vanilla-thunder/oxid-module-gtm'>Github-Link</a>
|
2023-01-20 09:33:36 +01:00
|
|
|
",
|
2022-06-09 20:41:59 +02:00
|
|
|
'thumbnail' => 'thumbnail.png',
|
2023-09-13 16:00:12 +02:00
|
|
|
'version' => '2.13.0',
|
2023-01-19 15:31:56 +01:00
|
|
|
'author' => 'Data Development (Inh.: Thomas Dartsch)',
|
|
|
|
'email' => 'support@shopmodule.com',
|
|
|
|
'url' => 'https://www.oxidmodule.com/',
|
2022-06-09 20:41:59 +02:00
|
|
|
'extend' => [
|
2023-06-21 15:23:50 +02:00
|
|
|
OEViewConfig::class => ViewConfig::class,
|
2023-06-22 10:37:09 +02:00
|
|
|
OECategory::class => Category::class,
|
2023-08-15 11:52:46 +02:00
|
|
|
OEManufacturer::class => Manufacturer::class,
|
2023-08-03 14:57:26 +02:00
|
|
|
OEBasket::class => Basket::class,
|
|
|
|
OEBasketController::class => BasketController::class
|
2021-07-17 23:22:23 +02:00
|
|
|
],
|
2023-06-23 15:08:09 +02:00
|
|
|
'templates' => [],
|
2022-06-09 20:41:59 +02:00
|
|
|
'blocks' => [
|
2021-07-17 23:22:23 +02:00
|
|
|
// tag manager js
|
|
|
|
[
|
|
|
|
'template' => 'layout/base.tpl',
|
2022-06-09 20:41:59 +02:00
|
|
|
'block' => 'head_meta_robots',
|
2023-05-24 11:09:36 +02:00
|
|
|
'file' => '/Application/views/blocks/_gtm_js.tpl',
|
|
|
|
'position' => 150
|
2021-07-17 23:22:23 +02:00
|
|
|
],
|
|
|
|
// tag manager nojs
|
|
|
|
[
|
|
|
|
'template' => 'layout/base.tpl',
|
2022-06-09 20:41:59 +02:00
|
|
|
'block' => 'theme_svg_icons',
|
|
|
|
'file' => '/Application/views/blocks/_gtm_nojs.tpl'
|
2021-07-17 23:22:23 +02:00
|
|
|
],
|
|
|
|
// details
|
|
|
|
[
|
|
|
|
'template' => 'page/details/inc/productmain.tpl',
|
2022-06-09 20:41:59 +02:00
|
|
|
'block' => 'details_productmain_title',
|
2023-05-23 10:06:21 +02:00
|
|
|
'file' => '/Application/views/blocks/view_item.tpl',
|
2023-01-16 15:25:59 +01:00
|
|
|
'position' => 150
|
2021-07-17 23:22:23 +02:00
|
|
|
],
|
|
|
|
// checkout
|
|
|
|
[
|
|
|
|
'template' => 'page/checkout/basket.tpl',
|
2022-06-09 20:41:59 +02:00
|
|
|
'block' => 'checkout_basket_main',
|
2023-06-21 15:23:50 +02:00
|
|
|
'file' => '/Application/views/blocks/view_cart.tpl'
|
2021-07-17 23:22:23 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'template' => 'page/checkout/thankyou.tpl',
|
2022-06-09 20:41:59 +02:00
|
|
|
'block' => 'checkout_thankyou_main',
|
2023-06-21 15:47:06 +02:00
|
|
|
'file' => '/Application/views/blocks/purchase.tpl'
|
2023-01-10 14:22:49 +01:00
|
|
|
],
|
|
|
|
// Lists
|
|
|
|
// view_item_list
|
|
|
|
[
|
2023-05-30 16:41:59 +02:00
|
|
|
'template' => 'page/list/list.tpl',
|
|
|
|
'block' => 'page_list_productlist',
|
2023-01-26 15:31:45 +01:00
|
|
|
'file' => '/Application/views/ga4/view_item_list.tpl',
|
|
|
|
'position' => 150
|
2023-01-10 15:49:54 +01:00
|
|
|
],
|
|
|
|
// view_search_result
|
|
|
|
[
|
|
|
|
'template' => 'page/search/search.tpl',
|
|
|
|
'block' => 'search_results',
|
2023-06-21 15:43:43 +02:00
|
|
|
'file' => '/Application/views/ga4/view_search_result.tpl',
|
2023-01-26 15:31:45 +01:00
|
|
|
'position' => 150
|
2023-01-11 14:43:13 +01:00
|
|
|
],
|
|
|
|
// add_to_cart
|
|
|
|
[
|
|
|
|
'template' => 'page/details/inc/productmain.tpl',
|
|
|
|
'block' => 'details_productmain_tobasket',
|
2023-01-26 09:09:09 +01:00
|
|
|
'file' => '/Application/views/ga4/add_to_cart.tpl',
|
|
|
|
'position' => 150
|
2023-08-03 14:57:26 +02:00
|
|
|
],
|
|
|
|
// remove_from_cart
|
|
|
|
[
|
|
|
|
'template' => 'page/checkout/basket.tpl',
|
|
|
|
'block' => 'checkout_basket_main',
|
|
|
|
'file' => '/Application/views/ga4/remove_from_cart.tpl',
|
|
|
|
'position' => 150
|
2021-07-17 23:22:23 +02:00
|
|
|
]
|
|
|
|
],
|
2022-06-09 20:41:59 +02:00
|
|
|
'settings' => [
|
2021-07-17 23:22:23 +02:00
|
|
|
[
|
2023-01-27 08:59:06 +01:00
|
|
|
'group' => 'd3_gtm_settings',
|
|
|
|
'name' => 'd3_gtm_sContainerID',
|
2022-06-09 20:41:59 +02:00
|
|
|
'type' => 'str',
|
|
|
|
'value' => 'GTM-',
|
2021-07-17 23:22:23 +02:00
|
|
|
'position' => 0
|
|
|
|
],
|
|
|
|
[
|
2023-01-27 08:59:06 +01:00
|
|
|
'group' => 'd3_gtm_settings',
|
2023-01-27 09:07:22 +01:00
|
|
|
'name' => 'd3_gtm_blGA4enab',
|
2022-06-09 20:41:59 +02:00
|
|
|
'type' => 'bool',
|
|
|
|
'value' => true,
|
2021-07-17 23:22:23 +02:00
|
|
|
'position' => 1
|
|
|
|
],
|
2022-06-09 20:41:59 +02:00
|
|
|
[
|
2023-01-27 08:59:06 +01:00
|
|
|
'group' => 'd3_gtm_settings',
|
|
|
|
'name' => 'd3_gtm_blEnableDebug',
|
2022-06-09 20:41:59 +02:00
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false,
|
|
|
|
'position' => 999
|
2023-01-17 14:42:17 +01:00
|
|
|
],
|
|
|
|
[
|
2023-01-27 08:59:06 +01:00
|
|
|
'group' => 'd3_gtm_settings_cookiemanager',
|
|
|
|
'name' => 'd3_gtm_settings_hasOwnCookieManager',
|
2023-01-17 14:42:17 +01:00
|
|
|
'type' => 'bool',
|
|
|
|
'value' => false,
|
|
|
|
'position' => 999
|
|
|
|
],
|
|
|
|
[
|
2023-01-27 08:59:06 +01:00
|
|
|
'group' => 'd3_gtm_settings_cookiemanager',
|
2023-09-13 15:08:58 +02:00
|
|
|
'name' => 'd3_gtm_settings_controlParameter',
|
2023-01-17 14:42:17 +01:00
|
|
|
'type' => 'str',
|
2023-09-13 15:13:35 +02:00
|
|
|
'value' => '',
|
2023-01-17 14:42:17 +01:00
|
|
|
'position' => 999
|
|
|
|
],
|
2023-05-15 15:06:25 +02:00
|
|
|
[
|
|
|
|
'group' => 'd3_gtm_settings_cookiemanager',
|
2023-05-23 14:33:35 +02:00
|
|
|
'name' => 'd3_gtm_settings_HAS_STD_MANAGER',
|
2023-05-15 15:06:25 +02:00
|
|
|
'type' => 'select',
|
|
|
|
'value' => 'none',
|
2023-09-07 15:08:06 +02:00
|
|
|
'constraints' => 'NONE|CONSENTMANAGER|USERCENTRICS|COOKIEFIRST|COOKIEBOT',
|
2023-05-15 15:06:25 +02:00
|
|
|
],
|
2021-07-17 23:22:23 +02:00
|
|
|
]
|
|
|
|
];
|