此 Google Analytics(分析)代码不起作用。我看不到任何访客,也没有触发事件。有任何想法吗?谢谢。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<!-- <META HTTP-EQUIV="Refresh" CONTENT="2;URL=http://www.example.com"> -->
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Example</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-99999999-1']); // Hidden my real one
_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>
<body>
<script type="text/javascript">
_gaq.push(['_trackEvent', 'My Event', 'Hypothesis', 'Email', 1]);
window.location = "http://www.example.com";
</script>
</body>
</html>