com.unity.services.analytics 5.0.0

com.unity.services.analytics

Source docs
Notes: processedReleased July 5, 2023

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2019.4

Package Dependencies

Features

  • New initialization and consent flow. Please see the migration guide for more information: https://docs.unity.com/analytics/en/manual/AnalyticsSDK5MigrationGuide
  • ### Deprecated
  • The old initialization and consent flow should no longer be used and will be removed in a future version of the SDK. Please see the migration guide for more information: https://docs.unity.com/analytics/en/manual/AnalyticsSDK5MigrationGuide

📈 Improvements

  • Updated `com.unity.services.core` dependency to 1.10.1

Breaking Changes

  • The package no longer has a dependency on Newtonsoft.Json
  • The package now has a dependency on the Unity JsonSerialize module (JsonUtility)
  • A number of elements that were previously marked as Obsolete have now been removed

🔧 Bug Fixes

  • Analytics no longer blocks services initialization (`UnityServices.InitializeAsync`) if there is no internet connection
  • It is now possible to opt in to data collection during a session where the player has previously opted out (requires migration to the new consent flow)
  • Application.persistentDataPath is no longer requested on some platforms where access to the file system is denied by default
  • Event buffer is now cleared on a wider variety of server responses
  • Events are more eagerly cached to disk (if available) on shutdown to prevent data loss if game is closed while offline
  • Data deletion requests are now sent using the custom user ID if one is set, instead of always using the installation ID