2. Create an A/B Test activity

  1. In Adobe Target, navigate to the Activities page, then select Create Activity > A/B test.

    alt image

  2. In the Create A/B Test Activity modal, leave the default Web option selected (1), select Form as your experience composer (2), select Default Workspace with No Property Restrictions (3), and click Next (4).

    alt image

3. Define your A and B

  1. In the Experiences step of activity creation, provide a name for your activity (1) and add a second experience, Experience B, by clicking the Add Experience (2) button. Enter the name of the location (3) within your application where you want to execute your feature test with attributes. In the example shown below, product-results-page is the location defined for Experience A. (It is also the location defined for Experience B.)

    alt image

    Experience A will contain the JSON that signals your business logic to do the following:

    • Initiate the sorting algorithm feature via the test_sorting feature flag
    • Execute the recommended sorting algorithm defined in the sorting_algorithm _**_attribute
    • Return 50 products per page as defined by the pagination strategy defined in the pagination_limit
  2. In Experience A, click to change the content from Default Content to the JSON by selecting Create JSON Offer as shown below (1).

    alt image

  3. Define the JSON with test_sorting, sorting_algorithm, and pagination_limit flags and attributes that will be used to initiate the recommended sorting algorithm with a pagination limit of 50 products.

    NOTE
    When Adobe Target buckets a user to see Experience A, the JSON with the defined attributes in the example will be returned. In your code, you will need to check the value of the feature flag test_sorting to see whether the sorting feature should be turned on. If so, you will use the recommended value of the sorting_algorithm attribute to show recommended products in the product list view. The limit of products to show for your application will be 50, since that is the value of the pagination_limit attribute.

    alt image

    Experience B will define the JSON that signals your business logic to do the following:

    • Initiate the sorting algorithm feature via the test_sorting feature flag
    • Execute the best_sellers sorting algorithm defined in the sorting_algorithm _**_attribute
    • Return 50 products per page as defined by the pagination strategy defined in the pagination_limit
    NOTE
    When Adobe Target buckets a user to see Experience B, the JSON with the defined attributes in the example will be returned. In your code, you will need to check the value of the feature flag test_sorting to see whether the sorting feature should be turned on. If so, you will use the best_sellers value of the sorting_algorithm attribute to show best selling products in the product list view. The limit of products to show for your application will be 50, since that is the value of the pagination_limit attribute.

    alt image