1. Interactions

Profile scores facet

Version:

Format in Sitecore 8.x

In Sitecore 8.x, information about the visitor’s profile scores at the end of the interaction is stored on the interaction in a property named Profiles.

The following is an example of an interaction with the Profiles property:

"Profiles" : {
    "Function" : {
        "Count" : 3,
        "Total" : 22.0,
        "ProfileName" : "Function",
        "Values" : {
            "Building Trust" : 0.0,
            "Call to Action" : 5.0,
            "Create Desire" : 15.0,
            "Define Concept" : 2.0
        },
        "PatternId" : NUUID("62496e17-ce38-416c-8535-6feef6be0476"),
        "PatternLabel" : "Ian"
    }
},

The Profiles property is a dictionary. Each member of the dictionary has a key and a value. The key describes a specific profile score. The value is an object that contains the details of the profile score.

Format in Sitecore 9

In Sitecore 9, visitor’s profile scores at the end of the interaction are associated with an interaction through an interaction facet:

Facet NameIpInfo
Facet TypeSitecore.XConnect.Collection.Model.ProfileScores

The profile scores are stored in a dictionary. The key to the dictionary is the id of the profile. The id itself is not stored in the data from Sitecore 8.x, so a lookup is performed using the profile name.

Facet PropertyDescription
ScoresDictionary that contains the profile scores associated with the interaction

Mapping profile score properties

Source objectMember of the dictionary located at Profiles on the interaction document
Target objectSitecore.XConnect.Collection.Model.ProfileScore
Mapping definitionMongoDB to xConnect Interaction Mappings > MongoDB Interaction to xConnect Interaction ProfileScores Facet
Value to write to target objectProperty on target object
PatternId from source objectMatchedPatternId
value resolved using ProfileName from source objectProfileDefinitionId
Total from source objectScore
Count from source objectScoreCount
Values from source objectValues

Mapping profile score values

The values for each profile score are stored in a dictionary. The key to the dictionary is the id of the profile score. The id itself is not stored in the data from Sitecore 8.x, so a lookup is performed using the profile score name.

If you have suggestions for improving this article, let us know!