TrafficLogFile.LogTraffic Method
Note The TrafficLogFile object is included in Commerce Server 3.0 only for backward compatibility with sites created in Commerce Server 2.0. New sites should log and measure traffic with Site Server Analysis.
The LogTraffic method logs event or customer information to the log file for this TrafficLogfile object. You can call this method at any time to log events as they occur, and optionally, distinguish between different types of events by using the Event argument.
Syntax
TrafficLogfile.LogTraffic(ShopperID, Event, ItemRequested, Context)
Parameters
- ShopperID
- The shopper ID of the customer who loaded the page that triggered the event. This value will be logged only if the shopper_id keyword was included in the Arguments list when the InitTraffic method was called.
- Event
- This arbitrary integer is usually used to identify the event being logged. For example, the number '107' might be assigned to indicate that a customer has placed an item in the basket, '108' might indicate that a customer has responded to a particular cross-promotion, and so on. This number will be logged only if the event keyword was included in the Arguments list when the InitTraffic method was called.
- ItemRequested
- An arbitrary string usually used to identify the URL of the page being requested. This string will be logged only if the item_requested keyword was included in the Arguments list when the InitTraffic method was called.
- Context
- The Page object's Context property. This read-only property is initialized when the Page object is created, and references the Active Server Pages (ASP) scripting context.
© 1997-2000 Microsoft Corporation. All rights reserved.