谷歌分析的数量不到网站访问者数量的一半

时间:2022-01-16 15:15:39

Google Analytics confuses me.

谷歌分析让我困惑。

I have always had a feeling that the Google Analytics visitor count for my eCommerce website was too low. Today I took a closer look.

我一直觉得我的电子商务网站的Google Analytics访客数量太少了。今天我仔细看了一下。

Last weekend there were about 8 orders (by different customers) on the website on Saturday and 9 on Sunday. Google Analytics however shows only 3 visitors on both Saturday and Sunday.

上周末,周六网站上有大约8个订单(不同的客户)和周日的9个订单。然而,Google Analytics(分析)周六和周日仅显示3位访客。

The following familiar code snippet is in the main template of the site, which is called on every click.

以下熟悉的代码段位于站点的主模板中,每次单击都会调用该模板。

<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"));
    try {
        var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
        pageTracker._trackPageview();
    } catch(err) {}
</script>

Yes, I am filtering (excluding) some fixed IP addresses from being counted, but only of my own sites.

是的,我正在过滤(排除)一些固定的IP地址,但仅限于我自己的网站。

I know that visitors that have Javascript disabled cannot be counted, but I do not believe this explains it.

我知道禁用Javascript的访问者无法计算,但我不相信这会解释它。

What is going on, is this normal? Does anyone know why more than half of the visitors are not counted?

怎么回事,这是正常的吗?有谁知道为什么超过一半的访客不算?

6 个解决方案

#1


This should be on the top of your content.

这应该在您的内容的顶部。

<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>

This should on the bottom of your content:

这应该在您的内容的底部:

<script type="text/javascript">
    try {
            var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
            pageTracker._trackPageview();
    } catch(err) {}
</script>

If you have done this, it should work correctly.

如果你这样做了,它应该可以正常工作。

#2


While reading this * quesion I noticed that I had changed the script block:

在阅读*问题时,我注意到我更改了脚本块:

<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"));
        try {
                var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
                pageTracker._trackPageview();
        } catch(err) {}
</script>

Which should be split into two parts, according to Google:

根据Google的说法,这应该分为两部分:

<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">
        try {
                var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
                pageTracker._trackPageview();
        } catch(err) {}
</script>

I have changed it to the recommended format and am awaiting what happens in the next few days.

我已将其更改为推荐的格式,我正在等待接下来几天发生的事情。

#3


I am using Google Analytics for many of my sites and so far have not faced this issue.You can check with the google support page here. Also have you checked whether your site is configured to use the correct Time Zone?

我正在为我的许多网站使用Google Analytics,到目前为止还没有遇到过此问题。您可以在此处查看Google支持页面。还检查了您的网站是否配置为使用正确的时区?

#4


I know that visitors that have Javascript disabled cannot be counted, but I do not believe this explains it.

我知道禁用Javascript的访问者无法计算,但我不相信这会解释它。

Have you looked at your server's access logs? Marry them up with Google Analytics, see which visitors weren't being counted?

你看过服务器的访问日志了吗?与Google Analytics结合使用,查看哪些访问者没有被计算在内?

#5


You can set up another profile to gather unfiltered data and compare the reports to the filtered profile.

您可以设置另一个配置文件以收集未过滤的数据,并将报告与过滤的配置文件进行比较。

#6


I have wrote my own visitors counter (together with logging of IP, reoslution, http user agent and other information). The counter was javascript initiated.

我已经编写了自己的访问者计数器(连同IP,重新排序,http用户代理和其他信息的记录)。该计数器是javascript启动的。

I used it on 3 different websites, and after a few months I concluded Google Analytics was slacking off huge chunks (15% to 40%) of the actual visitor numbers.

我在3个不同的网站上使用它,几个月后我得出结论,谷歌分析正在剔除实际访客数量的大块(15%到40%)。

Maybe it has something to do with addblock browser plugins?

也许它与addblock浏览器插件有关?

#1


This should be on the top of your content.

这应该在您的内容的顶部。

<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>

This should on the bottom of your content:

这应该在您的内容的底部:

<script type="text/javascript">
    try {
            var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
            pageTracker._trackPageview();
    } catch(err) {}
</script>

If you have done this, it should work correctly.

如果你这样做了,它应该可以正常工作。

#2


While reading this * quesion I noticed that I had changed the script block:

在阅读*问题时,我注意到我更改了脚本块:

<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"));
        try {
                var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
                pageTracker._trackPageview();
        } catch(err) {}
</script>

Which should be split into two parts, according to Google:

根据Google的说法,这应该分为两部分:

<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">
        try {
                var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
                pageTracker._trackPageview();
        } catch(err) {}
</script>

I have changed it to the recommended format and am awaiting what happens in the next few days.

我已将其更改为推荐的格式,我正在等待接下来几天发生的事情。

#3


I am using Google Analytics for many of my sites and so far have not faced this issue.You can check with the google support page here. Also have you checked whether your site is configured to use the correct Time Zone?

我正在为我的许多网站使用Google Analytics,到目前为止还没有遇到过此问题。您可以在此处查看Google支持页面。还检查了您的网站是否配置为使用正确的时区?

#4


I know that visitors that have Javascript disabled cannot be counted, but I do not believe this explains it.

我知道禁用Javascript的访问者无法计算,但我不相信这会解释它。

Have you looked at your server's access logs? Marry them up with Google Analytics, see which visitors weren't being counted?

你看过服务器的访问日志了吗?与Google Analytics结合使用,查看哪些访问者没有被计算在内?

#5


You can set up another profile to gather unfiltered data and compare the reports to the filtered profile.

您可以设置另一个配置文件以收集未过滤的数据,并将报告与过滤的配置文件进行比较。

#6


I have wrote my own visitors counter (together with logging of IP, reoslution, http user agent and other information). The counter was javascript initiated.

我已经编写了自己的访问者计数器(连同IP,重新排序,http用户代理和其他信息的记录)。该计数器是javascript启动的。

I used it on 3 different websites, and after a few months I concluded Google Analytics was slacking off huge chunks (15% to 40%) of the actual visitor numbers.

我在3个不同的网站上使用它,几个月后我得出结论,谷歌分析正在剔除实际访客数量的大块(15%到40%)。

Maybe it has something to do with addblock browser plugins?

也许它与addblock浏览器插件有关?