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:
-
Populating the Google Sheets
- Navigate to the ContextHubDemo Google Sheet.
- Add three columns (Red, Green, and Blue) with corresponding values for three different sweatshirts.
-
Configuring the Audiences as per the requirements
-
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).
-
Add three new segments For_Red, For_Green, and For_Blue.
-
Select For_Red and click Edit from the action bar.
-
Drag and drop the Comparison : Property - Property to the editor and click the configure icon to edit the properties.
-
Select googlesheets/value/1/2 from the drop-down in First Property name
-
Select the Operator as greater-than from the drop-down menu
-
Seelect Data Type as number
-
Select googlesheets/value/1/1 from the drop-down in Second Property name.
-
Drag and drop another Comparison : Property - Property to the editor and click the configure icon to edit the properties.
-
Select googlesheets/value/1/2 from the drop-down in First Property name.
-
Select the Operator as greater-than from the drop-down menu
-
Select Data Type as number
-
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:
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. -
-
Navigate and select your DataDrivenRetail channel (a sequencel channel) and click Edit from the action bar.
note caution CAUTION You should have set up your ContextHub Configurations using the channel Properties --> Personalization tab. 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. -
Adding a default image
-
Add a default image to your channel and click Targeting.
-
Select Brand and the Activity from the drop-down menu and click Start Targeting.
-
Click Start Targeting.
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. -
-
Add the images to all the three different screnarios as shown below.
-
Checking the Preview
- Click Preview. Also, open your Google Sheet and update its value.
- Change the value for all three different columns and you will notice the display image updates as per the highest value in inventory.