hashIdentities & areIdentitiesHashed
These two configuration options work together to control how the Zeotap SDK handles Personal Identifiable Information (PII) like email addresses and phone numbers when you call the setUserIdentities function. Correctly configuring these options is crucial for ensuring data is processed according to your intended hashing strategy.
PIIThese configuration only affect PIIs sent using setUserIdentities function. Recognised PIIs are cellno, email, loginid. Learn more about PIIs
Options Definitions
-
hashIdentities- Type:
Boolean - Default:
true - Description: Tells the SDK whether it should perform client-side hashing (SHA-256, MD5, SHA-1) on raw PII values (
email,cellno,loginid) provided tosetUserIdentitiesbefore sending the data to the Zeotap backend.
- Type:
-
areIdentitiesHashed- Type:
Boolean - Default:
false - Description: Tells the SDK whether the PII values you are providing in the
setUserIdentitiescall are already hashed. Iftrue, you must use the specific hashed keys (e.g.,email_sha256_lowercase).
- Type:
Default Behavior
If you do not explicitly sethashIdentities or areIdentitiesHashed during init:
hashIdentitiesdefaults totrue.areIdentitiesHasheddefaults tofalse.
Combined usage
hashIdentities | areIdentitiesHashed | Resulting Scenario |
|---|---|---|
false | false | 1: Sending Raw |
false | true | 2: Sending Pre-Hashed |
true | false | 3: SDK Performs Hashing (Default) |
true | true | Invalid |
Related Topics
Track User IdentitiesAPI Reference