Google跟踪代码管理器增强了电子商务事件请求

时间:2016-02-12 19:11:48

标签: google-analytics google-tag-manager

我需要详细(希望)澄清通过Google跟踪代码管理器和dataLayer进行增强型电子商务事件跟踪的工作。

我在这里开了一个"事件"在GTM内部的分析标记,当验证以下触发器时:

enter image description here

这里是Tag主要属性:

enter image description here

当我执行相应的" dataLayer.push"时,会正确触发这些事件。在我的电子商务按钮点击。我知道,因为我将这些电子商务事件数据存入Google Analytics,但我无法直接调试图像请求。

我可以检查dataLayer obj如何填充新属性(在最后一个scree下面)但在网络控制台中没有Tag请求。

在这里,我有机会更好地理解" first-in" /"先出"在GTM收听数据层队列时工作。

enter image description here

1 个答案:

答案 0 :(得分:0)

Just pushing values to the dataLayer won't necessarily show anything in the network console. You need to use the dataLayer parameters to:

  1. fire your tags
  2. send data into GA processes (ie. ecommerce)

What you already are pushing is a great start - you have your app/views/solver/solve.html.erb (which is key) and you have your ecommerce object, presumeably containing the information you need to feed into GA. Now you just need to create the tags that fire based on the event, populated with the your ecommerce details.

Once your tag fires, you should then start to see data in GA.

Edit: To see the hits in the Network tab, you would need to filter by the something like the name of the hit (ie. "collect"). Make sure you are not applying any "type" filters (ie. image, XHR, JS, CSS).