1

I'm having a real tricky problem with Google Tag Manager on my site.

On certain paths under my domain, GTM will load (Tag Assistant shows the right container loading, and the GTM console pops up when Debug mode is enabled) but not fire any tags, even tags set to fire on all pages. This is using the default regex for the All Pages rule, ".*" I know this since the Debug console shows all the tags in the container as "Not fired".

On the root of my domain, GTM works just fine and the container loads while tags fire as they should.

I even opened the Chrome console and got the current location with "window.location.href" - it returned the path, minus the hostname, of the page I was on as expected.

What possible situation would cause GTM to load properly on a page, but not fire All Pages tags?

4

2 回答 2

0

如果 GTM 容器正在正确加载但代码未触发,那是因为您要触发的代码具有需要在触发前完成的先决条件。通过先决条件,我的意思是在用户到达您希望标签触发的页面之前必须执行一些操作才能触发它。

例如,如果您尝试在感谢页面上触发 Google Adwords 转换代码。除非有人在点击 Adwords 广告后真正来到您的网站,否则该转换代码不会触发。如果一个人是自然来的,则不应触发该标签,否则您的所有转化报告都将被高估。

希望这可以帮助!

于 2014-02-01T05:08:47.803 回答
0

我也有这个问题,我找到了答案。创建标签并正确链接宏后,在调试模式下预览,它应该会触发。但请注意,它不会依赖 Adword Conversion 帐户。

我认为您添加了一条规则,说明gtm.formSubmit它对我有用。试试看。

于 2014-07-11T16:22:26.713 回答