This blog promotes knowledge sharing through experience and collaboration. For more product information, visit our WebSphere Commerce CSE page. For easier navigation, utilize the Categories to find posts that match your interest.
Browsing History : Recently Viewed
By default browsing history is not enabled in Aurora store, therefore I wanted to provide steps on how to enable, configure it for the Aurora Store. I will also show how to add it any page via Commerce Composer.
I am using a Feature Pack 7 environment.
There are several prerequisites that need to be setup before the browsing history will work.
All the changes are made in the wc-server.xml or you can make in your instance.xml and then propagate to the wc-server.xml
1 - Look for Marketing element and ensure that it is set to "Dialog -> <Marketing version="Dialog"/>
2 - Look for PersistentSession element and change the cookieExpiry to 30 -> <PersistentSession cookieExpiry="30"...
3 - Look for PersonalizationId and set to true -> <PersonalizationId display="false" enable="true"/>
4 - Look for SensorEventListener and enable ->
5 - Look for ExperimentEvaluationECEventListenerImpl and enable ->
Enable Browsing for the Store:
1 - Access the Management Center and go to the Store Tool
2 - Select the store in which you want to enable Browsing History
3 - Navigate to the Catalog Tab and select Browsing History
Setting up the WebActivity and Espot:
We will use the existing ESpot, "RecViewed_CatEntries that is available.
While in CMC, open the Marketing tool.
1 - Create a new Web Activity using the Standard template - "Display Recently Viewed Products".
2 - Name it "Recently Displayed Products".
3 - Select the E-Marketing Spot and add the E-Marketing Spot RecViewed_CatEntries.
4 - Select Display Recently Viewed and set the Maximum number of entries to show. Example 10.
5 - Save and then you will need to activate.
Login to Aurora store with registered user. Navigate and view a couple of products. Then go to the Account Page and select Browsing History.
You should see the last several products that you viewed show up.
Adding to a different page with Composer:
Open CMC and choose Composer Tool.
Choose a Layout that you would want to add Browsing History to, for example static content page or Product Pages.
Choose the add button and select slot and choose the "IBM Product Recommendation Widget" and add the web activity that was created above "Recently Viewed Products"
Hopefully this help anyone that wants to add the Browsing History to the Aurora Store. There is also good information in the following post for browser behavior for custom commands.