amplitude / unity-plugin

Official Amplitude Unity Plugin
https://developers.amplitude.com/docs/unity
MIT License
44 stars 34 forks source link

IDFA - Amplitude #60

Closed MartinGonzalez closed 3 years ago

MartinGonzalez commented 3 years ago

HI I saw that in version 2.0.0 the changelog says

NOTE: If you need idfa at this moment, please continue to use v1.6.0. If you don't need idfa, you can upgrade to this version.

I need the idfa since we are dealing with the apple privacy permission, version 2.1.0 has this resolved? If not, do you have any ETA?

Thanks

dantetam commented 3 years ago

Hello @MartinGonzalez,

I appreciate you bringing up this concern. We are actively fixing this right now and will release a new version with the fix within this week.

We will have a new Unity SDK function that will allow Unity apps to retrieve IDFA. I will close this when we have pushed the new release and provided documentation on how Amplitude users may include or exclude IDFA logic.

Thanks, Dante

dantetam commented 3 years ago

Hello @MartinGonzalez ,

Sorry for the delay. I wanted to provide IDFA/iOS code and ensure the documentation provided meaningful instructions. Here are the instructions to add IDFA and GPS tracking to your Unity iOS app.

MartinGonzalez commented 3 years ago

@dantetam thanks

Do you know if Amplitude will have a method to limit tracking? Like Facebook does or it doesn't need it?

dantetam commented 3 years ago

Thanks for helping us to improve the Unity SDK @MartinGonzalez

Yes, we do have the Unity API setOptOut(bool enabled). We should improve our documentation. The whole C# API is listed in Assets/Amplitude/Amplitude.cs

MartinGonzalez commented 3 years ago

@dantetam Thanks!

MartinGonzalez commented 3 years ago

Sry, me again :/ Just to be sure, if I call setOptOut(false) Amplitude will not track the user, is that correct?

dantetam commented 3 years ago

Happy to see you! :)

If you call setOptOut(true) and do not implement the instructions in the Unity IDFA/GPS guide, there will be no user events recorded at all on Android and iOS.

If you only leave out the instructions in the Unity IDFA/GPS guide, user events will be recorded but without IDFA and GPS. (IDFA and GPS tracking are turned off by default on v2.0.0 and up)