Reference > Analytics for IBM WebSphere Commerce > Integrate a store with an external analytics system (other than Coremetrics)
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 your 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.
Procedure
- Navigate to the directory containing the site JSP files. Typically, the JSP files are stored in the WC_EAR/Stores.war/storedir directory. For example, the JSP files for the Madisons starter store, are located in the WC_EAR/Stores.war/Madisons/ folder.
- For the page view tag: if the name that you have used for the page view tag is pageview, you can use the auto tagging utility to tag the JSPs with this tag. See Run the auto tagging utility.
- Add the appropriate vendor-specific tags to the bottom of each relevant store JSP file. The store JSP files must also refer to the tag library definition file you created. Place the tags immediately above the </body> tag in the JSP file, as shown in the following example for a product display page:
... ... <%@ taglib uri="http://commerce.your_company_name.com/mytld" prefix="mytld" %> ... ... ... <!-- Vendor-specific analytics tags --> <mytld:product databean="${product}" /> <mytld:pageview /> </body> ... ...
The previous code snippet assumes that you have created two tags named pageview and product.
Previous topic: Update the biConfig.xml file