的 Adobe Target JS SDK使客户能够灵活地在性能和数据新鲜度之间进行选择,以便做出决策。 In other words, if delivering the most relevant and engaging personalized content via machine learning is most important to you, a live server call should be made. 但是,当性能更为关键时,应该做出设备内和内存内的决策。 For on-device decisioning to work, refer to the following sections that list the features that are supported.
下表指明了 活动类型 创建者 基于表单的体验编辑器 或 可视化体验编辑器 (VEC)是否支持设备决策。
活动类型 | 受支持? |
---|---|
A/B 测试 | 是 |
自动分配 | 否 |
Auto-Target(自动定位) ![]() |
否 |
多变量测试 (MVT) | 否 |
Experience Targeting (XT) | 是 |
Automated Personalization ![]() |
否 |
Recommendations ![]() |
否 |
使用Analytics for Target的活动 (A4T) | 是 |
The following table indicates which audience rules are supported or not supported for on-device decisioning.
Audience rule | 受支持? |
---|---|
地域 | 是 |
网络 | 否 |
移动设备 | 否 |
自定义参数 | 是 |
操作系统 | 是 |
网页 | 是 |
浏览器 | 是 |
访客资料 | 否 |
流量源 | 否 |
期限 | 是 |
Adobe Experience Cloud Audiences (受众来源 Adobe Analytics, Adobe Audience Manager和 Adobe Experience Manager |
否 |
为了通过基于地理的受众保持设备上决策活动的最短延迟,Adobe建议您在调用 getOffers. 在请求的上下文中设置Geo对象。 这表示从浏览器中确定每个访客位置的方法。 For example, you can perform an IP-to-Geo lookup, using a service you configure. Some hosting providers, such as Google Cloud, provide this functionality via custom headers in each HttpServletRequest
.
window.adobe.target.getOffers({
decisioningMethod: "on-device",
request: {
context: {
geo: {
city: "SAN FRANCISCO",
countryCode: "US",
stateCode: "CA",
latitude: 37.75,
longitude: -122.4
}
},
execute: {
pageLoad: {}
}
}
})
However, if you are not able to perform IP-to-Geo lookups on your server, but you still want to perform on-device decisioning for getOffers requests that contain geo-based audiences, this is also supported. The downside of this approach is that it uses a remote IP-to-Geo lookup, which adds latency to each getOffers
call. This latency should be lower than a getOffers
call with server-side decisioning, because it hits a CDN that is located close to your server. Provide only the "ipAddress" field in the Geo object in the Context of your request for the SDK to retrieve the geo-location of your visitor's IP address. 如果除了“ipAddress”之外还提供了任何其他字段,则 Target SDK将不会获取用于解析的地理位置元数据。
window.adobe.target.getOffers({
decisioningMethod: "on-device",
request: {
context: {
geo: {
ipAddress: "127.0.0.1"
}
},
execute: {
pageLoad: {}
}
}
})
下表指示设备上决策支持或不支持哪些分配方法。
分配方法 | 受支持? |
---|---|
手动 | 是 |
自动分配到最佳体验 | 否 |
自动定位以提供个性化体验 | 否 |