未使用UA和GTM触发的事件 - 事件等于gtm.js条件不匹配 [英] Events not firing with UA and GTM - event equals gtm.js condition is not matched

查看:191
本文介绍了未使用UA和GTM触发的事件 - 事件等于gtm.js条件不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了一个Wordpress日志,并使用Google跟踪代码管理器和Universal Analytics。我试图追踪一堆事件 - 所有事件都是出站链接。我已经在GTM中设置了链接监听器和事件代码本身,并在github上进行了测试。但是,当我将它推送到现场时,事件不会触发。我可以跟踪浏览量,但事件没有被捕获。

I've setup a Wordpress log and am using Google Tag Manager and Universal Analytics. I'm trying to track a bunch of events - all of which are outbound links. I've setup the link listener and the event code itself within GTM and tested it on github. However when I push it to the live site the events don't fire. I can track pageviews fine but the events are not being captured.

我已尽我所能地调试了它,我能看到的是他们没有开火,因为并非所有的条件都得到满足。特别是由于某些原因,gtm.js没有被推送到数据层。

I've debugged it as best I can and what I can see is that they're not firing because not all the conditions are being met. Specifically for some reason the gtm.js is not being pushed to the data layer.

包含我的设置图像。该网站是 http://notthatsamfox.com

Have included images of my setup. The site is http://notthatsamfox.com

规则设置:
规则设置:http://oi59.tinypic.com/2rh5jzr.jpg

事件追踪设置:
活动设置:http://oi57.tinypic.com/2v1pxt3.jpg

消息推送到点击数据层:
数据层:http://oi57.tinypic.com/rjnqyu.jpg

Message pushed to data layer on click: data layer: http://oi57.tinypic.com/rjnqyu.jpg

发射规则:
数据层:http:// oi59 .tinypic.com / 2coka2r.jpg

推荐答案

我只是看看您的源代码,并注意到GTM容器位于结束标签之前的底部。容器应该放在开放车身标签之后,而不是末尾。尝试一下,看看你是否得到了任何结果。

I just took a look at your source code, and noticed that the GTM container is at the bottom, just before your closing body tag. The container should be placed just after the opening body tag, and not at the end. Try that and see if you get any results.

快速浏览你的设置,一切都看起来不错。

Quickly glancing at your setup, everything looks good.

这篇关于未使用UA和GTM触发的事件 - 事件等于gtm.js条件不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆