[英]Events not firing in Google Analytics via Google Tag Manager
I have been searching high and low for an answer on this and I am completly dumbfounded. 我一直在寻找这个答案的高低,我完全傻眼了。
I am implementing simple click and page tracking in my Android app using GA, running this through GTM. 我正在使用GA在我的Android应用中实现简单的点击和页面跟踪,通过GTM运行。 All my "Screens" are visible in realtime in GA but I can't get "Events" to appear at all. 所有我的“屏幕”都可以在GA中实时显示,但我无法让“事件”出现。
Well actually I can but the behaviour seems very bizarre. 实际上我可以,但行为似乎非常离奇。 If I do not include a "Label" and a "Value" I can see the events appear. 如果我不包含“标签”和“值”,我可以看到事件出现。 However if I add them (either as just a constant or a data layer variable) all events stop. 但是,如果我添加它们(无论是常量还是数据层变量),所有事件都会停止。 I have confirmed the variables I want in "Label" and "Value" are coming through as I made a container with those values as "Category" and "Action" and could see them as expected in real time. 我已经确认了我想要的变量“Label”和“Value”正在通过,因为我创建了一个容器,其中这些值为“Category”和“Action”,并且可以实时看到它们。
This leads me to think the app side implementation is perfectly fine but there is an issue with my tag in GTM. 这让我觉得应用程序端实现完全没问题,但我的GTM中的标签存在问题。 (Obviously not the Trigger as that too works when expected). (显然不是触发器,因为它在预期时也起作用)。
Ideally I would like to do something like this (the variables are data layer variables): 理想情况下,我想做这样的事情(变量是数据层变量):
But this doesn't work. 但这不起作用。 I see no Events. 我看不到任何事件。
The Event Value should be a number, not a string. 事件值应该是数字,而不是字符串。 Shuffle the fields, for example - Action - Click on: {{GTM - Click Target}}, Label - {{GTM - Click Value}}, and leave the value empty, this will fix your problem. 例如,移动字段 - 操作 - 单击:{{GTM - 单击目标}},标签 - {{GTM - 单击值}},并将值保留为空,这将解决您的问题。
Make sure, you have correctly setted up Click listener. 确保您已正确设置Click侦听器。
Enable when defines when is listener available and where is applied to the all DOM elements. 定义何时侦听器可用以及何处应用于所有DOM元素时启用。
Fire ON defines conditions, so in your case it could be {{event}} equals gtm.click or {{event}} equals gtm.linkClick . Fire ON定义条件,因此在您的情况下, {{event}}等于gtm.click或{{event}}等于gtm.linkClick 。
This is the most common pitfall when setting listeners 这是设置监听器时最常见的陷阱
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.