Send an IDENTITY event to Sitecore CDP
Provides the required attributes and a JSON example of how to send an IDENTITY
event to Sitecore CDP (Data model 2.1).
All events that are passed to Sitecore CDP using the Stream API are attributed to a guest using the identifiers
object.
Warning
Stream API does not support using Personally Identifiable Information for identifying guests.
In the Sitecore CDP 2.1 data model, the Stream API only supports using the identifiers
object to identify guests. The Stream API does not support sending PII in an IDENTITY
event to perform identity. You can send PII as supplementary, optional data.
You must capture IDENTITY
events wherever in the site that the guest provides data that might help identify them. It is common for a single browser session to have multiple IDENTITY
events.
To send an IDENTITY
event, use the following attributes:
Attribute | Description | Type | Example(s) | Required/optional |
---|---|---|---|---|
| The channel captured on each page the guest visited. | string (uppercase) |
| Required |
| The type of event. | string (uppercase) |
| Required |
| The language captured on each page the guest visited. | string (2 letter ISO 639 language code) |
| Required |
| The type of currency. | string (3 letter ISO 4217) |
| Required |
| The name of the webpage the guest visited. | string |
| Required |
| The point of sale (storefront) captured on each page the guest visited. | string (predefined by client) |
| Required |
| The ID of a browser generated by Sitecore CDP. | string (UUID) |
| Required |
| The email address of the guest. | string (suggest lowercase) |
| Optional |
| The title of the guest. | string (title case) |
| Optional |
| The first name of the guest. | string (suggest title case) |
| Optional |
| The last name of the guest. | string (suggest title case) |
| Optional |
| The gender of the guest. | string |
| Optional |
| The date of birth of the guest. | ISO 8601 date time ‘YYYY-MM-DD’T’hh:mm’ |
| Optional |
| The mobile number of the guest. | string |
| Optional |
| The phone number of the guest. | string |
| Optional |
| The street address of the guest. | array of strings (suggest title case) |
| Optional |
| The city address of the guest. | string (suggest title case) |
| Optional |
| The state address of the guest. | string (suggest title case) |
| Optional |
| The country address of the guest. | ISO 3166-1 country code (uppercase) |
| Optional |
| The postal code of the guest. | string |
| Optional |
| The JSON array of objects that contain the identity identifiers provided by your organization. | A JSON array of objects | N/A | Required |
| The name of the organization's identity system, external to Sitecore CDP, that provided the unique identifier. | string |
| Required |
| The unique guest identifier from the organization's identity system, such as a Customer Relationship Management (CRM) system. | string |
| Required |
| The date the guest's unique ID is set to expire, according to the customer's identity system, such as a CRM system. | ISO 8601 date/time UTC |
| Optional |
The following JSON example demonstrates how to send an IDENTITY
event to Sitecore CDP:
{ "channel": "WEB", "type": "IDENTITY", "language": "EN", "currency": "EUR", "page": "home page", "pos": "retailsite123.com", "browser_id": "56860bff-94ba-4d84-aa37-2b5a83d5411b", "identifiers": [{ "provider": "BXLP", "id": "123456" }] }