Introducing Koko Analytics

By Danny van Kooten on on Permalink.

After stepping down from Fathom earlier this year, I was happy working on Mailchimp for WordPress for a good few months before realising that I was still thinking about how to make web analytics more private.

It dawned on me that part of why I was building Fathom in Go was because I wanted a break from WordPress and because I deemed it necessary to achieve good enough performance.

That last part might still hold true, but when choosing not to keep track of bounce rates and the time a visitor spends on a page, things become much simpler.

Add to that the following facts and an idea was born:

That's why I set out to built Koko Analytics, a privacy-friendly analytics plugin for WordPress that does not use any external services.

Koko Analytics dashboard

Metrics

Koko Analytics currently keeps track of the following metrics:

The nice thing about running inside of WordPress is that it gives the software first-hand knowledge about what's being tracked and allows it to offer seamless integrations, like built-in event tracking for leaving comments or any of the popular form plugins.

Performance

Most likely, you won't even notice that Koko Analytics is there. Even when your site is getting hammered by a sudden burst of traffic.

To achieve this, the plugin uses an append-only buffer file in which pageviews are temporarily stored until they are aggregated using a background process that runs every 60 seconds.

In my tests it was able to handle well over 15.000 requests per second, meaning you don't have to worry about being on the first page of Hacker News. PHP has really come a long way in the last few years.

Downloading the plugin

To make sure as many people as possible have access to Koko Analytics and any improvements made by me or others, the plugin is GPLv3 licensed and available for free download.

As of yesterday, you can download Koko Analytics from WordPress.org or contribute to it on GitHub.

If you're running Koko Analytics on your WordPress site then please don't hesitate to let me know and share your thoughts on how we can make it better.

And definitely consider leaving a plugin review on WordPress.org, because as you can see we desperately need some.


Comments are welcome. You can email me at hi @ this domain.