- Interfaces
IdentityData
Version:
| Type | Interface |
| Extends | EventAttributesInput |
| Import path | @sitecore-cloudsdk/events/browser |
Data for IDENTITY events.
Signature
Properties
| Name | Type | Description | Value |
|---|---|---|---|
| city | string | Optional.The site visitor's city address.Format: title case recommended. | "Dublin" |
| country | string | Optional.The site visitor's country address.Format: uppercase ISO 3166-1 alpha-2. | "IE" |
| dob | string | Optional.The site visitor's date of birth.Format: ISO 8601. | "1984-04-15" |
| string | Optional.The site visitor's email address.Format: lowercase recommended. | "[email protected]" | |
| firstName | string | Optional.The site visitor's first name.Format: title case recommended. | "Jane" |
| gender | string | Optional.The site visitor's gender. | "female""male""unknown" |
| identifiers | Identifier[] | Required.The identifiers used for identifying site visitors. | identifiers: [{ id: "123456", provider: "BXLP" }] |
| lastName | string | Optional.The site visitor's last name.Format: title case recommended. | "Doe" |
| mobile | string | Optional.The site visitor's mobile number. | "+3531234567" |
| phone | string | Optional.The site visitor's phone number. | "+3531234567" |
| postalCode | string | Optional.The site visitor's postal code. | "D2" |
| state | string | Optional.The site visitor's state address.Format: title case recommended. | "Oregon" |
| street | string[] | Optional.The site visitor's street address.Format: title case recommended. | ["Tara Street"] |
| title | string | Optional.The site visitor's title.Format: title case. | "Miss""Mr""Mrs""Ms" |
| extensionData | ExtensionData | Optional.Any custom data to collect about an event in addition to the other attributes provided for the event data. | { customKey: "customValue" } |
Identifier properties
Identifier properties| Name | Type | Description | Value |
|---|---|---|---|
id | string | Required. The unique guest (site visitor) identifier provided by your organization's identity system, such as a Customer Relationship Management (CRM) system. | "123456" |
provider | string | Required. The name of your organization's identity system, external to SitecoreAI, that provided the unique guest (site visitor) identifier. | "BXLP" |
expiryDate | string | Optional. The date the unique guest (site visitor) identifier expires. This is determined by your organization's identity system. Format: ISO 8601. | "2026-04-15T08:39.868Z" |
Examples
Here's a basic event data object for an IDENTITY event:
Here's an example event data object for an IDENTITY event with required and optional event data, and extension data:
If you have suggestions for improving this article, let us know!