Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Official Unity Analytics Data Privacy Plug-in Available Now in the Asset Store

Discussion in 'Unity Analytics' started by ap-unity, May 21, 2018.

  1. Swah

    Swah

    Joined:
    May 13, 2015
    Posts:
    20
    Thank you @coshea for being thorough on this. I have the same question, which I've been trying to get an answer to here and by email. To emphasize the reason this is a problem for kid app developers: we can't easily ask for consent, as kids cannot give consent and it's hard to ensure parents saw the consent form. So an opt-out form is not an option.
     
  2. coshea

    coshea

    Joined:
    Dec 20, 2012
    Posts:
    243
    So specific question regarding this plugin...

    The plugin fetches the optout status from playerprefs then the url and calls function SetOptOutStatus and sets the following:

    Code (csharp):
    1.  
    2. Analytics.enabled = Analytics.enabled && optOutStatus.analyticsEnabled;
    3.                
    4. Analytics.deviceStatsEnabled = Analytics.deviceStatsEnabled && optOutStatus.deviceStatsEnabled;
    5.                
    6. Analytics.limitUserTracking = Analytics.limitUserTracking || optOutStatus.limitUserTracking;
    7.               PerformanceReporting.enabled = PerformanceReporting.enabled && optOutStatus.performanceReportingEnabled;
    8.  
    From testing this, the only thing that changes if you opt out on the privacy page is limitUserTracking, correct?

    optOutStatus.analyticsEnabled and optOutStatus.performanceReportingEnabled are being pulled from the project settings (from online)?

    Under what situation would deviceStatsEnabled be true (or off)? This isn't the Player hardware stats is it.
     
  3. CarinaMclane

    CarinaMclane

    Joined:
    Mar 12, 2014
    Posts:
    23
    Hi!

    I'm trying to use this plugin for a client project, however I am unable to find the Data Privacy icon that is referred to in the documentation and in the wider Unity privacy policy.

    At https://docs.unity3d.com/Manual/UnityAnalyticsDataPrivacy.html the documentation says, for Method 2:

    However, this icon does not seem to exist in the asset I retrieved from the asset store.

    Is there an alternative place I could get this from?

    Thanks!
     
  4. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,068
    @CarinaMclane,

    Yes, it will be in the next version of the plug-in, which should be released soon.

    In the meantime, here is the icon:
     

    Attached Files:

  5. CarinaMclane

    CarinaMclane

    Joined:
    Mar 12, 2014
    Posts:
    23
    Fab, thank you!
     
  6. sadstorygr

    sadstorygr

    Joined:
    Jul 22, 2014
    Posts:
    5
    Hello ap-unity, I have a problem getting the following work.
    ////////////
    using UnityEngine.Analytics;
    ...{
    void OnOptOutStatus(bool optOut)
    {
    if (optOut)
    {
    Debug.Log("Player has opted-out of personal data collection.");
    }
    }
    DataPrivacy.FetchOptOutStatus(OnOptOutStatus);
    }
    ////////////////////
    Error: "The name DataPrivacy.FetchOptOutStatus does not exist in the current context" althought I use .Analytics, what can be the problem for this?
     
  7. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,068
    @sadstorygr

    Have you installed the latest version of the Data Privacy plug-in?
     
  8. sadstorygr

    sadstorygr

    Joined:
    Jul 22, 2014
    Posts:
    5
    Yes, I installed the plug-in today, the name is shown in blue in Visual Basics but still not recognized. Do I have to add the script to a gameobject inside my scene and get it as a component to run the line?
     
  9. Klednik

    Klednik

    Joined:
    Aug 4, 2017
    Posts:
    1
    Hello ap-unity. We use data privacy plugin in our game because of IAP and currently i working on performace improvement. One thing what i found and what really bother me is that every click on UI button call coroutines of DataPrivacy script. Actualy, we do not need data from analytics so my question is that is there some posibility to turn off mentioned behauvior of data privacy plug in?
     
  10. sadstorygr

    sadstorygr

    Joined:
    Jul 22, 2014
    Posts:
    5
    Ok, figured out my stupidity, I was running
    DataPrivacy.FetchOptOutStatus(OnOptOutStatus);
    outside a method. Working fine, thank you
     
  11. JamesArndt

    JamesArndt

    Joined:
    Dec 1, 2009
    Posts:
    2,532
    Okay so reading this I am understanding the following: If my game does not use any services, ads or analytics...so as the developer I am requesting no player data, and Unity themselves are the only ones pulling data for their own legitimate business interests, then I require no consent form for the user. It seems pretty clear in that body of text that the embedded Unity stats that Unity is taking from the user are covered by a legitimate business clause and therefore exempt from requiring consent.

    "With legitimate interests as a legal basis for its processing, Unity does not require consent."
     
  12. RealMTG

    RealMTG

    Joined:
    Jul 27, 2013
    Posts:
    218
    In 2018.3 it says the plugin should not be used and is included in analytics, but I can't figure out how to use it. Any guidance on how I can use it?
     
    JamesArndt likes this.
  13. iddqd

    iddqd

    Joined:
    Apr 14, 2012
    Posts:
    308
    So what do you do, when your app is using several services that collect data, let's say: Photon, Unity Analytics, Firebase, Gamesparks? (Let's assume they are 4 services that collect data)
    Would that mean 4 opt-out buttons?

    Thanks
     
  14. Raubi

    Raubi

    Joined:
    Apr 3, 2015
    Posts:
    1
    I've basically the same problem. Can not find anything in the Analytics Lib 3. Where did it go?
     
  15. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,068
    Yeah, the Data Privacy Asset Store plug-in was not designed to work with 2018.3, so you may run into errors when you import it.

    The Data Privacy plug-in will be embedded in the next version of the Analytics package, which will be available via Package Manager. It should be available soon.
     
    JamesArndt and RealMTG like this.
  16. Jelmersb

    Jelmersb

    Joined:
    Jul 12, 2016
    Posts:
    66
    Hi, I want(need*) to make my app opt-out of any personal data gathering by default, while still using remote settings and get some analytics. possible?

    * Or I'll have to switch off analytics sadly, orders from our security department..