Google标记管理器未在Firefox中触发事件 [英] Google tag manager not firing event in Firefox

查看:129
本文介绍了Google标记管理器未在Firefox中触发事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Google跟踪代码管理器与Angulartics 2和Angular 4的Google Analytics(分析)集成在一起.

I integrated the Google Tag Manager for use with Google Analytics with Angulartics 2 and Angular 4.

在Chrome中,一切正常运行,但在Firefox(v59.0.2)中,我看到加载了分析脚本,但页面导航事件从未显示在网络视图中.

In Chrome everything works perfectly fine but in Firefox (v59.0.2) I can see, that the analytics scripts are loaded but the page navigation events never show up in the network view.

因此,在分析实时视图中,我可以看到来自Chrome的用户交互,而没有来自Firefox的用户交互.

Accordingly, in the analytics realtime view I can see the user interactions which come from Chrome, but nothing from Firefox.

最奇怪的是,如果我在本地部署页面并在Firefox中打开页面,则一切正常,并且可以在Google Analytics(分析)中跟踪会话,但是当我部署页面时,它将不再起作用.

The strangest of all things is, that if I deploy my page locally and open it in Firefox, everything works and I can track the session in Google Analytics, but when I deploy the page, it does not work anymore.

我将GTM包括如下

<head>
  <!-- Google Tag Manager -->
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-XXXXX');</script>
  <!-- End Google Tag Manager -->

  <meta charset="utf-8">
  <title>My Page</title>
  <base href="/">

  <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body id="body">

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXX"
                  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

有人知道部署与本地实例之间的区别是什么吗? 部署的版本由HTTPS交付-会有什么不同吗?

Does anybody have an idea what the difference between the deployment and the local instance could be? The deployed version is delivered by HTTPS - could that make any difference?

顺便说一句,我完全禁用了Firefox中的不跟踪"选项,并且未安装任何插件.

BTW, I disabled the 'Do not track' option in Firefox completely and have no plugins installed.

推荐答案

Firefox之类的声音禁止分析站点

Sounds like Firefox is banning analytical sites

The resource at https://www.googletagmanager.com/gtm.js?id=XXX-XXXXX was blocked because tracking protection is enabled pulseability.io

The resource at "https://www.googletagmanager.com/gtm.js?id=XXX-XXXXX" was blocked because tracking protection is enabled pulseability.io

来源: 查看全文

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