viewmira

Simple GDPR-friendly analytics with session tracking

Visit Website
April 30, 2020 Working version

I aim to collect page views, split them into various tables in database and have at least rudimentary interface to view some charts. Schedule doesn't feel that tight, but I have a baby due in the beginning of April and interface bit is going to require more work than anything else.

Comment

March 22, 2020 JS for collecting metrics

Code golf is something a lot of developers find fun. I certainly do, from time to time. So I wrote my own ga.js (or whatever you call it), which, after being compressed with Google Closure Compiler, is only 892 bytes long. Even better, it's 599 bytes after gzip, so I'm pretty happy with the result. :)
For sure it'll get longer when I add some features, but it's not completely bare bones already and I don't really want to add a lot of stuff.
What I want to know is how much data can fit in MTU given it's HTTPS. :) It will be pretty fun if my file fits in a single frame, haha. :)
One of my goals is making API so fast that it never affects webpagetest results. :)

Comment

March 21, 2020 Started working on the idea

Last autumn I spent quite a bit of time overhauling my job's implementation of analytics - we've moved from relying on GA and BigQuery to ClickHouse and it's been paying off. Plus we've got some really nice React components so implementing new events now is a breeze. That setup, however, is for a bigger sites.
Smaller ones, which did not attract a lot of customers yet, still need analytics. But with EU laws right now installing GA will lead you to annoying popups. I hate those popups, but there is more to them - they exist because GA (and others) are collecting too much data on you.
Lately there was a surge of independent simpler analytics, which track anonymized visitor data: no storing excessive data (which is great!), no annoying popups (niiice!). OTOH, all you get is hits. You know stats of your pages, but that is not really actionable.
You see, the problem with sites (and apps) is that they are not real, as in "real world". When you build something offline - a bakery, a bar, whatever - you can see with your eyes when something is not right. It's easy to notice.
It's not so easy with online stuff. A human has no intuition about online. So the point of analytics is to see a funnel, so you can understand if you're doing something right or wrong.
So I was thinking about that and realized that if you gather page views into sessions, but don't link that to unique users and other sessions (previous sessions of a given user), you're still going to be very useful.
So the idea is following - provide session-oriented anonymized analytics. Right now I'm in a process of building backend and thinking about pricing.

Comment

About

There is a need for quality anonymous analytics. You need sessions to build funnel, and you don’t need to identify your users for that. Beat of two worlds - you can build a funnel and there is no need for annoying popups