管理功能測試的轉出

步驟摘要

  1. 為您的組織啟用on-device decisioning
  2. 建立A/B Test活動
  3. 定義您的功能和轉出設定
  4. 在您的應用程式中實作及演算功能
  5. 實施應用程式中事件的追蹤
  6. 啟用您的A/B活動
  7. 視需要調整轉出和流量分配

1.為您的組織啟用on-device decisioning

啟用裝置上決策可確保在幾乎零延遲的情況下執行A/B活動。 若要啟用此功能,請瀏覽至Adobe Target中的​ Administration > Implementation > Account details,並啟用​ On-Device Decisioning ​切換按鈕。

替代影像

NOTE
您必須擁有管理員或核准者使用者角色,才能啟用或停用On-Device Decisioning切換功能。

啟用On-Device Decisioning切換後,Adobe Target會開始為您的使用者端產生​ 規則成品

2.建立A/B Test活動

  1. 在Adobe Target中,導覽至​ Activities ​頁面,然後選取​ Create Activity > A/B test

    替代影像

  2. 在​ Create A/B Test Activity ​強制回應視窗中,保留預設的​ Web ​選項為已選取(1)、選取​ Form ​作為您的體驗撰寫器(2)、選取具有​ No Property Restrictions (3)的​ Default Workspace,然後按一下​ Next (4)。

    替代影像

3.定義您的功能和轉出設定

在活動建立的​ Experiences ​步驟中,提供活動(1)的名稱。 輸入應用程式中要管理功能轉出的位置名稱(2)。 例如,ondevice-rollouthomepage-addtocart-rollout是位置名稱,指出管理功能轉出的目的地。 在下列範例中,ondevice-rollout是為體驗A定義的位置。您可以選擇新增對象細分(4),以限制活動的資格。

替代影像

  1. 在相同頁面的​ Content ​區段中,選取下拉式清單(1)中的​ Create JSON Offer,如圖所示。

    替代影像

  2. 在出現的​ JSON Data ​文字方塊中,輸入您打算使用有效的JSON物件(2)在體驗A (1)中隨此活動推出的功能的功能標幟變數。

    替代影像

  3. 按一下​ Next (1)以進入建立活動的​ Targeting ​步驟。

    替代影像

  4. 在​ Targeting ​步驟中,保留​ All Visitors ​對象(1),以簡化操作。 但是將流量分配(2)調整為10%。 此功能將限製為您網站訪客的10%。 按一下「下一步(3)」以前往​ Goals & Settings ​步驟。

    替代影像

  5. 在​ Goals & Settings ​步驟中,選擇​ Adobe Target (1)作為​ Reporting Source,以便在Adobe Target UI中檢視您的活動結果。

  6. 選擇​ Goal Metric ​以測量活動。 在此範例中,成功的轉換取決於使用者是否購買專案,如使用者是否到達orderConfirm (2)位置所示。

  7. 按一下​ Save & Close (3)以儲存活動。

    替代影像

4.在您的應用程式中實作及呈現功能

Node.js
code language-js line-numbers
targetClient.getAttributes(["ondevice-rollout"]).then(function(attributes) {
      const featureFlags = attributes.asObject("ondevice-rollout");

      // Your flag variables are now available in the featureFlags object variable.
      //If you failed to qualify for the Activity, you will have an empty object.
      console.log(featureFlags);
    });
Java
code language-java line-numbers
    Attributes attrs = targetJavaClient.getAttributes(targetDeliveryRequest, "ondevice-rollout");
    Map<String, Object> featureFlags = attrs.toMboxMap("ondevice-rollout");
​
    // Your flag variables are now available in the featureFlags object variable.
    //If you failed to qualify for the Activity, you will have an empty object.
    System.out.println(featureFlags);

5.針對應用程式中的事件實作追蹤

讓功能標幟變數在應用程式中可用後,您就可以用它來啟用任何已是應用程式一部分的功能。 如果訪客不符合活動的資格,表示他們未包含在定義為對象的10%貯體中。

Node.js
code language-js line-numbers
//... Code removed for brevity

if(featureFlags.enable == "yes") { //Fell within 10% traffic
    console.log("Render Feature");
}
else {
    console.log("Disable Feature");
}

// alternatively, the getValue method could be used on the Attributes object.

if(attributes.getValue("ondevice-rollout", "enable") === "yes") { //Fell within 10% traffic
    console.log("Render Feature");
}
else {
    console.log("Disable Feature");
}
Java
code language-java line-numbers
//... Code removed for brevity
​
if("yes".equals(String.valueOf(featureFlags.get("enable")))) { //Fell within 10% traffic
    System.out.println("Render Feature");
}
else {
    System.out.println("Disable Feature");
}
​
// alternatively, the getString method could be used on the Attributes object.
​
if("yes".equals(attrs.getString("ondevice-rollout", "enable"))) { //Fell within 10% traffic
    System.out.println("Render Feature");
}
else {
    System.out.println("Disable Feature");
}

6.啟用您的轉出活動

替代影像

7.視需要調整轉出和流量分配

啟動活動後,請隨時編輯活動,以視需要增加或減少流量分配。

將流量分配從10%提高至50%,因為初始轉出成功。

替代影像

recommendation-more-help
6906415f-169c-422b-89d3-7118e147c4e3