GoogleAnalytics4/metadata.php

187 lines
7.9 KiB
PHP
Raw Normal View History

2021-07-17 23:22:23 +02:00
<?php
/**
* vanilla-thunder/oxid-module-gtm
* Google Tag Manager Integration for OXID eShop v6.2+
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
**/
$sMetadataVersion = '2.1';
2022-06-09 20:41:59 +02:00
$aModule = [
'id' => 'vt-gtm',
'title' => '[vt] Google Tag Manager',
2021-07-17 23:22:23 +02:00
'description' => 'Google Tag Manager Integration for OXID eShop v6.2+',
2022-06-09 20:41:59 +02:00
'thumbnail' => 'thumbnail.png',
'version' => '0.5.0 ( 2021-07-17 )',
'author' => 'Marat Bedoev',
'email' => openssl_decrypt("Az6pE7kPbtnTzjHlPhPCa4ktJLphZ/w9gKgo5vA//p4=", str_rot13("nrf-128-pop"), str_rot13("gvalzpr")),
'url' => 'https://github.com/vanilla-thunder/oxid-module-gtm',
'extend' => [
2021-07-17 23:22:23 +02:00
\OxidEsales\Eshop\Core\ViewConfig::class => VanillaThunder\GoogleTagManager\Application\Extend\ViewConfig::class
],
2022-06-09 20:41:59 +02:00
'templates' => [
// GA4 events
'ga4_add_payment_info.tpl' => 'vt/GoogleTagManager/Application/views/ga4/add_payment_info.tpl',
'add_shipping_info.tpl' => 'vt/GoogleTagManager/Application/views/ga4/add_shipping_info.tpl',
'ga4_add_to_cart.tpl' => 'vt/GoogleTagManager/Application/views/ga4/add_to_cart.tpl',
'ga4_begin_checkout.tpl' => 'vt/GoogleTagManager/Application/views/ga4/begin_checkout.tpl',
'ga4_generate_lead.tpl' => 'vt/GoogleTagManager/Application/views/ga4/generate_lead.tpl',
'ga4_login.tpl' => 'vt/GoogleTagManager/Application/views/ga4/login.tpl',
'ga4_purchase.tpl' => 'vt/GoogleTagManager/Application/views/ga4/purchase.tpl',
'ga4_remove_from_cart.tpl' => 'vt/GoogleTagManager/Application/views/ga4/remove_from_cart.tpl',
'ga4_search.tpl' => 'vt/GoogleTagManager/Application/views/ga4/search.tpl',
'ga4_select_content.tpl' => 'vt/GoogleTagManager/Application/views/ga4/select_content.tpl',
'ga4_select_item.tpl' => 'vt/GoogleTagManager/Application/views/ga4/select_item.tpl',
'ga4_select_promotion.tpl' => 'vt/GoogleTagManager/Application/views/ga4/select_promotion.tpl',
'ga4_sign_up.tpl' => 'vt/GoogleTagManager/Application/views/ga4/sign_up.tpl',
'ga4_view_cart.tpl' => 'vt/GoogleTagManager/Application/views/ga4/view_cart.tpl',
'ga4_view_item.tpl' => 'vt/GoogleTagManager/Application/views/ga4/view_item.tpl',
'ga4_view_item_list.tpl' => 'vt/GoogleTagManager/Application/views/ga4/view_item_list.tpl',
'ga4_view_promotion.tpl' => 'vt/GoogleTagManager/Application/views/ga4/view_promotion.tpl',
2021-07-17 23:22:23 +02:00
/*
2022-06-09 20:41:59 +02:00
'gtm_ua_impression' => 'vt/GoogleTagManager/Application/views/ua/impression.tpl'
2021-07-17 23:22:23 +02:00
'gtm_view_promotion.tpl' => 'vt/GoogleTagManager/Application/views/view_promotion.tpl',
'gtm_select_promotion.tpl' => 'vt/GoogleTagManager/Application/views/select_promotion.tpl',
'gtm_begin_checkout.tpl' => 'vt/GoogleTagManager/Application/views/begin_checkout.tpl',
*/
],
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',
'file' => '/Application/views/blocks/_gtm_js.tpl'
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
],
// add to cart
[
'template' => 'layout/header.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'header_main',
'file' => '/Application/views/blocks/add_to_cart.tpl'
2021-07-17 23:22:23 +02:00
],
2022-06-09 20:41:59 +02:00
// widget_product_list
2021-07-17 23:22:23 +02:00
[
2022-06-09 20:41:59 +02:00
'template' => 'widget/product/list.tpl',
'block' => 'widget_product_list',
'file' => '/Application/views/blocks/widget_product_list.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',
'file' => '/Application/views/blocks/detail.tpl'
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',
'file' => '/Application/views/blocks/checkout_s1.tpl'
2021-07-17 23:22:23 +02:00
],
[
'template' => 'form/user_checkout_change.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'user_checkout_change',
'file' => '/Application/views/blocks/checkout_s2.tpl'
2021-07-17 23:22:23 +02:00
],
[
'template' => 'form/user_checkout_register.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'user_checkout_register',
'file' => '/Application/views/blocks/checkout_s2.tpl'
2021-07-17 23:22:23 +02:00
],
[
'template' => 'form/user_checkout_noregister.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'user_checkout_noregister',
'file' => '/Application/views/blocks/checkout_s2.tpl'
2021-07-17 23:22:23 +02:00
],
[
'template' => 'page/checkout/payment.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'checkout_payment_main',
'file' => '/Application/views/blocks/checkout_s3.tpl'
2021-07-17 23:22:23 +02:00
],
[
'template' => 'page/checkout/order.tpl',
2022-06-09 20:41:59 +02:00
'block' => 'checkout_order_main',
'file' => '/Application/views/blocks/checkout_s4.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',
'file' => '/Application/views/blocks/checkout_s5.tpl'
2023-01-10 14:22:49 +01:00
],
// Lists
// view_item_list
[
'template' => 'widget/product/list.tpl',
'block' => 'd3Ga4_view_item_list',
'file' => '/Application/views/ga4/view_item_list.tpl'
2023-01-10 15:49:54 +01:00
],
// view_search_result
[
'template' => 'page/search/search.tpl',
'block' => 'search_results',
'file' => '/Application/views/ga4/search.tpl'
2023-01-11 14:43:13 +01:00
],
// add_to_cart
[
'template' => 'page/details/inc/productmain.tpl',
'block' => 'details_productmain_tobasket',
'file' => '/Application/views/ga4/add_to_cart.tpl'
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
[
2022-06-09 20:41:59 +02:00
'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_sContainerID',
'type' => 'str',
'value' => 'GTM-',
2021-07-17 23:22:23 +02:00
'position' => 0
],
[
2022-06-09 20:41:59 +02:00
'group' => 'vt_gtm_settings',
2022-12-20 11:52:25 +01:00
'name' => 'vt_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
'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_blUAenabled',
'type' => 'bool',
'value' => true,
2021-07-17 23:22:23 +02:00
'position' => 2
],
2022-12-20 11:52:25 +01:00
/*[
I have no idea what this is
2022-06-09 20:41:59 +02:00
'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_sMpapisecret',
'type' => 'str',
'value' => '',
2021-07-17 23:22:23 +02:00
'position' => 3
2022-12-20 11:52:25 +01:00
],*/
2021-07-17 23:22:23 +02:00
[
2022-06-09 20:41:59 +02:00
'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_aPromotionlistIDs',
'type' => 'arr',
'value' => [],
2021-07-17 23:22:23 +02:00
'position' => 4
2022-06-09 20:41:59 +02:00
],
[
'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_blEnableDebug',
'type' => 'bool',
'value' => false,
'position' => 999
2021-07-17 23:22:23 +02:00
]
2022-06-09 20:41:59 +02:00
2021-07-17 23:22:23 +02:00
]
];