Good open source analytics/stats software in PHP? [closed]

拜拜、爱过 提交于 2019-12-04 14:14:49

问题


The url shortening service I'm building needs to display some basic click stats to users: # of clicks, conversions, referring domains, and country (filterable by a date range). I'll possibly want more advanced stats in the future.

Is there existing open source software that will allow me to pass events to it and then easily display a bar or line graph of that event (for example, a line graph of "conversions" between two specified dates). It seems like something like this should exist and would be much easier then building the whole thing from scratch.

I know there are graphing scripts, but that still requires me to format the data (usually as an xml file) and then pass it to the graph. I'm looking for something a bit more complete, which I can just feed the events and then it does everything else.


回答1:


Every kind of software I can image will need you to generate the data you want to plot.

At this point, you have two possibilities:

  • Use a third party solution for your stats (such as Google Analytics)
  • Use a library to show your data graphically

The first solution will be easy to use, but it won't be flexible. The second one will be a bit harder (not too much), but you'll decide what to plot and how.

I've recently started an open source project to make the highcharts plotting easier from php. You might want to have a look to it.




回答2:


There are a large number of packages that do what you want. The most popular ones are:

  • Cobub Razor (Redis supported for high performance)
  • Piwik
  • Open Web Analytics
  • TraceWatch

They all require a database connection (mostly MySQL) to collect and store the data, which can be a performance problem when your service becomes popular.

One of the simpler packages that is file-based is

  • BBClone

The features of file-based solutions are generally more limited.




回答3:


AWStats is the best open source analytics/stats software I have used. Recently we have moved away AWStats and we are using Google Analytics, but that is because we are also using Google Adwords. AWStats is a great program.



来源:https://stackoverflow.com/questions/2382066/good-open-source-analytics-stats-software-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!