谷歌分析无法按预期运作

时间:2014-03-27 16:48:41

标签: html google-analytics

我一直在:

Status: Tracking Not Installed

我知道有类似的问题,但这不是在Android

我在网上看了很多建议(花了我整个工作日试图解决这个问题)并且不知道。我已经尝试从测试版帐户更改我的帐户,我在页面上尝试了不同的地方,我能想到的最后一件事是它现在与代码冲突了一些如何在网页上推送f12它没有显示在代码,所以我猜它不解析。

这是代码:p.s.它不是我的,我被告知要将其添加到其他人 HIDEOUS 代码

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta name="XAR Files" content="index_htm_files/xr_files.txt"/>
 <title>xxx:  HOME PAGE</title>
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
 <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/>
 <meta name="Generator" content="Xara HTML filter v.5.0.1.977"/>
 <meta name="keywords" content="XXX,"/>
 <meta name="description" content="gjfjh - HOME PAGE"/>
 <link rel="stylesheet" type="text/css" href="index_htm_files/xr_main.css"/>
 <link rel="stylesheet" type="text/css" href="index_htm_files/xr_text.css"/>
 <link rel="stylesheet" type="text/css" href="index_htm_files/custom_styles.css"/>
 <link rel="shortcut icon" href="index_htm_files/favicon.ico"/>
 <link rel="icon" type="image/vnd.microsoft.icon" href="index_htm_files/favicon.ico"/>
 <link rel="icon" type="image/png" href="index_htm_files/favicon.png"/>
 <script type="text/javascript" src="index_htm_files/roe.js"></script>
 <!--[if IE]><script type="text/javascript" src="index_htm_files/prs.js"></script><![endif]--><!--[if !IE]>--><script type="text/javascript" 

src="index_htm_files/prs3.js"></script><!--<![endif]-->
 <script type="text/javascript">var xr_nextpage="dhdfgh.htm"; var xr_transition=0; var xr_transitiontime=500;var xr_prevpage=""; var xr_btransition=0; var 

xr_btransitiontime=0;</script>
 <script type="text/javascript" src="index_htm_files/jquery.js"></script>
 <script type="text/javascript" src="index_htm_files/datamap.js"></script>
 <script type="text/javascript" src="index_htm_files/easyAccordion_config.js"></script>
 <script type="text/javascript" src="index_htm_files/easyaccordion.js"></script>
 <link rel="stylesheet" type="text/css" href="index_htm_files/easyaccordion.css"/>


<meta name="alexaVerifyID" content="MBeyk87kEN9mhRYJOKzigsACkro" />
 <script type="text/javascript" src="index_htm_files/1.js"></script>

所以我尝试将脚本放在结束标记之前的末尾,而没有解析它。

分析代码是:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXXX-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
谁能告诉我哪里出错了?


更新1:这是网页的f12,它不在head标签中,但是在框架中,我在我的代码中声明了它,但显然不是因为网站看到了它?

enter image description here

0 个答案:

没有答案