Open tsteur opened 3 years ago
I guess this could be maintained separately from Matomo as another project trying to keep the size to a minimum while still supporting the features 95% of all users need.
Maybe if I got too much time at hand, I'll look into it.
An experimental implementation of this idea is now available at https://github.com/Findus23/MatomoLiteTracker Depending on which features are used the final JS size goes below 1KB minified and gzipped.
If anyone wants to try it out and report their experience with it, please get in contact with me.
Just saw https://minimalanalytics.com/ and figured it could be quite nice for some people where performance matters and they only use basic feature set and no cookies.
We could offer like only
trackPageview
andtrackEvent
as part of a very minimalistic JS tracker. By default gzipped the regular matomo.js is > 50KB vs this could be maybe 1KB and be quite some difference in terms of performance.eg developer.matomo.org is only 200KB transferred data, matomo.org roughly 600-700KB or less depending on resolution etc.
It would also save a lot of time as it wouldn't need to parse and execute 200KB JS. Especially on mobile etc