简体   繁体   English

尽管执行了DataLayer推送,但Google跟踪代码管理器代码未触发

[英]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推送的图像-尚未触发任何标签(在“标签”标签中-在图片中未显示):

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.

相关问题 Google跟踪代码管理器dataLayer推送未存储对象 - Google Tag manager dataLayer push not storing object Google标记管理器-是否可以通过GTM标记插入dataLayer? - Google tag manager - is it possible to push into dataLayer via GTM tag? 跟踪代码管理器无法识别Google跟踪代码管理器dataLayer - Google Tag Manager dataLayer unrecognized by Tag Manager Google跟踪代码管理器dataLayer持久性 - Google Tag Manager dataLayer persistency 解析eCommerse数据以推送到Google Tag Manager的dataLayer - Parsing eCommerse data to push into dataLayer for Google Tag Manager Google跟踪代码管理器是否“订阅” dataLayer.push? 如果是,怎么办? - Does Google Tag Manager “subscribe” to dataLayer.push? If yes, how? Firefox 增强的隐私保护正在阻止数据层推送到谷歌标签管理器 - Firefox Enhanced Privacy Protection is blocking Datalayer push to Google Tag Manager 如何将表单提交推送到谷歌标签管理器 (gtm) 中的数据层 - How to push a form submission to the dataLayer in google tag manager (gtm) 填充 Google 标签管理器数据层的问题 - Problems Populating the Google Tag Manager datalayer Google跟踪代码管理器和dataLayer中的自定义Javascript变量 - Custom Javascript variable in Google Tag Manager and dataLayer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM