Disabling marketing statistics

If you are not using the marketing statistics, you can disable the collecting of these statistics.

About this task

By disabling marketing statistics, you are stopping only the collecting and persisting of these statistics to your HCL Commerce database. Disabling any of these statistics does not affect the functionality of these marketing engine components. The evaluation of marketing triggers, actions, experiments, and branches are not affected. You can disable the following marketing statistics without affecting any marketing engine functionality:
  • Web activity statistics. These statistics are persisted in the DMEMSPOTSTATS and the DMELESTATS database tables.
  • Dialog activity statistics. These statistics are persisted in the DMELESTATS database table.
  • Search rule statistics. These statistics are persisted in the DMEMSPOTSTATS and the DMELESTATS database tables.
  • Experiment statistics. These statistics are persisted in the DMEXPSTATS database table.
Note: The SaveMarketingStatistics scheduled job, however, should not be disabled. If this job is disabled, then the following functions do not work:
  • Setting the maximum number of customers who can participate in an experiment.
  • Best Sellers web activity action
  • Top Browsed web activity action

Procedure

  1. Go to the workspace_dir/WC/xml/config/com.ibm.commerce.marketing-ext directory. If the com.ibm.commerce.marketing-ext directory does not exist, create the directory.
  2. In the com.ibm.commerce.marketing-ext directory, Open the wc-admin-component.xml marketing configuration file for editing. If this file does not exist, create the file and add the following code:
    <_config:DeploymentConfiguration
      xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config
      ../xsd/wc-admin-component.xsd">
      
      <_config:extendedconfiguration>
        <_config:configgrouping name="MarketingRuntime">
        </_config:configgrouping>
      </_config:extendedconfiguration>
      
    </_config:DeploymentConfiguration>
    
  3. Add the following to the wc-admin-component.xml, within the <_config:configgrouping name="MarketingRuntime"> section:
    <!--  Setting to stop collecting web activity statistics. Set to true if statistics should not be collected. -->
    <_config:property name="disableCollectingWebActivityStatistics" value="false"/>
    <!--  Setting to stop collecting dialog activity statistics. Set to true if statistics should not be collected. -->
    <_config:property name="disableCollectingDialogActivityStatistics" value="false"/>
    <!--  Setting to stop collecting search activity statistics. Set to true if statistics should not be collected. -->
    <_config:property name="disableCollectingSearchActivityStatistics" value="false"/>
    <!--  Setting to stop collecting experiment statistics. Set to true if statistics should not be collected. -->
    <_config:property name="disableCollectingExperimentStatistics" value="false"/>
    
  4. Change the corresponding value to be "true" for any activity types that you want to stop collecting statistics about.
  5. Restart the server.

Results

The disabled statistics are no longer collected.