googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system
Apache License 2.0
385 stars 140 forks source link

Desktop support? #26

Open gekidoslair opened 9 years ago

gekidoslair commented 9 years ago

This is more of a question than an issue per-say:

I know that the google analytics mobile sdk is for Android / IOS - but is there any way to use google analytics for a normal 'desktop' application? We have a game on Steam (for example) that I'd like to use GA to track usage etc. Is this a supported use case?

Thanx in advance

Drastick2k commented 9 years ago

For me, it works while running in Unity editor on PC, which fantastic for development because the other plugins I tried were Android/IOS only so to test you had to be running on the device. This should do everything you need in your scenario, all the stat tracking I'm getting from my development PC comes across as such on Google and is identified as desktop system.

Edit: I am running my build target as Android, but I don't think that matters? It was VERY easy to get this one up and running. It shouldn't take you long to test it out.

gekidoslair commented 9 years ago

awesome, will give it a try, and will post back what I find. Thanx alot for the response!

emmanuellemm commented 9 years ago

Hi gekidoslair,

We definitely expect it should work with Steam games. Please let me know if this is not the case so I can investigate further.

Thanks

gekidoslair commented 9 years ago

Integration is working well, will have first build with this integrated pushed out pretty quick I think. Will double check that the stats are showing up before, but looks promising!

Thanx!

Brainversation commented 7 years ago

How should I setup the backend and GAv4 prefab if I want it to work with a desktop game?

Should I just use my android Tracking code in Other Tracking code? ( How do I get an Other Tracking Code?)

Thanks!

baldwin628 commented 7 years ago

@Brainversation You get a tracking code when you create a property in Google Analytics. They are not specific to any platform and can be used across depending on what types of analysis you want to do.

The three boxes for the tracking code allow you to specify a different one for each platform if you want the data to separate. You can use the same tracking code for each if you want it all combined into one property.

You can use which ever tracking code you want depending on how you want to view the data. If you want to keep your desktop analytics traffic separate from Android then you would want to create a new property which will give you a new tracking code to use.

Brainversation commented 7 years ago

Oh that makes sense thank you for the help!