TLDR; How do you actually verify that the connection between your game and the Unity analytics backend is actually working?
This has been my experience trying to get Unity analytics working in my project this week.
For a little background, I have used Unity analytics before, and with the delay in processing for the events to start coming through (sometimes up to 24 hours), it was always crucial that I could validate that the connection was actually working after I turned on the feature.
I’m using Unity 2020.1.4f1. When I open the services tab and turn on analytics, the editor panel allows me to turn on the analytics service, and then it says to hit the “play” button. It also says “Pressing play will send test data to validate the connection with analytics servers”.
Pressing play doesn’t seem to do anything, and when I visit the dashboard through the link in that editor panel, it takes me to a page that provides no feedback on whether the connection is working - all it says is “Go to the editor to enable analytics for your project”. There is no link to further documentation on this page.
Then after an hour or so of trying, I finally stumbled upon this form post from a year ago:
This forum post points to this API documentation page for a data type, and as far as I can tell, none of the other documentation pages for analytics describe how this result should be used in practice:
Looking at this in the code though, it seems that this data type is a return type for every form of Unity analytics event call - but it’s not an asynchronous, which makes me think it’s not actually useful for determining whether the events are actually being received successfully on the server.
And indeed, two days after turning analytics on in my project, the dashboard is still showing no data and acting as if I haven’t enabled analytics.
It’s incredible to me that for a service that doesn’t actually “turn on” for up to 24 hours after its enabled, Unity has apparently removed the one tool that made it possible to ensure it was working.
This makes me wonder whether Unity analytics is a feature that Unity actually intends to support going forward, because frankly this whole UX is incredibly frustrating.