开发者

Why is the visits counter on the Google analytics report site stays on 0?

I've created a simple Google analytics test site that has events (on the buttons) and log visits upon entering the page. The status in the Google analytics report site is set to "Receiving Data".

Why is the visits counter on the Google analytics report site stays on 0?

Here is the site's source code:

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

    <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    <script type="text/javascript">
    开发者_StackOverflow    var pageTracker = _gat._getTracker("UA-12158271-3");
        pageTracker._trackPageview('/TestGA.html');
    </script>

</head>
<body>
    <div>
        Click the buttons to test GA...</div>
    <input type="button" value="clickA" onclick="pageTracker._trackPageview('/TestGA.html/a');" />
    <input type="button" value="clickB" onclick="pageTracker._trackPageview('/TestGA.html/b');" />
    <input type="button" value="clickC" onclick="pageTracker._trackPageview('/TestGA.html/c');" />
</body>
</html>


Because Google Analytics goes to some lengths to make sure your own visits aren't counted. Find someone else to visit the site.


move your tracker at the end of the page for performance issues

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜