If your ATG installation includes ATG Customer Intelligence (ACI), you can use it to generate Commerce Search reports. In particular, you can generate reports that associate search terms with items that are viewed or purchased.
To do this, your site must record “click-through” events. These occur when a customer clicks on a product or SKU returned by a search, to view it or purchase it. The recording of these events works like this:
For each search result, the
GetClickThroughId
servlet bean generates a click-through ID, which you append to the URL for that result using a query parameter. The servlet bean also adds the result document to a cache.When a customer clicks a link to view a search result, the
SearchClickThroughServlet
examines the request URL, finds the click-through ID, and uses it to look up the document in the cache. If it finds the document, the servlet fires a JMS event containing the search request and response objects and the selected document. This event is logged to be used for reporting.
This chapter describes how to code your pages and configure your site to log the events used for Commerce Search reporting. See the ATG Commerce Programming Guide for information about loading this data into ACI. For more information about reporting in general, see the ACI documentation.