data
The data
object allows you to send a payload to Adobe that does not match an XDM schema. It is useful in non-XDM scenarios, such as sending data directly to Adobe Analytics, Adobe Target, or Adobe Audience Manager. When data arrives at the datastream, you can use Data Prep mapping to assign XDM fields to each field in the data
object.
Data within this object must have at least one of the following actions:
data
object.If a given property is not mapped to an XDM field or used by a configured service, that data is permanently lost.
data
object through the Web SDK tag extensionProvide a data element in the Data field within the actions of a tag rule.
data
object through the Web SDK JavaScript librarySet the data
object as part of the JSON object within the parameter of the sendEvent
command. For data that you plan to map in the datastream, you can structure this object however you’d like. For data used by certain services, make sure that the object hierarchy matches what the service expects. You can include both the data
object and the xdm
object in the same sendEvent
command.
alloy("sendEvent", {
"data": dataObject
});
data
object with Adobe AnalyticsYou can use the data
object with Adobe Analytics to send data to a report suite without an XDM schema. Variables are configured to use the same syntax as AppMeasurement variables, simplifying the upgrade process to the Web SDK. See Data object variable mapping to Adobe Analytics in the Adobe Analytics implementation guide for more information.