Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics for Desktop Application

I wanted to have analytics for my upcoming alpha release so I can analyse how the program gets used, how often errors occur and so on.

Implementing an own approach of such is quite difficult and time consuming. Today I saw that the developers of the game "Rust" have implemented Google Analytics to track session times, average framerates based on system architecture and so on. So obviously desktop applications can use GA for that.

Now I did some research and I haven't found out anything. I have the C# assembly for Analytics V3 but I don't get how I can use it to report any data. I created a Developers Console project and added the Analytics API to the project.

But now? Analytics has only Website or Mobile App properties, authentication has only website, server or mobile apps but nowhere is something mentioned about desktop apps.

I've seldom seen such well undocumented features. Not even google spits out helpful information about the usage. All tutorials I can find are about ASP.Net websites and hence not helpful.

Does anybody know how this works? Is there any support planned on the part of Google? Is it even allowed (I guess so if Rust's developers use it)?

Thanks for any help!

like image 951
SharpShade Avatar asked Oct 21 '22 01:10

SharpShade


1 Answers

You can use a packaged lib available on NuGet which does most of the heavy lifting of sending data to google analytics. The lib uses performance protocol as mentioned by @osowskit.

Here is the link to one of them. Its open sourced so you can modify the code to your needs.

https://www.nuget.org/packages/GoogleAnalyticsTracker/ Source - https://github.com/maartenba/GoogleAnalyticsTracker

like image 165
Viral Avatar answered Oct 27 '22 12:10

Viral