TrafficTable.LogTraffic Method

Note

The TrafficTable object is included in Commerce Server 3.0 only for backward compatibility with sites created in Commerce Server 2.0. New sites should measure traffic with Site Server Analysis.

The LogTraffic method logs event information to a database table.

Syntax

Traffic.LogTraffic(ShopperID, Event, ItemRequested, Context)

Parameters

ShopperID
The shopper ID to log in the record, usually the ID of the customer who loaded the page that triggered the event.
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 one of the columns in the destination table is named event.
ItemRequested
An arbitrary string usually used to identify the URL of the page being requested. This string will be logged only if one of the columns in the destination table is named item_requested.
Context
The Page object’s Context property.

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.