Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have a minimal JS tracker with only very basic features #17094

Open
tsteur opened this issue Jan 15, 2021 · 2 comments
Open

Have a minimal JS tracker with only very basic features #17094

tsteur opened this issue Jan 15, 2021 · 2 comments
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. c: Performance For when we could improve the performance / speed of Matomo. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.

Comments

@tsteur
Copy link
Member

tsteur commented Jan 15, 2021

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 and trackEvent 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

@tsteur tsteur added c: Performance For when we could improve the performance / speed of Matomo. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. labels Jan 15, 2021
@tsteur tsteur added this to the Backlog (Help wanted) milestone Jan 15, 2021
@Findus23
Copy link
Member

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.

@tsteur tsteur added the c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. label Jan 17, 2021
@Findus23
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. c: Performance For when we could improve the performance / speed of Matomo. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
Development

No branches or pull requests

2 participants