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" "">
        <html xmlns="" xml:lang="de" lang="de">
            <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">
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

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


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

图片转代码服务由CSDN问答提供 功能建议

我正在尝试将谷歌分析跟踪安装到我的网站,但不断收到此消息“状态:未安装跟踪” 虽然我完全像谷歌想要的那样实现它。


 &lt;!DOCTYPE html PUBLIC“ -  //  W3C // DTD XHTML 1.0 Transitional // EN“”">
&lt; html xmlns =“http:// www。“xml:lang =”de“lang =”de“&gt; 
&lt; head&gt; 
&lt; meta http-equiv =”Content-Type“content =”text / html; charset  = UTF-8“/&gt; 
&lt; link href ='/ css / style.css'rel ='stylesheet'type ='text / css'/&gt; 
&lt; script type =”text / javascript“&gt  ; 
(函数(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)
})(窗口,文档,'script','// www。','ga');
nn ga('create','UA-XXXXXXX-XX','auto'); 
 ga('send','pageview'  ); 
&LT; /脚本&GT; 
&LT; /头&GT; 
&LT;主体&GT; \ NTEST 

当然我把正确的UA代码而不是XXXX ..当检查网站的源代码时,它显示了谷歌分析中给出的确切片段。 i已经刷新并等待了将近一个小时,但没有成功: ( 任何想法有什么不对? thanks

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题