Respecting data privacy

  • iOS
  • watchOS
  • tvOS
 

Foreword

So that you can respect user privacy and be in accordance with the regulations in different countries, the tracker makes two features available:

  • Disabling user tracking
  • Hashing user IDs
  • Gestion de la sauvegarde des hits hors ligne (si l’option est activée)
 

Disabling user tracking (opt-out)

If your application offers a screen allowing the user to enable or disable statistical tracking, you can save this information via the static optOut property of the ATInternet class.

Hits will nonetheless be sent. Only the idclient variable enabling use tracking will contain the value “opt-out”

 

Examples

  1. Disabling user tracking

  2. Recovering user tracking status

 

Hashing user ID

The SDK allows for the automatic addition of user ID in your hits (uuid, idfv, idfa). You may also add your own user ID via the tracker’s setParam method.

To ensure visitor anonymity, all while keeping their identification in your analyses, it is possible to hash the unique ID (SHA-256). To do this, use the tracker’s setHashUserIdEnabled method as follows:

 

Offline hit customization

Offline hits are saved in the application documentDirectory directory. However Apple allows this directory to be synchronized with iCloud. To disable any backup, you can use the flag preventICloudSync of the ATInternet class.

You can also configure where the offline hit are saved with the static property databaseDirectory of the ATInternet class.

If the path is incorrect, the database won’t be initialized and the offline hits will be lost

  1. Deactivation of the iCloud backup

  2. Database path customization

Was this post helpful?
Yes
No
Last update: 21/06/2018