Countly [1] is another open source alternative to Google Analytics - suggest you try it on Digital Ocean [2] or deploy on your own [3].
It is self hosted, has support for desktop apps, mobile apps and web apps at the same time.
[1] https://count.ly
[2] https://marketplace.digitalocean.com/apps/countly-analytics