User identifiers
The types of user identifier, and how to send them.
Your goal
Pick the identifiers you will send with every activity and import, and send them in the form the platform expects.
Expected outcome
Each of your data sources carries at least one identifier the platform can resolve, and the identifiers are formatted consistently across all of them.
The identifier types
A user registered in one of your systems - CRM, loyalty programme, authentication system
A device, through one or more technical identifiers
How you send them
Identifiers travel in the $user_identifiers list of a UserActivity. The list can hold several identifiers of each type.
$type
Constant string
USER_ACCOUNT
$compartment_id
Integer
The ID of the compartment associated with this activity
$user_account_id
String
The user account ID of the user
$expiration_ts
Timestamp, optional
The account's expiration timestamp
$type
Constant string
USER_EMAIL
$hash
String
The email hash
$email
String, optional
The raw email
$expiration_ts
Timestamp, optional
The email's expiration timestamp
$type
Constant string
USER_AGENT
$user_agent_id
String
The user agent ID. Currently supported agent type: vector ID, vec:<vector_id> - for example vec:89090939434
$expiration_ts
Timestamp, optional
The agent's expiration timestamp
The full set of identifier formats for devices - cookies, mobile IDs, CTV IDs, network IDs - is in UserDevice & UserDeviceTechnicalId.
What happens when an identifier arrives
An activity or import carrying one of these properties is automatically related to the correct UserPoint.
An activity using an identifier that does not already exist in the datamart triggers the creation of a new UserPoint.
Identifiers that link two existing UserPoints cause a merge.
Working with identifiers in bulk
You can associate, dissociate, or delete user identifiers in bulk using the batch import features:
Enrich users with identifiers - declare that identifiers belong together.
Import identifiers - send identifiers as documents.
Delete user data - remove identifiers or whole UserPoints.
Verify
Every source sends at least one identifier the platform can resolve.
Account IDs are always accompanied by a compartment ID.
Email hashes use the same function everywhere.
Device identifiers reference a registry that exists.
Related pages
Last updated
Was this helpful?