Feature Pack 2WebSphere Commerce Version 7.0.0.0Feature Pack 1

Sample biConfig.xml file for IBM Digital Analytics

The following biConfig.xml sample file represents the default analytics configuration file that is included with IBM Digital Analytics, formerly known as Coremetrics Analytics. This sample applies to WebSphere Commerce Version 7 IBM Digital Analytics implementations before Feature Pack 3.

The biConfig.xml file contains the following information:
  • The name of the analytics provider is being used, for example, IBM Digital Analytics.
  • Whether tracking is enabled. Tracking refers to whether the data is sent to IBM Digital Analytics.
  • Whether debug mode is enabled. The debug messages display on the Web page where the tag is located, generally at the bottom of the page.
  • The location of any vendor-specific code that is required for tracking.
Important: The main method, cmSetProduction(), is commented out because the data goes to the IBM Digital Analytics test server, by default. However, you need to uncomment the line when you completed testing and are ready to send the data to the IBM Digital Analytics production server.

The biConfig.xml file is in the following directory:

  • For IBM i OS operating systemSolarisLinuxAIXWindowsWC_eardirxml/config/bi
  • WebSphere Commerce DeveloperWCDE_installdir\workspace\WC\xml\config\bi
The bolded segments are the places in which you need to insert your site-specific information.

<?xml version="1.0" encoding="UTF-8"?>
  <BIConfiguration>
    <biproviders>
      <biprovider name="coremetrics">
        <header>
          <![CDATA[<script language="JavaScript1.1"
type="text/JavaScript">
<!--
]]>
        </header>
        <footer>
          <![CDATA[
//-->
</script>]]>
        </footer>
      </biprovider>
    </biproviders>
    <stores>
      
<store storeId="10001" biprovider="coremetrics"
enabled="false" debug="false">
      
<clientid>
clientID
</clientid>
        <instrumentation>
          <![CDATA[
<script language="JavaScript1.1" type="text/JavaScript" src="/wcsstore/coremetrics/v40/eluminate.js"></script> 
<script language="JavaScript1.1" type="text/JavaScript" src="/wcsstore/coremetrics/cmdatatagutils.js"></script>
<script language="JavaScript1.1" type="text/JavaScript">
<!--
//cmSetProduction();
//-->
</script>]]>
        </instrumentation>
      </store>
    </stores>
  </BIConfiguration>
Note: In IBM Digital Analytics implementations before September 2007 (using eluminate.js 4.1.1 or earlier), the end of this code block should look like the following sample:

<script language="JavaScript1.1" type="text/JavaScript" src="/wcsstore/coremetrics/v40/eluminate.js"></script>
<script language="JavaScript1.1" type="text/JavaScript" src="/wcsstore/coremetrics/v40/techprops.js"></script>
<script language="JavaScript1.1" type="text/JavaScript" src="/wcsstore/coremetrics/cmdatatagutils.js"></script>
<script language="JavaScript1.1" type="text/JavaScript">
<script language="JavaScript1.1" type="text/JavaScript">
<!--
	//cmSetClientId();