What happens when opting out of data collection?

Hello,

I just started using unity analytics. While reading the documentation, I’ve realized that I have to give players an option to opt-out from data collection either through the Data Privacy button that comes with the Analytics package or use my own UI solution. What is still not clear to me is if the button or UI solution should be presented to the player every time they open the game or it could be a one time thing such as accepting the terms of service. Also, what happens if the player opt-out from data collection? Will Unity automatically stop sending analytics events from that specific player or will it just filter their personal data (e.g. location, IP address) but keep other events information such as “level_start”, “tutorial_complete”.

It should stop sending all events (is my understanding). But I would highly encourage you to test as the behavior has been changing between Unity versions. You will want to use Charles Proxy to confirm what is being sent. Add the charlesproxy.unitypackage to your project https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity

Thank you for the advice. The application “Charles Proxy” really showed the events being sent. I opted out from data collection to see if events would still be sent and they did. Do this means that I will have to block event sending myself?
I will have to wait a little more to see if the event data sent are going to appear on my dashboard or on raw data export.

Now that I’ve opted out, is there a way to “opt in” again? I would like to do more tests in the future :).

No there isn’t. It’s the content of the data that is important, not that there is network activity. Also, just because a client sends data, we don’t store it at our end. It’s the storage of sensitive data that is the issue.

Oh I see, it is just the sensitive data that is not stored. Everything else is normally sent, am I correct? I’m asking this because I sent events after making the opt-out. Now, I’ve downloaded the events information using the raw data export and I can confirm that everything I’ve sent is there. The nuance is that I’ve never sent sensitive data, so that’s why I don’t see anything missing.

You want to inspect the Charles Proxy capture request and response, feel free to send it to me in a private message. It needs to be unencrypted, did you add the charlesproxy.unitypackage to your project?

I didnt add charlesproxy.unitypackage to my project (I just saw the file on the end of the support page when you mentioned it. I’m not sure what to do with it). But I was still able to capture the events being sent.

I looked at your capture, all looks correct.

1 Like

Thank you! Last question, do I have to offer the opt out option every time the player opens the game? or, can I just present it once, like the terms of use?

I believe just once per game title.

1 Like

Perfect! Thank you!