How to change to Opt-In in UnityAnalytics after implementing "OptOut()"?

How to change to Opt-In in Gaming UnityAnalytics after implementing “OptOut()”?
This is related to GDPR.

Thanks in advance

To Opt-BackIn
Unfortunately we don’t yet have an easy method to opt back in.
Three ways you can go about it are:

  • Delete PlayerPrefs and restart application.
  • Clear all data and cache for application.
  • Uninstall application and reinstall.
1 Like

I have done the following

  • During playback I remove the following two Playerprefs and then stop.

  • UnityInstallationid

  • Unity AnalyticsInstallationld

  • Play it again.

  • I checked the playerprefs and found that the same IDs were assigned as before I deleted the playerprefs.

Is this really Opt-BackIn?
Verified with UnityEditor 2021.3.11f LTS.

Hey Kaniyo,

Just to reiterate, we don’t yet support opt-back-in - that feature is planned but isn’t yet available.
I spoke with the engineer who wrote our implementation and they narrowed it down further:

If those items are removed, the opt out should be removed, which is analagous to opting back in.
If you’re finding things reappearing after the game has reset, then another process (perhaps even the Unity Editor itself) is restoring them - I’ll have to double check if player prefs can be permanently altered during playback.

1 Like

Thanks!!

Hey there!

Appreciate your patience. Tested it myself, with the game in play mode and deleted the player prefs from the registry.
After restarting the game, a new userID was generated and events were recorded, as expected :slight_smile:

Let me know if you have any further issues!

1 Like