matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.64k stars 2.62k forks source link

Allow admin to define new browsers to match from user-agent string #15494

Open jonfreedman opened 4 years ago

jonfreedman commented 4 years ago

We're using matomo to track internal applications which can be accessed either directly from the browser or using a container e.g. electron or a vendor alternative (e.g. one of these https://www.normanandsons.com/research/).

Right now the user-agent sent by the electron derived container is just being picked up as Chrome - it would be great if we could somehow inject our own browser strings to match against, specifically it would be really great if we could match both browser and version.

tsteur commented 4 years ago

Cheers for the feature suggestion @jonfreedman I reckon we won't work on this since it is rather rarely needed but the beauty of Matomo is that it should be possible to do this in a plugin. If someone is keen to work on this: https://developer.matomo.org/guides/getting-started-part-1

jonfreedman commented 4 years ago

That's disappointing, it feels like this would be a trivial enhancement for someone who understands how the existing user-agent parsing works and will have a huge learning curve for someone who doesn't.