Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question UnityEngine.Analytics.DataPrivacy.FetchPrivacyUrl ???

Discussion in 'Unity Analytics' started by danny_unity544, Mar 2, 2022.

  1. danny_unity544

    danny_unity544

    Joined:
    Dec 22, 2021
    Posts:
    4
    Does this still exist? It doesn't work for me in Unity 2020.3 with latest analytics package loaded in.
    https://docs.unity3d.com/2020.3/Documentation/Manual/UnityAnalyticsDataPrivacy.html


    If it doesn't exist then should we handle this situation another way? I am sure that I need to offer some way of the user opting out of analytics yes?

    The analytics library doesn't seem to contain this at all...

    upload_2022-3-2_12-49-11.png

    Any advice on how to handle this? Do we just have an opt out button with a popup or something under settings? Please advice thanks!
     
  2. EllieF_Unity

    EllieF_Unity

    Unity Technologies

    Joined:
    Nov 27, 2020
    Posts:
    39
    (Confirmed with @danny_unity544 that they intend to use Game Services Analytics and not Legacy Analytics in conversation on support ticket, posting answer here for visibility)

    The Gaming Services Analytics (new analytics) uses a different system for Privacy Functions than the Legacy Analytics. With Game Services Analytics, for GDPR and CCPA compliance, you should follow the documentation here: https://docs.unity.com/analytics/ComplyingWithGDPRandCCPA.html. In addition to GDPR and CCPA, if you are going to distribute your game in China, you should also consider reading through the information about China's privacy laws: https://docs.unity.com/analytics/ComplyingWithPIPL.html.

    TL;DR for the documentation:
    To get the URL, you can use:
    Application.OpenURL(Events.PrivacyUrl);


    To allow users to opt-out, you can create a button which calls :
    Events.OptOut();
     
    JeffDUnity3D likes this.