aqeltech/module-breeze-mirasvit-gtm

AQELTech - Breezefront Mirasvit GTM 集成

1.0.0 2024-06-21 11:42 UTC

This package is auto-updated.

Last update: 2024-09-23 13:01:11 UTC


README

描述

此扩展尽力集成Mirasvit供应商的Google Tag Manager扩展的所有前台功能。

所需补丁

mirasvit/module-gtm/src/GoogleTagManager/view/frontend/web/js/layer.js

@@ -10,9 +10,9 @@
         initialize: function () {
             this._super();
 
-            const gtm = customerData.get('gtm');
+            const gtm = $.customerData.get('gtm');
 
-            customerData.reload(['gtm'], false);
+            $.customerData.reload(['gtm'], false);
 
             gtm.subscribe(this.onUpdate);
         },

mirasvit/module-gtm/src/GoogleTagManager/view/frontend/web/js/event/addtocart.js

@@ -10,9 +10,9 @@
         initialize: function () {
             this._super();
 
-            const tm = customerData.get('mst-tm-addtocart');
+            const tm = $.customerData.get('mst-tm-addtocart');
 
-            customerData.reload(['mst-tm-addtocart'], false);
+            $.customerData.reload(['mst-tm-addtocart'], false);
 
             tm.subscribe(this.onUpdate);
         },

安装

composer require aqeltech/module-breeze-mirasvit-gtm
bin/magento module:enable AQELTech_BreezeMirasvitGTM