Smart visit client collector

About this task
BTT Smart visit client collector provides API to help collect the data when user logon and logout. To add smart visit collector to my project to collect the data when user logon and logout, 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 bttweb2.jar into the build path and Java EE Module Dependencies of the web project.
  3. Integrate the file clientCollector.jsp into the login destination web page to invoke the collector. Following is the sample code:
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    	pageEncoding="UTF-8"%>
    <%@ page import="com.ibm.btt.channel.smart.SmartDataCollectUtil" %>
    <%@ page import="com.ibm.btt.http.WebChannelContext" %>
    <jsp:useBean id="utb" scope="page"
    class="com.ibm.btt.cs.html.DSEJspContextServices">
    	<% 		utb.initialize(request);  	%>
    </jsp:useBean><%  String userId=(String)utb.getContext().getValueAt("userId"); %>
    <head>
    
    <jsp:include page="clientCollector.jsp" flush="true"/>
    <script type="text/javascript">
    saveVisitData("<%=userId%>");
    </script></head>