Extending Data Warehouse Events
Microsoft Internet Information Services (IIS) log files track three types of commerce events by default when a Commerce Server 2009 Web application has been installed: campaign events, basket events, and order events. These three events are sufficient for tracking the site functionality included in the CSharp Site. However, if you extend your site functionality you might require additional events to track the new functionality. The sample described in this section extends the Data Warehouse to capture commerce events associated with a wish list, or registry, from which customers will add and remove items. The sample shows you how to create a new wish list class in the Data Warehouse, updating the CommerceEvent table to correctly recognize wish list events, and then marking them appropriately in the log file. The new events can then be tracked in a report that is created by using either an SQL query or a new cube and an OLAP report.
The code in this sample is specific to a wish list scenario, but the process for adding an event for any scenario is the same. The code samples have to be customized to match your particular situation.