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 the highest number is displayed.

The Red, Green, or Blue sweater is displayed based on the highest value of the number of sweaters available.

Preconditions preconditions

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

See 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 (See 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. Click For_Red and click Edit from the action bar.

    4. Drag-and-drop the Comparison : Property - Property to the editor.

    5. Click the Configuration icon.

    6. Click googlesheets/value/1/2 from the drop-down in First Property name.

    7. Click the Operator, and as greater-than from the drop-down menu.

    8. Click Data Type, and as number.

    9. Click googlesheets/value/1/1 from the drop-down in Second Property name.

    10. Drag-and-drop another Comparison : Property - Property to the editor and click the Configuration icon.

    11. Click googlesheets/value/1/2 from the drop-down in First Property name.

    12. Click the Operator, and as greater-than from the drop-down menu.

    13. Click Data Type, and as number.

    14. Click 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 the For_Blue segment as shown in the figure below:

    screen_shot_2019-05-06at103728am

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

    screen_shot_2019-05-06at103418am

    note note
    NOTE
    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 click your DataDrivenRetail channel (a sequence channel).

  4. Click Edit from the action bar.

    screen_shot_2019-05-06at104257am

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

    screen_shot_2019-05-06at105214am

    note note
    NOTE
    Click both the Brand and the Area for the activities to be properly listed when you start the Targeting process.
  5. Adding a default image

    1. Add a default image to your channel and click Targeting.
    2. Click 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, add the segments (For_Green, For_Red, and For_Blue) by selecting + Add Experience Targeting from the side rail as shown in the figure below.

    screen_shot_2019-05-06at123554pm

  6. Add the images to all the three different scenarios as shown below.

    retail_targeting

  7. Checking the Preview

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

    retail_result

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