---
title: "Enable the Contact Behavior Profile with the most recent profile scores"
slug: "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."
---
# Enable the Contact Behavior Profile with the most recent profile scores

From Sitecore 10.1, the [Contact Behavior Profile (CBP)](https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-platform/contact-behavior-profile.html "Contact Behavior Profile") 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.

    ```xml
    <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.

    ```xml
    <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>
    ```