【发布时间】: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