doupo6967 2014-11-07 19:42
浏览 64
已采纳

未安装跟踪代码(Google Analytics)

i'm trying to install google analytics tracking to my site but keep getting this message "Status: Tracking not installed", although i implemented it exactly as google wants it.

here's my markup:

<!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>

of course i put the correct UA-Code instead of the XXXX .. when checking the site's sourcecode, it's showing the exact snippet as given in google analytics .. i've refreshed and waited for almost an hour now, no success :( any ideas what's wrong? thanks

  • 写回答

1条回答 默认 最新

  • doudou1438 2014-11-07 23:13
    关注

    Look for the real time stats in GA, it wont show your current day for at least a few hours, sometimes the live stats even take a few hours to kick in.

    Also inside GA you can check to see if they can see thew code, if they say they can then your ok

    Give it some more time

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R