sendEvent

sendEvent 命令是将数据发送到Adobe以检索个性化内容、身份和受众目标的主要方式。 使用 xdm 对象,用于发送映射到Adobe Experience Platform架构的数据。 使用 data 对象以发送非XDM数据。 您可以使用数据流映射器将此对象中的数据与架构字段对齐。

使用Web SDK标记扩展发送事件数据

在Adobe Experience Platform数据收集标记界面的规则中,发送事件数据是一项操作。

  1. 登录 experience.adobe.com 使用您的Adobe ID凭据。
  2. 导航到 数据收集 > 标记.
  3. 选择所需的标记属性。
  4. 导航到 规则,然后选择所需的规则。
  5. 下 操作,选择现有操作或创建操作。
  6. 设置 扩展名 下拉字段至 Adobe Experience Platform Web SDK,并设置 操作类型 到 发送事件.
  7. 设置所需字段,然后单击 保留更改,然后运行发布工作流程。

使用Web SDK JavaScript库发送事件数据

运行 sendEvent 命令。 确保您致电 configure 命令之前调用 sendEvent 命令。

alloy("sendEvent", {
  "data": dataObject,
  "documentUnloading": true,
  "edgeConfigOverrides": { "datastreamId": "0dada9f4-fa94-4c9c-8aaf-fdbac6c56287" },
  "renderDecisions": true,
  "type": "commerce.purchases",
  "xdm": adobeDataLayer.getState(reference)
});

响应对象

如果您决定 处理响应 使用此命令,响应对象中提供了以下属性:

  • propositions:Edge Network返回的一组建议。 自动呈现的建议包含标志 renderAttempted 设置为 true.
  • inferences:推理对象数组,其中包含有关此用户的机器学习信息。
  • destinations:边缘网络返回的目标对象数组。
recommendation-more-help
ad108910-6329-42f1-aa1d-5920a2b13636