简体   繁体   English

未通过Google跟踪代码管理器在Google Analytics中触发的事件

[英]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.

相关问题 Google跟踪代码管理器在Google Analytics中不可见 - Google Tag Manager hits not visible in Google Analytics 如何使用 Google Tag Manager v5 到 Google Analytics 跟踪电子商务事件? - How to track ecommerce events with Google Tag Manager v5 to Google Analytics? Android - Google Analytics管理器,包含Google Analytics和Firebase Analytics - Android - Google tag Manager with Google Analytics and Firebase Analytics 如何提取Firebase用户参数并通过Google跟踪代码管理器发送给Google Analytics(分析)? - How to extract firebase user parameter and send to google analytics via google tag manager? 带有Facebook Analytics for Apps的Google跟踪代码管理器 - Google Tag Manager with Facebook Analytics for Apps 事件标签 - Google Tag Manager + Firebase + Google Analytics - Event Tag - Google Tag Manager + Firebase + Google Analytics 在Google跟踪代码管理器中将事件推送到DataLayer - Pushing Events to DataLayer in Google Tag Manager 通过标签管理器在Google Analytics v4中进行完整堆栈跟踪 - Full stack traces in Google Analytics v4 via Tag-Manager Google跟踪代码管理器Android V4 Google Analytics(分析)未更新 - Google Tag manager Android V4 Google Analytics is not updating 将Google Analytics与FireBase + Google跟踪代码管理器Android SDK配合使用 - Using Google Analytics with FireBase + Google Tag Manager Android SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM