On mobile apps, Piano Analytics defines unique visitors from an identifier that the SDK sends with each hit. The Visitors metric counts the distinct values of this identifier. Which identifier you use depends on the OS, and you can also define your own.
If a user doesn't want to be tracked, they can opt out.
Visitor IDs by OS
|
OS |
ID |
Behavior |
|---|---|---|
|
Android |
Android ID |
Provided by the phone. It stays the same even if the app is deleted and reinstalled. |
|
Android |
Advertising ID |
Provided by Google. It's unique, but the user can reset it. If the user turns off ad tracking, they can't be identified. |
|
iOS |
IDFV |
Shared across all apps from the same publisher. |
|
iOS |
IDFA |
Unique to the phone. |
|
Android and iOS |
UUID |
Your own ID, as on browsers. |
The ID you choose changes how visitors are counted. For example, with the Android ID, a user who deletes and reinstalls your app is still the same visitor. With the Advertising ID, they become a new visitor if they reset it.
To choose an ID, set it in the SDK configuration:
-
Android: see Android (Java).
-
iOS: see iOS (Swift).