IDENTITY event
The event data object for an IDENTITY event must include all the required attributes for event data objects plus the following attributes:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
array of objects |
The identifiers that are used to identify the users of your app. |
RequestResponse
|
The identifiers
array of objects:
Attribute |
Type |
Description |
Example |
Required/optional |
---|---|---|---|---|
|
string |
The unique guest identifier provided by your organization's identity system, such as a Customer Relationship Management (CRM) system. |
|
Required |
|
string |
The name of your organization's identity system, external to Sitecore CDP, that provided the unique guest identifier. |
|
Required |
|
string (ISO 8601) |
The date the unique guest identifier expires. This is determined by your organization's identity system. |
|
Optional |
The object can optionally include personally identifiable information (PII):
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string (lowercase recommended) |
The email address of the guest. | |
|
string (title case) |
The title of the guest. |
|
|
string (title case recommended) |
The first name of the guest. |
|
|
string (title case recommended) |
The last name of the guest. |
|
|
string |
The gender of the guest. |
|
|
string (ISO 8601) |
The date of birth of the guest. |
|
|
string |
The mobile number of the guest. |
|
|
string |
The phone number of the guest. |
|
|
array of strings (title case recommended) |
The street address of the guest. |
|
|
string (title case recommended) |
The city address of the guest. |
|
|
string (title case recommended) |
The state address of the guest. |
|
|
string (uppercase ISO 3166-1 alpha-2) |
The country address of the guest. |
|
|
string |
The postal code of the guest. |
|
After you create this event data object, you can optionally extend this event using the extension data object. Then, you can send the event using the Engage.identity()
function.
Here's an example of the event data object for an IDENTITY event. This event data object contains the identifiers
array of objects and the following, optional PII attributes: email
, firstName
, lastName
.
const eventData = {
channel: "WEB",
currency: "EUR",
pointOfSale: "myretailsite/ireland",
language: "EN",
page: "home",
email: "[email protected]",
firstName: "Jane",
lastName: "Doe",
identifiers: [
{
id: "123456",
provider: "BXLP"
}
]
}