cohstats / coh2stats

Statistics, usage charts and other useful information for a game Company of Heroes 2
https://coh2stats.com
32 stars 26 forks source link

Desktop App - add (google) analytics #130

Closed petrvecera closed 2 years ago

petrvecera commented 2 years ago

We should add google analytics (or any other analytics) to the app.

I've read that there are some problems with Electron and google analytics but there seems to be ways to do it https://www.npmjs.com/package/electron-google-analytics

We can create any new project in google analytics for this

We basically just need how many people are using it and you can also track how many people are using the basic features. You might be surprised what people are actually doing most and sometimes you can find out that they don't use any feature because they might not know it's there.

If google analytics can't be added - we can use something different.

JohannesMerkt commented 2 years ago

It would also be interessting to know with what kind of settings users are using the app.

petrvecera commented 2 years ago

@JohannesMerkt can you please add me on steam https://steamcommunity.com/id/pagep/ or/and discord pagep#3171 thanks!

petrvecera commented 2 years ago

Hey I think we could do this via firebase - I didn't know we would be adding firebase to our app before I added the ticket. image image

So let's postpone this ticket

petrvecera commented 2 years ago

It looks like it works 👍

image

https://console.firebase.google.com/u/0/project/coh2-ladders-prod/analytics/app/web:NTQ3OTE0OGQtOTMzNi00ODMxLTkxYWItNGVhYTg2ZWM5M2Fh/overview/~2F%3Ft%3D1644313817677&fpn%3D293737053254&swu%3D1&sgu%3D1&sus%3Dupgraded&cs%3Dapp.m.dashboard.overview&g%3D1

petrvecera commented 2 years ago

https://github.com/petrvecera/coh2ladders/pull/150