Unity Analytics provides insight into your game users e.g. DAU, MAU.
Note: The documentation that follows is for usage of Unity Analytics with Unity 5.1 and above. To integrate Unity Analytics with earlier versions of Unity, refer to the documentation at https://analytics.cloud.unity3d.com/docs
Specifically, out-of-the-box features include access to user engagement and retention data through Metric Monitor and Data Explorer. Segmentation of players across various user dimensions and characteristics is automatically applied, with more than 20 standard segments available without any additional instrumentation.
For more detail around features, refer to the Unity Analytics homepage at http://unity3d.com/unity/analytics.
Important: Always make calls to the Analytics API inside the scope of an #if ENABLE_CLOUD_SERVICES_ANALYTICS statement to prevent compilation errors on platforms that do not support Analytics:
#if ENABLE_CLOUD_SERVICES_ANALYTICS // Analytics code #endif
configUrl | Get the Analytics config endpoint. |
dashboardUrl | Get the Analytics dashboard endpoint. |
deviceStatsEnabled | Controls whether the sending of device stats at runtime is enabled. |
enabled | Controls whether the Analytics service is enabled at runtime. |
eventUrl | Get the Analytics event endpoint. |
initializeOnStartup | Reports whether Unity is set to initialize Analytics on startup. |
limitUserTracking | Controls whether to limit user tracking at runtime. |
playerOptedOut | Reports whether the player has opted out of data collection. |
CustomEvent | Custom Events (optional). |
EnableCustomEvent | Use it to enable or disable a custom event. |
EnableEvent | Use it to enable or disable an event. |
FlushEvents | Attempts to flush immediately all queued analytics events to the network and filesystem cache if possible (optional). |
IsCustomEventEnabled | Use it to check to custom event enable status. |
IsEventEnabled | Use it to check to an event enable status. |
RegisterEvent | This API is used for registering a Runtime Analytics event. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
ResumeInitialization | Resume Analytics initialization. |
SendEvent | This API is used to send a Runtime Analytics event. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
SetEventEndPoint | Use this API to set the event end point URL. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
SetEventPriority | Use this API to set the event priority. Note: This API is for internal use only and is likely change in the future. Do not use in user code. |
Transaction | Tracking Monetization (optional). |