I’m working on a project where the client is insisting on using the Google Analytics iOS SDK to track screens/events in a Unity app. I ran into a wall trying to do this as a plugin where the manual tracking function just plain didn’t work. The same code that worked an a sample iOS app didn’t work in my Unity plugin. Also, I’m pretty sure that the plugin is integrated correctly because it is a duplicate of another plugin I made to create native iOS dialogs.
Has anyone had any luck using the Google Analytics App beta with Unity? Is there something I’m doing wrong?
Well, I’m sure you found some solution ages ago, i.e. this reply is very late. But in case you hit similar situation again, I’d like to mention my solution for integrating Google Analytics to Unity projects: Google Universal Analytics in Asset Store. (forum thread here)
Google’s new Universal Analytics has a “measurement protocol” specification, and the above package uses that to send hits to analytics. The advantage here is that there’s no need for native library for each platform. So the same code actually works on mobile, desktop and web player platforms. It’s implemented in pure C# and uses Unity’s WWW class for networking.