Skip to main content
Identity management allows you to track users across different sessions, devices, and platforms by associating multiple identifiers (aliases) with a single user profile.

Single Identity

Multiple Identities

AAID Provider

Overview

In the Android SDK, you can set aliases using the setIdentity() method or configure automatic identity providers like AAID at initialization.

Key Concepts

Setting Identity

For apps with only one type of user identifier:
When using the single-parameter setIdentity(), the alias tag is automatically set to "default".

With Priority and Expiry

Security Best Practices

Always hash personally identifiable information like email addresses before sending to Permutive.

Standard Tag Names

Automatic Identity Providers

AAID (Android Advertising ID)

From v1.12.0, the AAID and IP address can be collected automatically when enabled in your workspace config - no provider code required. See the v1.12 Migration Guide. If you opt into automatic collection, you generally don’t need the manual AaidAliasProvider setup below.
Use the Google Ads add-on for automatic AAID identification:
1

Add Dependency

2

Add Permission

In your AndroidManifest.xml:
From Android 13 (API 33+), the AD_ID permission is required to access the advertising ID.
3

Configure SDK

The AAID will be automatically retrieved and set with the tag "aaid".

Common Patterns

Expiry

Aliases can expire automatically, useful for GDPR compliance, ad IDs, and session identifiers.

Troubleshooting

Problem: Setting identity doesn’t seem to merge user data.Solutions:
  • Check network connectivity
  • Verify alias has been used in other sessions/devices
  • Enable debug logging: permutive.setDeveloperMode(true)
  • Look for “Identified user with aliases” in logs
Problem: Same user appears as two different users.Solution: Use consistent alias tags and values. When user logs in on multiple devices, use the same alias (e.g., hashed email).
Problem: Worried about sending personally identifiable information.Solution:
  • Always hash emails and other PII with SHA-256
  • Normalize data before hashing (lowercase, trim whitespace)
  • Never send raw email addresses, phone numbers, or names

Best Practices

  • Hash PII (especially email addresses) before setting as identity
  • Use meaningful tag names that describe the identifier type
  • Set priorities based on reliability and persistence
  • Use expiry dates for temporary or less reliable identifiers
  • Set identity as early as possible in the user journey
  • Test identity resolution with debug logging enabled

AAID Provider

Automatic advertising ID tracking

Cohorts & Activations

Understanding user segments

Triggers Provider

React to cohort changes

Issues

Solutions to common issues