Operate > IBM Management Center for WebSphere Commerce > Marketing tool > Work with Web and Dialog activities > Activity building blocks: triggers, targets, and actions > Actions in marketing activities


Action: Display Recently Viewed

Use this action in a Web activity to display in an e-Marketing Spot a list of the catalog entries or categories that a customer has recently viewed. Customers can then use this list to track and revisit catalog pages of interest. If the recently viewed list is catalog entries, customers can add the catalog entry to their shopping cart directly from the list.

As each customer shops, the server records which catalog entries or categories the customer views. Then, each time the customer views the page containing the e-Marketing Spot for the recently viewed list, the server generates the list. The server adds the most recent item to the top of the list and removes the least recent item from the bottom.

Here is an example of a Web activity that uses the Display Recently Viewed action:

When a customer views the e-Marketing Spot on the product display page, display a list of the last 3 catalog entries that this customer viewed:

When this Web activity is activated, a customer's recently viewed list might look something like this example:

The JSP file for the e-Marketing Spot defines which pieces of information about the associated catalog entries to display. For example, the JSP file can display the thumbnail image for the catalog entry, its name, and its offer price, as defined in the Catalogs tool. Another option is to include an Add to Cart link or button.


Prerequisite for using this action

Make sure a site administrator has the site configured to support Management Center marketing features. See Configure marketing for Management Center.


Guidelines for using this action

When setting up this action, you can specify:

To determine the catalog entries or categories a customer has recently viewed, the server uses either the categoryId value on the CategoryDisplay URL or the productId value on the ProductDisplay URL. If the store uses page view names or URL parameter names that are different from the default, then the recently viewed list will not work unless a developer performs some customization steps. See Changing the name of commands used in behavior rule matching.


Retaining customers' recently viewed lists between store visits

By default, the server stores the list of recently viewed items for the current shopping session only. When the customer's session ends, that customer's recently viewed list is lost; when the customer returns to the store for another session, the server starts a new recently viewed list.

To retain customers' recently viewed lists from one session to the next, then a developer can customize the Marketing tool to store customers' recently viewed lists in the database.


Related concepts

Activity building blocks: triggers, targets, and actions

Actions in marketing activities


Related tasks

Create a Web activity

Create an e-Marketing Spot

Related reference

Sample e-Marketing Spot JSP snippets and the Web activities they support


+

Search Tips   |   Advanced Search