In webapps it's very easy to track what the user does. In desktop apps this is much harder. As usual Google has a solution which is called Google Measurement Protocol. You can track everything and your desktop app. I have made a simple module at
The code is tested on macOS but should run also on Windows. MBS is used but only for a few calls.
Google Analytics then can be used to visualise for instance who a user moves through the application.