配置事件捕获

此时,您必须具有:

  • 创建了人工智能模型,
  • 定义要捕获的事件类型 — 显示的选件(展示次数)和/或点击的选件(转化),
  • 以及要在哪个数据集中收集事件数据。

现在,每次显示和/或单击选件时,您都希望 体验事件 — 建议交互 字段组 Adobe Experience Platform Web SDK或Mobile SDK。

要发送事件类型(显示的选件或点击的选件),您必须为发送到Adobe Experience Platform的体验事件中的每个事件类型设置正确的值。 以下是在JavaScript代码中实施所需的架构要求:

显示选件的方案

事件类型: decisioning.propositionDisplay
来源: Web.sdk/Alloy.js(sendEvent command -> xdm : {eventType, interactionMixin})或批量摄取

 有效负载示例:
{
    "@id": "a7864a96-1eac-4934-ab44-54ad037b4f2b",
    "xdm:timestamp": "2020-09-26T15:52:25+00:00",
    "xdm:eventType": "decisioning.propositionDisplay",
    "https://ns.adobe.com/experience/decisioning/propositions":
    [
        {
            "xdm:items":
            [
                {
                    "xdm:id": "personalized-offer:f67bab756ed6ee4",
                },
                {
                    "xdm:id": "personalized-offer:f67bab756ed6ee5",
                }
            ],
            "xdm:id": "3cc33a7e-13ca-4b19-b25d-c816eff9a70a", //decision event id - taken from experience event for "nextBestOffer"
            "xdm:scope": "scope:12cfc3fa94281acb", //decision scope id - taken from experience event for "nextBestOffer"
        }
    ]
}

“已单击选件”方案

事件类型: decisioning.propositionInteract
来源: Web.sdk/Alloy.js(sendEvent command -> xdm : {eventType, interactionMixin})或批量摄取

 有效负载示例:
{
    "@id": "a7864a96-1eac-4934-ab44-54ad037b4f2b",
    "xdm:timestamp": "2020-09-26T15:52:25+00:00",
    "xdm:eventType": "decisioning.propositionInteract",
    "https://ns.adobe.com/experience/decisioning/propositions":
    [
        {
            "xdm:items":
            [
                {
                    "xdm:id": "personalized-offer:f67bab756ed6ee4"
                },
                {
                    "xdm:id": "personalized-offer:f67bab756ed6ee5"
                },
            ],
            "xdm:id": "3cc33a7e-13ca-4b19-b25d-c816eff9a70a", //decision event id
            "xdm:scope": "scope:12cfc3fa94281acb", //decision scope id
        }
    ]
}

在此页面上