Reference > Analytics for IBM WebSphere Commerce
Integrate a store with an external analytics system (other than Coremetrics)
To meet the analytics requirements, you can integrate a WebSphere Commerce store with any Web-based analytics system that uses a JavaScript-based tagging mechanism. For this purpose, WebSphere Commerce provides an extensible JSP-based tag library framework for analytics.
Integration architecture
The following illustration provides a high-level view of the integration of a WebSphere Commerce store with a Web-based external analytics system:
WebSphere Commerce provides a JSP-based tag library framework for analytics. The tag library framework consists of a set of generic tags, one for each event. You can extend this tag library to send analytics data from the site to the external analytics system. As shown in the previous illustration, the analytics tags must be placed in each store page that requires tracking. Each tag generates the vendor-specific JavaScript with data in the format the external analytics system requires. The Java classes that support each generic tag gather data required for analysis from a data bean or a service data object (SDO), and then place the data in a java.util.Vector or java.util.HashMap object based on the event type.
- Create vendor-specific tag classes by extending the base tag classes
For each event that capture analytics data for, create a vendor-specific tag class that extends the base tag class. For example, to capture data about product view events, extend the ProductBaseTag class. Each base tag class generates standard data for its associated event; however, the base tag classes support optional parameters you can use to send additional information to the external analytics system, if necessary.
- Create a tag library definition file
A tag library definition file is used to deploy custom JSP tag libraries. The WebSphere Commerce analytics tags are implemented as custom JSP tags, so create a taglib definition file (TLD) for the analytics system. All the tags that you create for the analytics system need to be defined in the TLD file.
- Update the biConfig.xml file
All the configuration information used by the analytics tags must be defined in the biConfig.xml file. You must update this file to include vendor-specific information.
- Tag the store pages for the external analytics system
Tag each store JSP file using the vendor-specific tag library you have created. When customers browse these tagged pages in the WebSphere Commerce site, data is collected and sent to the external analytics system based on the programming logic in the vendor-specific tag classes. The external analytics system can then use this data to perform its analytics work.