简体   繁体   English

如何使用谷歌标记管理器为magento网站获取谷歌anlaytics中的“购物行为分析”

[英]How to get 'Shopping Behavior Analysis' in google anlaytics using google tag manager for magento sites

I am using Google tag manager in order to implement Enhanced ECommerce for a magento site, I have tried the 'universal tag' with track type 'Transaction' with the following rule 我正在使用Google代码管理器为magento网站实施增强型电子商务,我尝试使用以下规则跟踪类型为“交易”的“通用代码”

在此输入图像描述

I get the result of "Product Performance" and "Sales Performance" however i am not getting any result for 'Sessions with Product Views,Add to Cart,Transaction' for "Shopping Behavior analysis" I have also tried it using datalayer push method for product view page as 我得到了“产品性能”和“销售业绩”的结果但是我没有得到任何结果“产品视图的会话,添加到购物车,交易”的“购物行为分析”我也尝试使用datalayer push方法产品视图页面为

dataLayer.push({
'event': 'productDetails', 
'ecommerce': {
    'detail': {

        'products': [{
        'name': ProductName,         
        'id': id


         }]
     }
 }});

which shows the datalayer after the event is fired but the shopping behavior still does not change. 在事件被触发后显示数据层,但购物行为仍未改变。

So is there any other way using which i can get proper data in my GA for shopping behavior in enhanced ecommerce.Thank you in advance. 那么有没有其他方法可以使用我的GA在我的GA中获得适当的数据来增强电子商务中的购物行为。谢谢你提前。

You don't need to use transaction type at all when using enhanced ecommerce. 使用增强型电子商务时,您根本不需要使用交易类型。 Here is the guide https://developers.google.com/tag-manager/enhanced-ecommerce#details 以下是https://developers.google.com/tag-manager/enhanced-ecommerce#details指南

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

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