sendEvent
The sendEvent
command is the primary way to send data to Adobe, to retrieve personalized content, identities, and audience destinations. Use the xdm
object to send data that maps to your Adobe Experience Platform schema. Use the data
object to send non-XDM data. You can use the datastream mapper to align data within this object to schema fields.
Sending event data is performed as an action within a rule in the Adobe Experience Platform Data Collection tags interface.
Run the sendEvent
command when calling your configured instance of the Web SDK. Make sure that you call the configure
command before calling the sendEvent
command.
alloy("sendEvent", {
"data": dataObject,
"documentUnloading": false,
"edgeConfigOverrides": { "datastreamId": "0dada9f4-fa94-4c9c-8aaf-fdbac6c56287" },
"renderDecisions": true,
"type": "commerce.purchases",
"xdm": adobeDataLayer.getState(reference)
});
If you decide to handle responses with this command, the following properties are available in the response object:
propositions
: An array of propositions returned by the Edge Network. Propositions that are automatically rendered include the flag renderAttempted
set to true
.inferences
: An array of inference objects, which contain machine learning information about this user.destinations
: An array of destination objects returned by the Edge Network.