【问题标题】:Tracking code not installed (Google Analytics)未安装跟踪代码 (Google Analytics)
【发布时间】:2014-11-08 07:13:58
【问题描述】:

我正在尝试将 google 分析跟踪安装到我的网站,但一直收到此消息“状态:未安装跟踪”,尽管我完全按照 google 的要求实现了它。

这是我的标记:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link href='/css/style.css' rel='stylesheet' type='text/css' />
<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-XXXXXXX-XX', 'auto');
  ga('send', 'pageview');

</script>
</head>
<body>
Test
</body></html>

当然,我输入了正确的 UA 代码而不是 XXXX .. 检查网站的源代码时,它显示了谷歌分析中给出的确切 sn-p .. 我已经刷新并等待了将近一个小时,没有成功:( 有什么想法有什么问题吗? 谢谢

【问题讨论】:

  • 您网站的域是否与您在 Google Analytics(分析)页面上看到的相匹配?
  • 默认不显示当天,您是否尝试查看实时统计数据?

标签: php google-analytics


【解决方案1】:

在 GA 中查找实时统计数据,它至少在几个小时内不会显示您的当前日期,有时实时统计数据甚至需要几个小时才能启动。

您也可以在 GA 内部检查他们是否可以看到这些代码,如果他们说可以,那么您就可以了

给它一些时间

来源:https://support.google.com/analytics/answer/1008083?hl=en

【讨论】:

  • 是的 - 这需要一些时间,今天它起作用了 :) 奇怪的事情 .. 谷歌告诉它每 2-5 分钟检查一次。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-10-29
  • 2014-02-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-08-09
  • 1970-01-01
相关资源
最近更新 更多