For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Type
What it identifies
Requires

A user registered in one of your systems - CRM, loyalty programme, authentication system

A user by their email address, normally hashed

A consistent hash function

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.

Field
Type
Description

$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

Field
Type
Description

$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

Field
Type
Description

$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:

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.

Last updated

Was this helpful?