有没有人尝试过使用 Awstats 生成 Liferay 门户?
您能分享一下您的经验吗?
除了 Awstats 和 Google Analytics 之外,还有其他替代方法可以为 Liferay 门户生成统计数据吗? (我无法使用 Google Analystics,因为它是受限制的内部门户)
Has anyone tried to use Awstats for generating usage statistics for a Liferay portal?
Can you share your experience on how to do it?
Aside from Awstats and Google Analytics, are there any other alternatives for generating statistics for a Liferay portal? (I can't use Google Analystics since it's a restricted internal portal)
发布评论
评论(3)
最好的选择是使用 Awstats 来解析 Web 服务器日志(Apache、IIS 或任何运行它的服务器)。 如果 Liferay 创建自己的日志,您可以配置 Awstats 来解析自定义日志格式。 有关阅读自定义日志的提示,请参阅此处:
http://awstats.sourceforge.net/docs/awstats_faq .html
Your best bet would be to use Awstats to parse the web server logs (Apache, IIS or whatever it is running on). If Liferay creates it's own logs, you can configure Awstats to parse custom log formats. See here for tips on reading custom logs:
http://awstats.sourceforge.net/docs/awstats_faq.html
我从未使用过 Liferay 门户,但设置 AWstats 非常简单。 假设您在 Debian 上运行 Apache,只需
apt-get install awstats
并将/etc/awstats/
中的默认配置文件复制到您的虚拟主机的新文件中。 您需要编辑的只是 LogFile、SiteDomain、HostAliases 和 DirData 文件夹。 显然,您需要启用 mod_perl。我最近在自己的网站上设置了它,并发现 Sami Dalouche 的这篇文章 非常有帮助。 我还发表了关于 如何设置 Nginx 日志。
I have never used a Liferay portal, but setting up AWstats is dead easy. Assuming you are running Apache on Debian, just
apt-get install awstats
and copy the default config file in the/etc/awstats/
to a new file for your vhost. All you need to edit are the LogFile, SiteDomain, HostAliases and DirData folders. And you need to enable mod_perl, obviously.I recently set it up on my own site, and found this post by Sami Dalouche to be really helpful. I also blogged about how to set it up for Nginx logs.
作为旁注,在内部使用 Google Analytics 应该不会有太多问题(如果我正确理解你的场景)。 如果用户在访问仅供内部使用的网页时可以访问互联网,则 Google Analytics 代码仍应触发并记录统计信息。 (由于代码在客户端上运行 - 只有它们需要访问互联网)。 我们在工作中使用此设置来监控 Intranet 的用户统计信息。
关于AWStats。 我在解析 Apache 日志文件方面取得了相当大的成功。 GA 中的额外信息非常有用,但有时可以了解用户电脑的人口统计和平均设置。
As a side note, there shouldn't be a great deal of issue using Google Analytics internally (if I understand your scenario correctly). If the users when visiting your internal-only webpage have access to the internet, the Google Analytics code should still fire and log a stat. (As the code is running on the client - its only them than need access to the internet). We use this setup where I work to monitor user stats for our Intranet just fine.
With regards to AWStats. I've had quite a large amount of success with it parsing the Apache log files. The extra info in GA is quite useful though at times to grasp your demographic and average settings for user pc's.