Personalization data object
Use the personalization data object to collect identifying data about a user, and the friendlyID
of an interactive full stack experience or an interactive full stack experiment that you want to run for the user. You then send the object to Sitecore Personalize, and Sitecore Personalize runs the experience or experiment.
After you create this object, you can send it using the Engage.personalize()
function.
Here's an example of a personalization data object that doesn't contain the email
attribute or the identifier
attribute to identify the guest. In this case, the browser ID is the guest identifier. This personalization data object also contains an optional custom object.
const personalizationData = {
channel: "WEB",
currency: "EUR",
pointOfSale: "myretailsite/ireland",
friendlyId: "running_shoes_popup_02",
// optional attributes:
params: { key: "value" }
}
Here's an example of a personalization data object that uses the email
attribute as the guest identifier.
const personalizationData = {
channel: "WEB",
currency: "EUR",
pointOfSale: "myretailsite/ireland",
friendlyId: "running_shoes_popup_02",
// guest identifier:
email: "[email protected]"
}
Here's an example of a personalization data object that uses the identifiers
attribute as the guest identifier.
const personalizationData = {
channel: "WEB",
currency: "EUR",
pointOfSale: "myretailsite/ireland",
friendlyId: "running_shoes_popup_02",
// guest identifier:
identifier: {
id: "123456",
provider: "BXLP"
}
}