Track users with matomo in cloudron backend/cloudron apps
Grienauer last edited by girish
Is there an easy way to add matomo to the cloudron backend, so it would track/count visits to the backend and allow a small analytic of the users there?
Also it would be perfect to add matomo to all installed apps automatically and call an event per app, so we could check which apps are how often used.
@Grienauer By backend, I assume you mean adding it matomo integration to the dashboard ? That should be doable . Also, we can probably do this even without matomo style integration, but I don't see any point in re-inventing analytics inside Cloudron...
For the apps themselves, only some apps have matomo integration, so it will difficult to implement this system wide.
I will move this to feature request.
If you want a temporary fix, you can just add the matomo script in the files at
/home/yellowtent/box/dashboard/dist. The most interesting files are index.html (after login) and login.html (before login). Of course, the changes won't be persisted across update so this is just for playing around.
ruihildt last edited by
@girish I would suggest not to add analytics to the platform by default. Only collect the data that you really need.
If people want to integrate matomo by adding a script, that's their business though, as long as it's not integrated in the platform.
(Yes I repeated myself, it was on purpose^^)
@ruihildt Yes, of course. It will be optional, if we add it.
edit: to be clear, the option will be to add your own matomo instance. we have no interest in providing a global instance (like a matomo SaaS).
I guess this will come down to allowing to inject code in various places in the dashboard, like we already allow for example in the footer. So maybe technically this is like the "branding" feature?
Matomo is also not the only web analytics software in the Cloudron appstore, so a generalised solution would be better.
Since Cloudron manages the reverse proxy it could theoretically even inject the tracking code directly into the webserver response. An example of this can be found at https://stackoverflow.com/a/51664342.
plusone-nick last edited by
@fbartels +1 for supporting a generic method for applying tracking code in the dashboard head, id like to use Umami for tracking user signup/reg
jayonrails translator last edited by
I would like to dive in here, is there:
- any chance we see this in the next Cloudron release? (@girish)
- any way to hack this in Cloudron and re-do after another update?
@jayonrails it's not a priority atm. Our next release is 7.4 and we try to put what's coming in the announcements - https://forum.cloudron.io/topic/8269/what-s-coming-in-7-4 .
We can possibly consider this in the releases after.