Show HN: TinyAnalytics – A lightweight web analytics tool
github.com
github.com
If you are not using Javascript, then just parsing Nginx/Caddy/Apache log files will give you the same information: https://github.com/josephernest/TinyAnalytics/blob/master/tr...
Speaking of which, what compact datastore is recommended for this? A RRD?
--
About the JavaScript part: yes it would be totally possible to add a JS tracker to TinyAnalytics (I'm currently thinking about adding one at the moment). You're right it would be interesting to add this.
The main reason for which I did TinyAnalytics is to have a simple super quick dashboard, in which you see all your websites in a blink, without any click.
Why did you choose to write your own log-file instead of parsing server logs (which would work without my site being PHP, which for me would be a large benefit)?
Own-log because it just worked easily, and doesn't require a configuration to match the server's log policies (logs layout can vary from one config to another). Note: The logs are digested each day, so they will never grow to a super big file.
Most other analytics solutions (Piwik, OWA) also do their own logging.
If you have a website that is making you money (saas service, blog with ads, etc), these two basic metrics mean very little. Segmentation, conversion funnels, device/os info, etc are necessities.
Basic web server log analysis stopped being mainstream in the early 2000s, and I see no reason to bring it back.
15 or 30 seconds per day, instead of several minutes + twenty clicks in a row on UI elements (too annoying for me).
--
Yes, as I mentioned on README.md, it's cool for small or middle-sized websites, but not for more advanced use cases.
But then, if you use OWA or Piwik, be prepared with bugs, slow UI with the default settings (I tried several times, with different servers), etc.
I can think of some reasons from the top of my head:
* It works even if the user is using a blocker;
* You don't have to add a script that's constantly making AJAX calls, so you site should load and run faster;
I still use it, and I find many discrepancies between the server logs and what appears in Google Analytics.
And having the raw NCSA logs allows me to run specialized queries on the data.
After years, I've noticed that I prefer to have few (important) informations about my websites, that I can consult each day in 30 seconds, rather than lots of informations for which I would need 15 or 30 minutes per day for an in-depth analysis.
(When it took me 15 minutes per day, I finally watched the analytics only once every 2 weeks or so).
* click on "Websites" (top left of http://gget.it/5e8tyn6g/2.jpg)
* choose the right website in the list (http://gget.it/8jptjvso/3.jpg)
* wait that the page reloads
This, ten times in a row, which is annoying (once per website I manage).
Conclusion: more time spent on clicking twenty times on UI elements than actually looking at the charts.
I like to go super fast, now I open http://mywebsite.com/tinyanalytics/, and I have an immediate overview of all the websites in 10 seconds.
If you have time to share on Github a ready-to-use GA API -> HTML renderer (just the numbers would be enough, I'll be able to do the chart rendering), it would be awesome, I'll probably use it too!