简体   繁体   English

Magento2.2.0 社区版 Google Analytics 交易跟踪问题

[英]Magento2.2.0 Community Edition Google Analytics Transaction Tracking issue

I am using Magento 2.2.0 Community Edition for one of our projects.我正在为我们的一个项目使用 Magento 2.2.0 社区版。 We have implemented Google Tag Manager and Google Analytics as per the Magento2 Guidelines.我们已经按照 Magento2 指南实施了 Google 标签管理器和 Google Analytics。

After few days we came to know that our transactions are working properly but Tag Manager is showing 2 times (in Google Chrome Add ON - Google Tag Assistant).几天后,我们才知道我们的交易工作正常,但标签管理器显示 2 次(在 Google Chrome Add ON - Google Tag Assistant 中)。

Because of this Google Tag Manager showing twice issue we have implemented the solution as given in this following link.由于这个谷歌标签管理器显示了两次问题,我们已经实施了以下链接中给出的解决方案。

https://github.com/magento/magento2/issues/12221 https://github.com/magento/magento2/issues/12221

Then tag manager is showing only one time but google transactions are not working.然后标签管理器只显示一次,但谷歌交易不起作用。

We searched on this then we come to know that this issue has been fixed in Magento v 2.2.6.我们对此进行了搜索,然后我们才知道此问题已在 Magento v 2.2.6 中修复。 Hence we just copied their "google-analytics.js" file to our version 2.2.0 .因此,我们只是将他们的“google-analytics.js”文件复制到了我们的 2.2.0 版本。

After that our google tag manager is showing only one time but still transaction is not been send to Google.之后我们的谷歌标签管理器只显示一次,但交易仍未发送给谷歌。 The transaction tracking is completely stopped.事务跟踪完全停止。 Is there any solution?有什么解决办法吗? Is there any update for Magento v 2.2.0? Magento v 2.2.0 有更新吗? Because we cannot upgrade our magento to latest one.因为我们无法将我们的 magento 升级到最新版本。

Do you use a custom success page?您是否使用自定义成功页面? If so, you need to make sure that the google conversion tracking script is actually rolled out there and is provided with the correct values for the conversion.如果是这样,您需要确保 google 转换跟踪脚本确实在那里推出,并提供了正确的转换值。 We had to manually load the codesnippet to the success page in order to get conversion tracking back up and running.我们必须手动将代码片段加载到成功页面,以便恢复并运行转换跟踪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM