sendEvent
The sendEvent command is the primary way to send data to Adobe. Its response object is the primary way 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. The payload when sending data to Adobe has a maximum limit of 64 KB.
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" },
personalization: { decisionScopes: ["hero-banner"]},
renderDecisions: true,
type: "commerce.purchases",
xdm: adobeDataLayer.getState(reference)
});
Response object
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 flagrenderAttemptedset totrue.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.
Send event using the Web SDK tag extension
The Web SDK tag extension equivalent of this command is the Send event action.
recommendation-more-help
1ae86b30-e55e-49c1-ab11-9d0356a5f3e1