I’m aware that this question is pretty old, but it’s look like Google Analytics is finally available for general use via it’s Measurement Protocol. So, that’s the most ‘official’ way to use Google Analytics for desktop (or any other ‘generic’) apps now.