是否有更快的Google Analytics替代方案?

时间:2021-08-22 15:49:51

I like to keep my websites extremely light and fast, but of course I need some kind of user tracking and analytics.

我喜欢保持我的网站非常轻快,但当然我需要某种用户跟踪和分析。

It seems like Google Analytics always takes significant enough processing time that I'd like to replace it with something faster (and/or hosted locally), perhaps having less features.

看起来谷歌分析总是需要足够长的处理时间,我想用更快的(和/或本地托管)替换它,可能具有更少的功能。

I really only care about these metrics: browser, OS, referrer, and # hits per page on a given day or week.

我真的只关心这些指标:浏览器,操作系统,推荐人和特定日期或每周的每页点击数。

Does anyone have any good suggestions, or is Google Analytics really the best option?

有没有人有任何好的建议,或Google Analytics真的是最好的选择吗?

20 个解决方案

#1


20  

It may be the load time that is the main delay. Try hosting the google analytics javascript file locally.

可能是加载时间是主要延迟。尝试在本地托管谷歌分析JavaScript文件。

#2


36  

You should try Asynchronous Google Analytics. It loads GA in the background, so the rest of the content on the page is not blocked from rendering:

您应该尝试异步Google Analytics。它在后台加载GA,因此页面上的其余内容不会被阻止渲染:

http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

Additionally, since you first asked this question, Google has upgraded their serving infrastructure. It's now faster, and much more reliable than it was in 2008. For most sites, it's better to use Google's CDN instead of hosting ga.js yourself. Since the official ga.js is on so many sites, most users will have it in their browser cache.

此外,自从您第一次提出此问题以来,Google已升级其服务基础架构。它现在比2008年更快,更可靠。对于大多数网站来说,最好使用Google的CDN而不是自己托管ga.js.由于官方ga.js在很多网站上,大多数用户都会在浏览器缓存中使用它。

#3


8  

I second hosting the GA javascript file yourself - the only downfall is that if google updates the file your copy will be old and you may miss out on certain features - however you could mitigate this by having a script pull down the latest version each week...

我自己第二次托管GA javascript文件 - 唯一的缺点是如果谷歌更新文件你的副本将是旧的,你可能会错过某些功能 - 但是你可以通过让脚本每周下载最新版本来缓解这个问题。 ..

The benefit of hosting yourself is you have complete control over caching etc, and there are less DNS lookups required for your site.

托管自己的好处是您可以完全控制缓存等,并且您的站点需要的DNS查找次数更少。

The other issue your probably facing is the delay (which is up to 24 hours) for the data to be updated, but for something that costs nothing I'm not complaining too much :)

您可能遇到的另一个问题是数据更新的延迟(最多24小时),但对于没有任何费用的东西我不会抱怨太多:)

#4


8  

I can't believe, that no one has suggested Piwik. In my opinion, it's THE best alternative to Google Analytics out there. It is also coming to full maturity in a couple of weeks.

我无法相信,没有人建议Piwik。在我看来,它是Google Analytics的最佳替代方案。它也将在几周内完全成熟。

You should definitely check it out!

你一定要看看吧!

#5


5  

a good alternative is reinvigorate. It gives you stats in "real time" and (in my opinion) is a little faster, but it doesn't have as many options as g-analytics.

一个好的选择是重振资源。它为您提供“实时”统计数据,并且(在我看来)速度稍快,但它没有像g-analytics那样多的选项。

#6


4  

Loading the urchin.js script as the very end of the page shouldn't slow page-loading down (as it will load your web-page, then contact Google Analytics). That also means it wont freeze your page if the urchin.js URL is temporarily unreachable for whatever reason (say, a slow DNS lookup)

加载urchin.js脚本作为页面的最后应该不会减慢页面加载速度(因为它将加载您的网页,然后联系Google Analytics)。这也意味着如果urchin.js URL由于某种原因暂时无法访问(例如,慢速DNS查找),它将不会冻结您的页面

Routinely download urchin.js and serving it locally will speed things up too. Updating it once an hour would be more than enough (given that it usually gets one request per page-view, once an hour is trivial)

经常下载urchin.js并在本地提供服务也会加快速度。每小时更新一次就足够了(假设它通常每页查看一次请求,每小时一次是微不足道的)

I guess if you are really concerned, you could look into modifying urchin.js to make it less resource intensive, or working out what it does, and simplifying it (I would recommend checking if someone else has already done this first), but I don't think the JS execution time will be slowing your web-page down noticeably

我想如果你真的担心,你可以考虑修改urchin.js以减少资源消耗,或者解决它的工作,并简化它(我建议检查其他人是否已经完成了这个),但是我不要以为JS执行时间会明显减慢你的网页速度

#7


4  

The problem you're experiencing is just standard I/O blocking whilst javascript loads.

您遇到的问题只是在加载javascript时标准的I / O阻塞。

Take a look at this solution: http://lyncd.com/2009/03/better-google-analytics-javascript/

看看这个解决方案:http://lyncd.com/2009/03/better-google-analytics-javascript/

This should process the Google Analytics after the page has loaded.

这应该在页面加载后处理Google Analytics。

#8


1  

For the metrics you need, you could use the web logs created by Apache/IIS.

对于您需要的指标,您可以使用Apache / IIS创建的Web日志。

You could then remove the analytics code.

然后,您可以删除分析代码。

#9


1  

you can subscribe to Google Analytics JavaScript Tracking Code Changelog
http://code.google.com/apis/analytics/docs/gaJS/changelog.html
to see if a new version is available to update the ga.js locally

您可以订阅Google Analytics JavaScript跟踪代码更改日志http://code.google.com/apis/analytics/docs/gaJS/changelog.html,查看是否有新版本可以在本地更新ga.js


I also encounter this new Asynchronous Snippet
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
It activates Google Analytics tracking by inserting ga.js into the page. but It takes advantage of browser support for asynchronous JavaScript to enhance the speed in which the tracking code is loaded

我还遇到了这个新的异步代码段http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html它通过将ga.js插入页面来激活Google Analytics跟踪。但它利用浏览器对异步JavaScript的支持来提高跟踪代码的加载速度

#10


1  

FoxMetrics seems to work super fast. They are still in beta but it looks promising.

FoxMetrics似乎超级快速地工作。他们仍然处于测试阶段,但看起来很有希望。

#11


0  

You can simply get hold of your logs and analyse them with a tool such as WebLog Expert Lite to get those metrics.

您只需获取日志并使用WebLog Expert Lite等工具对其进行分析即可获得这些指标。

#12


0  

WebTrends is a pretty effective "paid" service ... though I gotta say, the wiz-bang features of Google Analytics are way cooler.

WebTrends是一个非常有效的“付费”服务......虽然我要说,谷歌分析的wiz-bang功能更酷。

#13


0  

I've previously had a quick look at Mint, which looks interesting. But I have no information about the speed, and it costs $30 per site.

我以前快看过Mint,看起来很有趣。但我没有关于速度的信息,每个站点的费用为30美元。

#14


0  

I'm a fan of Statcounter. It seems less intrusive that some of the free tools I've tried and I've never had it make anything seem sluggish. The log size for free accounts is the last 500 hits, but that's expandable for a fee.

我是Statcounter的粉丝。我试过的一些免费工具似乎不那么干扰了,而且我从来没有让它看起来有些迟钝。免费帐户的日志大小是最后500次点击,但这是可扩展的收费。

#15


0  

For live tracking you could also try Woopra. It is pretty stable and fast, but only allows for 10.000 pageviews a day currently as they are still in Beta. Thye have some nice feature, like live chat with your visitors.. It'not so good for conversion tracking though, but could be overcome by using good parameters in your url and ads.

对于实时跟踪,您也可以尝试Woopra。它非常稳定和快速,但目前只允许每天10.000次综合浏览量,因为它们仍处于测试阶段。 Thye有一些不错的功能,比如与访问者进行实时聊天..虽然转换跟踪不太好,但可以通过在网址和广告中使用好的参数来克服。

#16


0  

AWStats will give you very thorough and well-presented stats just by parsing your log file daily. It also has a lightweight JS for more advanced stats like plugins and screen size.

AWStats只需每天解析您的日志文件,即可为您提供非常全面且精心呈现的统计数据。它还有一个轻量级的JS,用于插件和屏幕尺寸等更高级的统计数据。

#17


0  

Because not all browser support async loading of scripts as the current Google Analytics script uses I would still load the script only after the DOM is loaded:

由于并非所有浏览器都支持当前Google Analytics脚本使用的脚本异步加载,因此我仍会在加载DOM后加载脚本:

// first thing to do, make sure _gaq is defined:
var _gaq = _gaq || [];

// set your account settings:
_gaq.push(['_setAccount', 'UA-XXXXX-X']);

// queue trackpageview whenever you want :)
_gaq.push(['_trackPageview']);

//////////////////////////////////////////////////////////////////

(function($){
    // load the GA script only after the dom is ready
    // for simplicity using jQuery, of course you can just listen
    // to the DOMContentLoaded / window.load event
    $(function(){

        // standard code provided by google to load the GA script
        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);

    });
})(jQuery);

//////////////////////////////////////////////////////////////////

// if the script is already loaded, it will execute the tracking request, otherwise it's in the queue
_gaq.push(['_trackEvent', 'Videos', 'Play', 'Gone With the Wind']);

DEMO: http://jsfiddle.net/roberkules/xyU8K/

If you're for some reason forced to use the old version of the Google Analytics script (without queuing) you have to write the queue functionality yourself (which is quite easy) and handle the queue once the script is loaded (which is still loaded only after the DOM is ready).

如果您出于某种原因*使用旧版Google Analytics脚本(无需排队),您必须自己编写队列功能(这非常简单)并在加载脚本后处理队列(仍然加载只有在DOM准备好之后)。

#18


0  

Mixpanel offers realtime analytics.

Mixpanel提供实时分析。

#19


0  

Not to repeat an above poster, but I also love Mixpanel. It's highly customizable, extremely user friendly, is in REAL (REAL REAL) TIME, and has some incredibly robust and powerful tools - the type of tools you can choose to learn or not to learn yet still get an amazing value.

不要重复上面的海报,但我也喜欢Mixpanel。它是高度可定制的,非常用户友好,处于真实(真实)时间,并且具有一些令人难以置信的强大和强大的工具 - 您可以选择学习或不学习但仍然获得惊人价值的工具类型。

Knowing some PHP/javascript is required to take full (well, to use 100% of what they offer requires a bit more than that; however, hitting that 100% means you're doing some beyond ridiculous traffic analytics) advantage of all it's amazing abilities, but it's highly customizable to your skill level & the intensity at which you want to incorporate any programming language, script(s), or tasks(s) into it. They're customer service is great too.

知道一些PHP / javascript需要完整(好吧,使用他们提供的100%的东西需要更多的东西;但是,达到100%意味着你做了一些超出荒谬的流量分析)所有它的惊人的优势能力,但它可以高度定制您的技能水平和您希望将任何编程语言,脚本或任务合并到其中的强度。他们的客户服务也很棒。

They offer it for free for quite a large amount of traffic too; although, if you hit the point where you'd have to spend anything it can get a bit $$$. If you have that much traffic though, you shouldn't have much problem affording the service.

他们也免费提供相当大的流量;虽然,如果你达到了你必须花费任何东西的地步,它可以得到一点点$$$。如果你有那么多的流量,你应该没有太多的问题提供服务。

No, I don't work for Mixpanel nor am I an affiliate of them in any way.

不,我不为Mixpanel工作,也不是我的任何关联方。

#20


0  

I've only used Google Analytics; however, if you'd like to continue to use Google Analytics, you can improve the speed by:

我只使用了谷歌分析;但是,如果您想继续使用Google Analytics,则可以通过以下方式提高速度:

  • Using Universal Analytics. Universal Analytics tends to load faster than the classic Google Analytics tag (especially for commerce) - http://cutroni.com/blog/2013/03/21/tracking-website-with-universal-analytics/

    使用Universal Analytics。 Universal Analytics的加载速度往往比传统的Google Analytics标记更快(特别是针对商业用户) - http://cutroni.com/blog/2013/03/21/tracking-website-with-universal-analytics/

  • Use Google Tag Manager. If you're tracking a number of tags, you could use Google Tag Manager to asynchronously load the tags - http://www.google.com/tagmanager/features.html

    使用Google跟踪代码管理器如果您要跟踪多个代码,则可以使用Google跟踪代码管理器异步加载代码 - http://www.google.com/tagmanager/features.html

#1


20  

It may be the load time that is the main delay. Try hosting the google analytics javascript file locally.

可能是加载时间是主要延迟。尝试在本地托管谷歌分析JavaScript文件。

#2


36  

You should try Asynchronous Google Analytics. It loads GA in the background, so the rest of the content on the page is not blocked from rendering:

您应该尝试异步Google Analytics。它在后台加载GA,因此页面上的其余内容不会被阻止渲染:

http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

Additionally, since you first asked this question, Google has upgraded their serving infrastructure. It's now faster, and much more reliable than it was in 2008. For most sites, it's better to use Google's CDN instead of hosting ga.js yourself. Since the official ga.js is on so many sites, most users will have it in their browser cache.

此外,自从您第一次提出此问题以来,Google已升级其服务基础架构。它现在比2008年更快,更可靠。对于大多数网站来说,最好使用Google的CDN而不是自己托管ga.js.由于官方ga.js在很多网站上,大多数用户都会在浏览器缓存中使用它。

#3


8  

I second hosting the GA javascript file yourself - the only downfall is that if google updates the file your copy will be old and you may miss out on certain features - however you could mitigate this by having a script pull down the latest version each week...

我自己第二次托管GA javascript文件 - 唯一的缺点是如果谷歌更新文件你的副本将是旧的,你可能会错过某些功能 - 但是你可以通过让脚本每周下载最新版本来缓解这个问题。 ..

The benefit of hosting yourself is you have complete control over caching etc, and there are less DNS lookups required for your site.

托管自己的好处是您可以完全控制缓存等,并且您的站点需要的DNS查找次数更少。

The other issue your probably facing is the delay (which is up to 24 hours) for the data to be updated, but for something that costs nothing I'm not complaining too much :)

您可能遇到的另一个问题是数据更新的延迟(最多24小时),但对于没有任何费用的东西我不会抱怨太多:)

#4


8  

I can't believe, that no one has suggested Piwik. In my opinion, it's THE best alternative to Google Analytics out there. It is also coming to full maturity in a couple of weeks.

我无法相信,没有人建议Piwik。在我看来,它是Google Analytics的最佳替代方案。它也将在几周内完全成熟。

You should definitely check it out!

你一定要看看吧!

#5


5  

a good alternative is reinvigorate. It gives you stats in "real time" and (in my opinion) is a little faster, but it doesn't have as many options as g-analytics.

一个好的选择是重振资源。它为您提供“实时”统计数据,并且(在我看来)速度稍快,但它没有像g-analytics那样多的选项。

#6


4  

Loading the urchin.js script as the very end of the page shouldn't slow page-loading down (as it will load your web-page, then contact Google Analytics). That also means it wont freeze your page if the urchin.js URL is temporarily unreachable for whatever reason (say, a slow DNS lookup)

加载urchin.js脚本作为页面的最后应该不会减慢页面加载速度(因为它将加载您的网页,然后联系Google Analytics)。这也意味着如果urchin.js URL由于某种原因暂时无法访问(例如,慢速DNS查找),它将不会冻结您的页面

Routinely download urchin.js and serving it locally will speed things up too. Updating it once an hour would be more than enough (given that it usually gets one request per page-view, once an hour is trivial)

经常下载urchin.js并在本地提供服务也会加快速度。每小时更新一次就足够了(假设它通常每页查看一次请求,每小时一次是微不足道的)

I guess if you are really concerned, you could look into modifying urchin.js to make it less resource intensive, or working out what it does, and simplifying it (I would recommend checking if someone else has already done this first), but I don't think the JS execution time will be slowing your web-page down noticeably

我想如果你真的担心,你可以考虑修改urchin.js以减少资源消耗,或者解决它的工作,并简化它(我建议检查其他人是否已经完成了这个),但是我不要以为JS执行时间会明显减慢你的网页速度

#7


4  

The problem you're experiencing is just standard I/O blocking whilst javascript loads.

您遇到的问题只是在加载javascript时标准的I / O阻塞。

Take a look at this solution: http://lyncd.com/2009/03/better-google-analytics-javascript/

看看这个解决方案:http://lyncd.com/2009/03/better-google-analytics-javascript/

This should process the Google Analytics after the page has loaded.

这应该在页面加载后处理Google Analytics。

#8


1  

For the metrics you need, you could use the web logs created by Apache/IIS.

对于您需要的指标,您可以使用Apache / IIS创建的Web日志。

You could then remove the analytics code.

然后,您可以删除分析代码。

#9


1  

you can subscribe to Google Analytics JavaScript Tracking Code Changelog
http://code.google.com/apis/analytics/docs/gaJS/changelog.html
to see if a new version is available to update the ga.js locally

您可以订阅Google Analytics JavaScript跟踪代码更改日志http://code.google.com/apis/analytics/docs/gaJS/changelog.html,查看是否有新版本可以在本地更新ga.js


I also encounter this new Asynchronous Snippet
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
It activates Google Analytics tracking by inserting ga.js into the page. but It takes advantage of browser support for asynchronous JavaScript to enhance the speed in which the tracking code is loaded

我还遇到了这个新的异步代码段http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html它通过将ga.js插入页面来激活Google Analytics跟踪。但它利用浏览器对异步JavaScript的支持来提高跟踪代码的加载速度

#10


1  

FoxMetrics seems to work super fast. They are still in beta but it looks promising.

FoxMetrics似乎超级快速地工作。他们仍然处于测试阶段,但看起来很有希望。

#11


0  

You can simply get hold of your logs and analyse them with a tool such as WebLog Expert Lite to get those metrics.

您只需获取日志并使用WebLog Expert Lite等工具对其进行分析即可获得这些指标。

#12


0  

WebTrends is a pretty effective "paid" service ... though I gotta say, the wiz-bang features of Google Analytics are way cooler.

WebTrends是一个非常有效的“付费”服务......虽然我要说,谷歌分析的wiz-bang功能更酷。

#13


0  

I've previously had a quick look at Mint, which looks interesting. But I have no information about the speed, and it costs $30 per site.

我以前快看过Mint,看起来很有趣。但我没有关于速度的信息,每个站点的费用为30美元。

#14


0  

I'm a fan of Statcounter. It seems less intrusive that some of the free tools I've tried and I've never had it make anything seem sluggish. The log size for free accounts is the last 500 hits, but that's expandable for a fee.

我是Statcounter的粉丝。我试过的一些免费工具似乎不那么干扰了,而且我从来没有让它看起来有些迟钝。免费帐户的日志大小是最后500次点击,但这是可扩展的收费。

#15


0  

For live tracking you could also try Woopra. It is pretty stable and fast, but only allows for 10.000 pageviews a day currently as they are still in Beta. Thye have some nice feature, like live chat with your visitors.. It'not so good for conversion tracking though, but could be overcome by using good parameters in your url and ads.

对于实时跟踪,您也可以尝试Woopra。它非常稳定和快速,但目前只允许每天10.000次综合浏览量,因为它们仍处于测试阶段。 Thye有一些不错的功能,比如与访问者进行实时聊天..虽然转换跟踪不太好,但可以通过在网址和广告中使用好的参数来克服。

#16


0  

AWStats will give you very thorough and well-presented stats just by parsing your log file daily. It also has a lightweight JS for more advanced stats like plugins and screen size.

AWStats只需每天解析您的日志文件,即可为您提供非常全面且精心呈现的统计数据。它还有一个轻量级的JS,用于插件和屏幕尺寸等更高级的统计数据。

#17


0  

Because not all browser support async loading of scripts as the current Google Analytics script uses I would still load the script only after the DOM is loaded:

由于并非所有浏览器都支持当前Google Analytics脚本使用的脚本异步加载,因此我仍会在加载DOM后加载脚本:

// first thing to do, make sure _gaq is defined:
var _gaq = _gaq || [];

// set your account settings:
_gaq.push(['_setAccount', 'UA-XXXXX-X']);

// queue trackpageview whenever you want :)
_gaq.push(['_trackPageview']);

//////////////////////////////////////////////////////////////////

(function($){
    // load the GA script only after the dom is ready
    // for simplicity using jQuery, of course you can just listen
    // to the DOMContentLoaded / window.load event
    $(function(){

        // standard code provided by google to load the GA script
        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);

    });
})(jQuery);

//////////////////////////////////////////////////////////////////

// if the script is already loaded, it will execute the tracking request, otherwise it's in the queue
_gaq.push(['_trackEvent', 'Videos', 'Play', 'Gone With the Wind']);

DEMO: http://jsfiddle.net/roberkules/xyU8K/

If you're for some reason forced to use the old version of the Google Analytics script (without queuing) you have to write the queue functionality yourself (which is quite easy) and handle the queue once the script is loaded (which is still loaded only after the DOM is ready).

如果您出于某种原因*使用旧版Google Analytics脚本(无需排队),您必须自己编写队列功能(这非常简单)并在加载脚本后处理队列(仍然加载只有在DOM准备好之后)。

#18


0  

Mixpanel offers realtime analytics.

Mixpanel提供实时分析。

#19


0  

Not to repeat an above poster, but I also love Mixpanel. It's highly customizable, extremely user friendly, is in REAL (REAL REAL) TIME, and has some incredibly robust and powerful tools - the type of tools you can choose to learn or not to learn yet still get an amazing value.

不要重复上面的海报,但我也喜欢Mixpanel。它是高度可定制的,非常用户友好,处于真实(真实)时间,并且具有一些令人难以置信的强大和强大的工具 - 您可以选择学习或不学习但仍然获得惊人价值的工具类型。

Knowing some PHP/javascript is required to take full (well, to use 100% of what they offer requires a bit more than that; however, hitting that 100% means you're doing some beyond ridiculous traffic analytics) advantage of all it's amazing abilities, but it's highly customizable to your skill level & the intensity at which you want to incorporate any programming language, script(s), or tasks(s) into it. They're customer service is great too.

知道一些PHP / javascript需要完整(好吧,使用他们提供的100%的东西需要更多的东西;但是,达到100%意味着你做了一些超出荒谬的流量分析)所有它的惊人的优势能力,但它可以高度定制您的技能水平和您希望将任何编程语言,脚本或任务合并到其中的强度。他们的客户服务也很棒。

They offer it for free for quite a large amount of traffic too; although, if you hit the point where you'd have to spend anything it can get a bit $$$. If you have that much traffic though, you shouldn't have much problem affording the service.

他们也免费提供相当大的流量;虽然,如果你达到了你必须花费任何东西的地步,它可以得到一点点$$$。如果你有那么多的流量,你应该没有太多的问题提供服务。

No, I don't work for Mixpanel nor am I an affiliate of them in any way.

不,我不为Mixpanel工作,也不是我的任何关联方。

#20


0  

I've only used Google Analytics; however, if you'd like to continue to use Google Analytics, you can improve the speed by:

我只使用了谷歌分析;但是,如果您想继续使用Google Analytics,则可以通过以下方式提高速度:

  • Using Universal Analytics. Universal Analytics tends to load faster than the classic Google Analytics tag (especially for commerce) - http://cutroni.com/blog/2013/03/21/tracking-website-with-universal-analytics/

    使用Universal Analytics。 Universal Analytics的加载速度往往比传统的Google Analytics标记更快(特别是针对商业用户) - http://cutroni.com/blog/2013/03/21/tracking-website-with-universal-analytics/

  • Use Google Tag Manager. If you're tracking a number of tags, you could use Google Tag Manager to asynchronously load the tags - http://www.google.com/tagmanager/features.html

    使用Google跟踪代码管理器如果您要跟踪多个代码,则可以使用Google跟踪代码管理器异步加载代码 - http://www.google.com/tagmanager/features.html