Opt-out compliance
Understand how to implement opt-out compliance for the Analytics SDK to comply with General Data Protection Regulation and California Consumer Privacy Act requirements.
Read time 1 minuteLast updated 21 hours ago
All versions of the Analytics SDK provide compliance mechanisms consistent with known regulatory customers and guidance including General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA).
Unity 6.2 and later with Analytics SDK 6.1 and later
The Analytics SDK is controlled by the Developer Data frameworkEndUserConsentAnalyticsIntentGrantedRevokedEndUserConsentUnity 6.1 and earlier, or Analytics SDK 6.0 and earlier
In regions that require you to provide an opt-out, you must provide your own logic to determine whether the player has opted out. You may callAnalyticsService.Instance.StartDataCollection()async void Start(){ await UnityServices.InitializeAsync(); if (playerHasOptedOut) { // Do nothing, leave the SDK off } else { AnalyticsService.Instance.StartDataCollection(); }}