Retail Inventory Targeted Activation retail-inventory-targeted-activation

The following use case demonstrates three different images based on the values in your Google Sheet.

Description description

This Use Case showcases the retail inventory stock for three different colored sweatshirts. Depending on the number of sweatshirts available in stock that is recorded in Google Sheets, the image (red, green, or blue sweatshirt) with highest number is displayed on the screen.

For this Use Case, the Red, Green, or Blue sweater will display on your screen based on the highest value of number of sweaters that is available.

Preconditions preconditions

Before you start implementing the retail inventory targeting activation, you must learn how to set up Data Store, Audience Segmentation and Enable Targeting for Channels in an AEM Screens Project.

Refer to Configuring ContextHub in AEM Screens for detailed information.

Basic Flow basic-flow

Follow the steps below to implement the Retail Inventory Activation use case:

  1. Populating the Google Sheets

    1. Navigate to the ContextHubDemo Google Sheet.
    2. Add three columns (Red, Green, and Blue) with corresponding values for three different sweatshirts.

    screen_shot_2019-05-06at101755am

  2. Configuring the Audiences as per the requirements

    1. Navigate to the segments in your audience (Refer to Step 2: Setting up Audience Segmentation in Configuring ContextHub in AEM Screens page for more details).

    2. Add three new segments For_Red, For_Green, and For_Blue.

    3. Select For_Red and click Edit from the action bar.

    4. Drag and drop the Comparison : Property - Property to the editor and click the configure icon to edit the properties.

    5. Select googlesheets/value/1/2 from the drop-down in First Property name

    6. Select the Operator as greater-than from the drop-down menu

    7. Seelect Data Type as number

    8. Select googlesheets/value/1/1 from the drop-down in Second Property name.

    9. Drag and drop another Comparison : Property - Property to the editor and click the configure icon to edit the properties.

    10. Select googlesheets/value/1/2 from the drop-down in First Property name.

    11. Select the Operator as greater-than from the drop-down menu

    12. Select Data Type as number

    13. Select googlesheets/value/1/0 from the drop-down in Second Property name

    screen_shot_2019-05-06at102600am

    Similarly, edit and add comparison property rules to For_Blue segment as shown in the figure below:

    screen_shot_2019-05-06at103728am

    Similarly, edit and add comparison property rules to** For_Green **segment as shown in the figure below:

    screen_shot_2019-05-06at103418am

    note note
    NOTE
    You will notice that for segments For_Green and For_Green, data cannot be resolved in the editor as only the first comparison is valid as of now as per the values in the Google Sheet.
  3. Navigate and select your DataDrivenRetail channel (a sequencel channel) and click Edit from the action bar.

    screen_shot_2019-05-06at104257am

    note caution
    CAUTION
    You should have set up your ContextHub Configurations using the channel Properties --> Personalization tab.

    screen_shot_2019-05-06at105214am

    note note
    NOTE
    You must select both the Brand and the Area for the activities to be properly listed when you start the Targeting process.
  4. Adding a default image

    1. Add a default image to your channel and click Targeting.

    2. Select Brand and the Activity from the drop-down menu and click Start Targeting.

    3. Click Start Targeting.

    screen_shot_2019-05-06at121253pm

    note note
    NOTE
    Before you start targeting, you must add the segments (For_Green, For_Red, and For_Blue) by clicking on + Add Experience Targeting from the side rail as shown in the figure below.

    screen_shot_2019-05-06at123554pm

  5. Add the images to all the three different screnarios as shown below.

    retail_targeting

  6. Checking the Preview

    1. Click Preview. Also, open your Google Sheet and update its value.
    2. Change the value for all three different columns and you will notice the display image updates as per the highest value in inventory.

    retail_result

recommendation-more-help
adce462a-f916-4dbe-9ab5-0b62cfb0f053