Google跟踪代码管理器未注册增强型电子商务交易 [英] Google Tag manager not registering Transactions for enhanced Ecommerce

查看:124
本文介绍了Google跟踪代码管理器未注册增强型电子商务交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是单页结帐,页面显示正常。但是购买交易似乎没有在Google分析中处理。


  • 我的数据层已经上涨

  • ,它似乎在注册购买事件

  • 我在gtm.dom上启用了带有增强型电子商务代码的网页浏览的标记,




这是Datalayer的输出,如果有人能提供帮助的话,我们会非常感激:

  [
{
ecommerce:{
purchase:{
actionField:{
id:145000010,
收入:295,
tax:0.0000,
shipping:5.0000,
coupon:
},
产品:[{
id:ace002,
name:perfume10Lt,
价格: 295.0000,
数量:1.0000
}]
},
currencyCode:USD
},
event:purchase
},
{
gtm.start:1438797700099,
event:gtm.js

ecommerce:{
impressions:0,
promoView:0
}
},
{
event:gtm.dom
},
{
event:gtm.load
}
]

根据评论的要求添加:标签似乎在GTM.dom中被调用,所以我知道它确实运行。



以下是跟踪代码:



以下是触发器

解决方案

改变你的触发器来激发'purchase'事件上的标签。它可能会失败,因为电子商务数据层在gtm.Dom事件发生之前尚未推送。


I am running a single page checkout and the pagevies are showing fine. however the purchase transactions doesn't seem to be being processed in Google analytics.

  • I have the data layer up
  • and it seems to be registering the purchase event,
  • I have tag enabled with a page view on gtm.dom which has the enhanced ecommerce tag ticked,

but still nothing .

Here is the output from the Datalayer if any one can help would be really appreciative :

[  
   {  
      "ecommerce":{  
         "purchase":{  
            "actionField":{  
               "id":"145000010",
               "revenue":295,
               "tax":"0.0000",
               "shipping":"5.0000",
               "coupon":""
            },
            "products":[{  
               "id":"ace002",
               "name":"perfume10Lt",
               "price":"295.0000",
               "quantity":"1.0000"
            }]
         },
         "currencyCode":"USD"
      },
      "event":"purchase"
   },
   {  
      "gtm.start":1438797700099,
      "event":"gtm.js"
   },
   {  
      "ecommerce":{  
         "impressions":0,
         "promoView":0
      }
   },
   {  
      "event":"gtm.dom"
   },
   {  
      "event":"gtm.load"
   }
]

Added as requested by comments: The tag seems be being called at GTM.dom so i know its definitely running.

Here is the tracking tag:

Here is the image from the trigger

解决方案

Change your trigger to fire the tag on the 'purchase' event instead. It may be failing because the ecommerce data layer hasn't been pushed yet before the gtm.Dom event happens.

这篇关于Google跟踪代码管理器未注册增强型电子商务交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆