[英]Google Tag Manager tag not triggered despite DataLayer push being executed
Strictly following https://www.rheinwunder.com/blog/analytics-conversion-funnel-ajax-gtm/ tutorial, I have setup GA Destination Goal using dataLayer and Virtual Pageviews through Google Tag Manager. 严格遵循https://www.rheinwunder.com/blog/analytics-conversion-funnel-ajax-gtm/教程,我通过Google跟踪代码管理器使用dataLayer和虚拟网页浏览量设置了GA目标目标。 dataLayer.push-es do occur, yet, only one of my tags is actually firing. 确实发生了dataLayer.push-es,但是实际上只有我的一个标记正在触发。 I have set all tags and triggers in the same fashion and checked over and over again. 我以相同的方式设置了所有标签和触发器,并一遍又一遍地检查。 So, I get tag fired for '/signup-confirm' virtual URL, while for '/signup-step-1', '/signup-step-2', the tags are not firing. 因此,我为“ / signup-confirm”虚拟URL触发了标签,而对于“ / signup-step-1”,“ / signup-step-2”,则未触发标签。
My datalayer handling code looks like this (every dataLayer.push is set to some button's onclick() function): 我的数据层处理代码如下所示(每个dataLayer.push都设置为某个按钮的onclick()函数):
dataLayer.push({'event':'signup', 'virtualPageURL':'/signup-confirm', 'virtualPageTitle' : 'Signup confirm'});
dataLayer.push({'event':'signup', 'virtualPageURL':'/signup-step-2', 'virtualPageTitle' : 'Signup - Step 2'});
As I previously said, the tags and the triggers are set in the same fashion and doublechecked. 正如我之前所说的,标记和触发器以相同的方式设置并仔细检查。 I can't really tell what's going on? 我真的不能说是怎么回事? Just see no differences. 没什么区别。
Image of dataLayer push being pushed - yet no Tag is triggered ( in Tags tab - not seen in picture): 推送了dataLayer推送的图像-尚未触发任何标签(在“标签”标签中-在图片中未显示):
jQuery library is used. 使用jQuery库。
The tutorial you're referring to suggest that you have a Custom event Trigger for 'signup' event and you're using this trigger to fire the Google Analytics Tag. 您所指的教程建议您有一个“注册”事件的自定义事件触发器,并且正在使用此触发器来触发Google Analytics(分析)标记。 I'd suggest you to double-check the trigger configuration. 我建议您仔细检查触发器配置。 You can also switch to 'Tags' tab in GTM debug panel to check what particular triggers work for your Analytics Tag. 您还可以在GTM调试面板中切换到“代码”标签,以检查哪些特定触发条件对您的Google Analytics(分析)代码有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.