Runtime tools : Service components : Smart channel services : Smart data collector : Client collector : Smart behavior client collector
  
Smart behavior client collector
The UDTT Smart behavior client collector provides API to help collect the data when users view the transaction information. To add smart behavior client collector to project to collect the data when users view the transaction information, you can:
1 Refer to general steps in Client collector.
2 Copy the file clientCollector.jsp from the bttweb2collector/client/collector directory into the web directory of the web project. Add file bttweb2.jar into the build path and Java EE Module Dependencies of the web project.
3 Create a .js script to define following code for preference collector.
saveBehaviorData(0,servId);
4 Invoke the method to save behavior. Following is the sample code:
addServiceListeners : function() {
BTTUtil.Servicelist.addListener( 'onclick', function(servId){
if(!BTTUtil.Servicelist.isCategoryNode(servId)) {
if(-1 != BTTUtil.Workarea.getIndex(BTTUtil.Workarea.getActiveTab())) {
BTTUtil.Workarea.addService(servId);
saveBehaviorData (0,servId); } else {
alert(BTTLocale.getText('can_not_add_service'));
}
}
});

}