​3. A 및 B 정의

  1. 활동을 만드는 경험 단계에서 경험 추가(2) 단추를 클릭하여 활동의 이름(1)을 입력하고 두 번째 경험인 경험 B를 추가합니다. 속성을 사용하여 기능 테스트를 실행할 응용 프로그램 내의 위치(3)의 이름을 입력합니다. 아래 예제에서 product-results-page은(는) 경험 A에 대해 정의된 위치입니다. (또한 경험 B에 대해 정의된 위치입니다.)

    대체 이미지

    경험 A​에는 비즈니스 논리에 다음과 같은 작업을 수행하도록 신호를 보내는 JSON이 포함됩니다.

    • test_sorting 기능 플래그를 통해 정렬 알고리즘 기능 시작
    • sorting_algorithm _**_attribute에 정의된 권장 정렬 알고리즘 실행
    • pagination_limit에 정의된 페이지 매김 전략에 정의된 대로 페이지당 50개의 제품을 반환합니다.
  2. 경험 A에서 아래 (1)과 같이 JSON 오퍼 만들기​를 선택하여 콘텐츠를 기본 콘텐츠​에서 JSON으로 변경하려면 클릭합니다.

    대체 이미지

  3. 페이지 매김 제한이 50개인 권장 정렬 알고리즘을 시작하는 데 사용할 test_sorting, sorting_algorithm, pagination_limit 플래그와 특성을 사용하여 JSON을 정의하십시오.

    참고
    Adobe Target이(가) 사용자를 버킷하여 경험 A를 보게 되면 예제에 정의된 특성이 있는 JSON이 반환됩니다. 코드에서 기능 플래그 test_sorting의 값을 검사하여 정렬 기능을 켜야 하는지 확인해야 합니다. 이 경우 sorting_algorithm 특성의 권장 값을 사용하여 제품 목록 보기에 권장 제품을 표시합니다. 응용 프로그램에 대해 표시할 제품의 한도는 50입니다. 이 값은 pagination_limit 특성의 값입니다.

    대체 이미지

    경험 B​에서 비즈니스 논리에 다음과 같은 신호를 보내는 JSON을 정의합니다.

    • test_sorting 기능 플래그를 통해 정렬 알고리즘 기능 시작
    • sorting_algorithm _**_attribute에 정의된 best_sellers 정렬 알고리즘을 실행합니다.
    • pagination_limit에 정의된 페이지 매김 전략에 정의된 대로 페이지당 50개의 제품을 반환합니다.
    참고
    Adobe Target이(가) 사용자를 버킷하여 경험 B를 보게 되면 예제에 정의된 특성이 있는 JSON이 반환됩니다. 코드에서 기능 플래그 test_sorting의 값을 검사하여 정렬 기능을 켜야 하는지 확인해야 합니다. 그럴 경우 sorting_algorithm 특성의 best_sellers 값을 사용하여 제품 목록 보기에서 베스트셀러 제품을 표시합니다. 응용 프로그램에 대해 표시할 제품의 한도는 50입니다. 이 값은 pagination_limit 특성의 값입니다.

    대체 이미지

​4. 대상자 추가

타깃팅 단계에서 모든 방문자 대상을 유지합니다. 이렇게 하면 정렬 기능의 영향과 결과에 가장 큰 영향을 미치는 알고리즘 및 항목 수를 이해할 수 있습니다.

대체 이미지

​5. 트래픽 할당 설정

정렬 알고리즘 및 페이지 매김 전략을 테스트할 방문자의 비율을 정의합니다. 즉, 이 테스트를 롤아웃할 사용자의 비율은 얼마입니까? 이 예에서 이 테스트를 로그인한 모든 사용자에게 배포하려면 트래픽 할당을 100%로 유지합니다.

대체 이미지

​6. 트래픽 분포를 변형으로 설정

페이지당 50개 제품 제한으로 권장 대 베스트셀러 정렬 알고리즘을 보게 되는 방문자의 비율을 정의합니다. 이 예에서는 트래픽 분포를 경험 A와 B 간에 50/50으로 분할합니다.

대체 이미지

​7. 보고 설정

목표 및 설정 단계에서 Adobe Target 보고(으)로 Source​을(를) 선택하여 Adobe Target UI에서 A/B 테스트 결과를 보거나 Adobe Analytics​을(를) 선택하여 Adobe Analytics UI에서 보십시오.

대체 이미지

​8. KPI 추적을 위한 지표 추가

특성을 사용하여 기능 테스트를 측정하려면 목표 지표​를 선택하십시오. 이 예에서 성공은 표시된 정렬 알고리즘 및 페이지 매김 전략에 따라 사용자가 제품을 구매하는지 여부에 따라 결정됩니다.

​9. 속성을 사용하여 기능 테스트를 애플리케이션에 구현

const TargetClient = require("@adobe/target-nodejs-sdk");
const options = {
  client: "testClient",
  organizationId: "ABCDEF012345677890ABCDEF0@AdobeOrg",
  decisioningMethod: "on-device",
  events: {
    clientReady: targetClientReady
  }
};
const targetClient = TargetClient.create(options);

function targetClientReady() {
  return targetClient.getAttributes(["product-results-page"]).then(function(attributes) {
    const test_sorting = attributes.getValue("product-results-page", "test-sorting");
    const sorting_algorithm = attributes.getValue("product-results-page", "sorting_algorithm");
    const pagination_limit = attributes.getValue("product-results-page", "pagination_limit");
  });
}
import com.adobe.target.edge.client.ClientConfig;
import com.adobe.target.edge.client.TargetClient;
import com.adobe.target.delivery.v1.model.ChannelType;
import com.adobe.target.delivery.v1.model.Context;
import com.adobe.target.delivery.v1.model.ExecuteRequest;
import com.adobe.target.delivery.v1.model.MboxRequest;
import com.adobe.target.edge.client.entities.TargetDeliveryRequest;
import com.adobe.target.edge.client.model.TargetDeliveryResponse;

ClientConfig config = ClientConfig.builder()
    .client("testClient")
    .organizationId("ABCDEF012345677890ABCDEF0@AdobeOrg")
    .build();
TargetClient targetClient = TargetClient.create(config);
MboxRequest mbox = new MboxRequest().name("product-results-page").index(0);
TargetDeliveryRequest request = TargetDeliveryRequest.builder()
    .context(new Context().channel(ChannelType.WEB))
    .execute(new ExecuteRequest().mboxes(Arrays.asList(mbox)))
    .build();
Attributes attributes = targetClient.getAttributes(request, "product-results-page");
String testSorting = attributes.getString("product-results-page", "test-sorting");
String sortingAlgorithm = attributes.getString("product-results-page", "sorting_algorithm");
String paginationLimit = attributes.getString("product-results-page", "pagination_limit");

​10. 전환 이벤트를 추적하는 코드 구현

//... Code removed for brevity

//When a conversion happens
TargetClient.sendNotifications({
    targetCookie,
    "request" : {
      "notifications" : [
        {
          type: "click",
          timestamp : Date.now(),
          id: "conversion",
          mbox : {
            name : "product-results-page"
          }
        }
      ]
    }
})
ClientConfig config = ClientConfig.builder()
  .client("acmeclient")
  .organizationId("1234567890@AdobeOrg")
  .build();
TargetClient targetClient = TargetClient.create(config);

Context context = new Context().channel(ChannelType.WEB);

ExecuteRequest executeRequest = new ExecuteRequest();

NotificationDeliveryService notificationDeliveryService = new NotificationDeliveryService();

Notification notification = new Notification();
notification.setId("conversion");
notification.setImpressionId(UUID.randomUUID().toString());
notification.setType(MetricType.CLICK);
notification.setTimestamp(System.currentTimeMillis());
notification.setTokens(
    Collections.singletonList(
        "IbG2Jz2xmHaqX7Ml/YRxRGqipfsIHvVzTQxHolz2IpSCnQ9Y9OaLL2gsdrWQTvE54PwSz67rmXWmSnkXpSSS2Q=="));

TargetDeliveryRequest targetDeliveryRequest =
    TargetDeliveryRequest.builder()
        .context(context)
        .execute(executeRequest)
        .notifications(Collections.singletonList(notification))
        .build();

TargetDeliveryResponse offers = targetClient.getOffers(request);
notificationDeliveryService.sendNotification(request);

Attributes attributes = targetClient.getAttributes(request, "product-results-page");
String testSorting = attributes.getString("product-results-page", "test-sorting");
String sortingAlgorithm = attributes.getString("product-results-page", "sorting_algorithm");
String paginationLimit = attributes.getString("product-results-page", "pagination_limit");

​11. 속성을 사용하여 기능 테스트 활성화

대체 이미지

자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.