How to implement Google Analytics opt-out feature in Android?

How can we implement the opt-out function of Google Analytics in Android? Is there any method we need to use, or do we need to do this using some flags (explicitly handle the code)? Any pointers would be very helpful. thanks in advance

+4
source share
2 answers

The documentation for adding a user to opt out of using Google Analytics is available on the developer portal:

https://developers.google.com/analytics/devguides/collection/android/v2/advanced#opt-out

+3
source

You can implement a logical SharedPreference, which will indicate whether you want to enable Google Analytics or not. Before calling the dispatcher () on your tracker, check the preference.

+2
source

Source: https://habr.com/ru/post/1345674/


All Articles