koko-analytics icon indicating copy to clipboard operation
koko-analytics copied to clipboard

Feature Suggestion: A Standalone, Non-WordPress Version

Open webguyio opened this issue 3 years ago • 3 comments
trafficstars

I'm officially done with Google Analytics and I'm never going back. Koko solves my needs for WP, but what about a simple, static website?

How easy would it be to port the plugin over as standalone PHP/MySQL script for a plain ol' website on LAMP?


Please vote on this feature suggestion using :+1: or :-1: below.

webguyio avatar Aug 17 '22 13:08 webguyio

Hey @bhadaway,

This is a great idea and obviously one I've mulled over at times. It actually existed in the form of (the original version of) Fathom already, which I built before deciding piggybacking along on WordPress would allow me to reach a much broader audience.

The issue was that because of it being self-hosted, the audience was pretty much limited to developers and devops people. Perhaps this would be alleviated a little bit if it were built in PHP instead of Go?

As it stands the plugin is pretty tightly coupled to WordPress so it would be some effort. The dashboard itself is written in React and just fed some initialization data from WordPress so can pretty much be ported as is, but the tracking snippet and storage of data is another story I'm afraid.

Another issue is that the plugin currently uses post/page ID's internally to a) save on a ton of storage space and b) know about the canonical version of each page. With a standalone version this should be designed differently, which is actually harder than one might think at first.

dannyvankooten avatar Aug 18 '22 13:08 dannyvankooten

Whoops, sorry. Did not mean to close this as I'm definitely still keen on this... It would just be such a massive time investment that I do not see it happening any time soon.

dannyvankooten avatar Aug 18 '22 13:08 dannyvankooten

Oh yeah, I realize that if it happens at all, it won't be for a while. Plus, it's not something you'd necessarily have to do alone. I think Koko is special (I may write up a more thorough review on one of my blogs) and that the audience will grow. Along with popularity will hopefully come people that are willing to help extend the project.

webguyio avatar Aug 18 '22 14:08 webguyio