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

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

报告相同问题?

悬赏问题

  • ¥35 引用csv数据文件(4列1800行),通过高斯-赛德尔法拟合曲线,在选取(每五十点取1点)数据,求该数据点的曲率中心。
  • ¥20 程序只发送0X01,串口助手显示不正确,配置看了没有问题115200-8-1-no,如何解决?
  • ¥15 Google speech command 数据集获取
  • ¥15 vue3+element-plus页面崩溃
  • ¥15 像这种代码要怎么跑起来?
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection
  • ¥15 nginx代理报502的错误
  • ¥100 当AWR1843发送完设置的固定帧后,如何使其再发送第一次的帧