Enable the Contact Behavior Profile with the most recent profile scores

Abstract

How to enable the previous obsoleted behavior where only the most recent interaction is kept.

From Sitecore 10.1, the Contact Behavior Profile (CBP) uses aggregated scores. The previous obsoleted behavior, however, is still available and requires configuration changes because it is disabled by default.

To enable the Contact Behavior Profile with the most recent profile scores:

  1. Disable the AggregatingContactBehaviorProfileHandler profile handler and enable the ContactBehaviorProfileHandler.

  2. Patch the configuration of App_data\Config\Sitecore\Collection\sc.XConnect.Collection.Model.Plugins.xml for all the Collection and Search instances.

    • Disable the service configuration for the ICalculatedFacetHandler.AggregatingContactBehaviorProfileHandler handler.

    • Disable the service configuration for the IContactMergeHandler.AggregatingContactBehaviorProfileHandler handler.

  3. Enable the service configuration for the ICalculatedFacetHandler.ContactBehaviorProfileHandler handler.

    <ICalculatedFacetHandler.ContactBehaviorProfileHandler>
        <Type>Sitecore.XConnect.Collection.Model.Plugins.ContactBehaviorProfileHandler, Sitecore.XConnect.Collection.Model.Plugins</Type>
        <As>Sitecore.XConnect.Service.ICalculatedFacetHandler, Sitecore.XConnect.Service</As>
        <LifeTime>Singleton</LifeTime>
    </ICalculatedFacetHandler.ContactBehaviorProfileHandler>
    
  4. Enable the service configuration for the IContactMergeHandler.ContactBehaviorProfileHandler handler.

      <IContactMergeHandler.ContactBehaviorProfileHandler>
         <Type>Sitecore.XConnect.Collection.Model.Plugins.ContactBehaviorProfileHandler, Sitecore.XConnect.Collection.Model.Plugins</Type>
        <As>Sitecore.XConnect.Service.IContactMergeHandler, Sitecore.XConnect.Service</As>
        <LifeTime>Singleton</LifeTime>
    </IContactMergeHandler.ContactBehaviorProfileHandler>