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

Unity Data Privacy Plug-in

The Unity Manual has been updated with some additional GDPR information, including documentation about the plug-in:
https://docs.unity3d.com/Manual/UnityAnalyticsDataPrivacy.html

As mentioned on the plug-in page, if you use both Unity Ads and Analytics, the opt-out mechanism provided by Unity Ads applies to both services.

If you do not use Unity Ads, but do use other Unity Developer Services, such as Unity Analytics, IAP, Multiplayer, or Performance Reporting, then you must use the Unity Data Privacy plugin to provide the opt-out choice to your players. The plugin provides a button you can add to your game that opens a Unity web page where players can manage their privacy settings.

The plugin is available for Unity versions: 4.7 - 2018.1+.

If you have any questions, please refer to the FAQ in our GDPR statement. We will continue to update this page with more information.

If you have any specific questions about GDPR and Analytics, please contact: DPO@unity3d.com

If you have any technical issues with the plug-in, please let us know.

Hi, what is the best way to use the Unity Data Privacy plugin in VR enviroment? Thanks.

In the case of VR, I would not use the automatically generated Data Privacy button, since that is made on a normal canvas. I would create a button that fits in with your scene (probably using a world space canvas; sorry, I don’t have much VR development experience.). You can then attach the Data Privacy component to your button. The component will make sure the onClick callback is registered to the correct URL.

By design, the Data Privacy button will open a web page to display the privacy details. I know that isn’t the best user experience in VR, but it’s necessary to set the setting on our backend, so we can make sure all past data from that user is removed and/or anonymized and any future data is not stored.

Could you provide a template of the content of that Web page and the necessary callbacks via some Webservice? Part of GDPR is that handling all things related to privacy must be easy for users, so in most cases, the UI needs to be properly integrated with the VR UI. If you have a Unity UI component that can display your Webpage, that’s also fine. But going from VR out of the experience, into a browser doesn’t seem like it would pass the “keeping it simple for the player / user” test.

2 Likes

So … at least for SteamVR / OpenVR, the best solution is probably to use the SteamVR Web overlay - this keeps the player in VR, in a browser that works well with VR. Except the Website has rendering problems in that Webviewer: It’s all black. Here’s what it looks like with some of the text selected:

The page renders fine in Google Chrome … but all other pages I have tried so far render fine in the SteamVR Web overlay, so I think this is something that needs to be fixed on your end.

2 Likes

@jashan

Thanks for pointing that out. I’ve made our devs aware of this issue. Since this is on the web side, it shouldn’t require any updates to the plug-in.

2 Likes

@ap-unity You’re welcome - it gets worse: The Application.OpenURL(…) approach may trigger Virus scanners. Here’s what one of my players got when he clicked Privacy (it basically says that the game is considered a “threat” and the exe was moved into the quarantine folder, in other words, clicking the privacy button breaks the game until the player fixes this in Avast):

3525589--282254--UnityAvastWarning.PNG

EDIT: It’s possible that this will not happen when I use the integrated Steam browser (that currently renders black). In fact, most likely it won’t happen … but that’s not something one can rely on because it’s obviously only available for games on Steam.

Thanks for providing the plugin. But Yes, we really need some sort of API as well! In mobile VR we don’t even have the option to display a (steam) webview so for GearVR for example this would require the user to take the smartphone out of the headset and browse the webpage and afterwards restart the app and put it back into the headset. This is not convenient and definetely not compliant with GDPR. So please give us access to the privacy settings via API so that we can design our own VR-compatible UI.

Hi all, Maybe a weird Question, but as I understand the privacy Settings are related to app and device. Is there a way to test or play around with DataPrivacy.FetchOptOutStatus without losing apps and devices regarding “do not want a personalized game experience: … I understand that this action cannot be undone.”

@thikli You should be able to test using multiple test accounts for this purpose.

@JeffDUnity3D Thank you for this hint (I suppose you talk about Windows and/or OS X Accounts). I did not thinking so far, because I am working on a mobile app and I tried to test on my mobile devices.

@thikli No, I meant multiple mobile device accounts (where the game will be running).

2 Likes

Hi @JeffDUnity3D @ap-unity
Can you confirm that, on Android, the plugin relies on Google services being enabled ? I’m currently testing an app on a Android device with all Google services (including Google Play) disabled, and trying to get the data privacy url returns “Failed to get data privacy url: Unknown Error”.
If I’m correct, does that mean that Unity Analytics does not work on such a device ?

So it works as expected when Google Play is enabled? It should not be necessary as far as I know.

Forget about it, my device was just not connected to the Internet when I dit the test… :roll_eyes:
It works as expected now.

Is there some kind of technical difficulties with the plugin atm?
We’re getting “cannot resolve host” in any previously published games (version under 2018.3).

The one that comes with the Analytics (with v.2018.3) still works though.
Is this plugin not supported anymore?

If you can reproduce on a device, can you run Charles Proxy to confirm? https://support.unity3d.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity

I’ll see what can be done (probably tomorrow). I’m pretty sure that its not only our projects that are affected.
The link that is fetched by data privacy plugin (on button click) is probably got invalid somehow.

1 Like

I can confirm, my published app has the same issue. :frowning:

This has been resolved Data Privacy Plugin has stopped working! - Unity Services - Unity Discussions

2 Likes