Show Menu
主题×

Retail Inventory Targeted Activation

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

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

Before you start implementing the retail inventory targeting activation, you must learn how to set up Data Store , Audience Segmentation and in an AEM Screens Project.
Refer to Configuring ContextHub in AEM Screens for detailed information.

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.
  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
    Similarly, edit and add comparison property rules to For_Blue segment as shown in the figure below:
    Similarly, edit and add comparison property rules to** For_Green **segment as shown in the figure below:
    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.
    You should have set up your ContextHub Configurations --> Properties tab. Personalization
  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 .
  5. Add the images to all the three different screnarios as shown below.
  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.