Expand my Community achievements bar.

Profile attributes not updated

Avatar

Level 3

Hi,

 

The profile attributes are not updated when user is created with websdk integration tags extension.

when user registers or logins, profile is created with events, but profile attributes are not updated

 

ArunLa_0-1732796967748.png

 

I need guidance on how to update profile attributes with event schema (as we can only use event schema in websdk integration tags extension)

 

Is it an expected behavior as we are using event schema ? 

 

Profile events are updated as expected.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 9

@ArunLa you can use both [Event and Profile ] with WebSDK, if still an issue update your Event schema for given profile attribute you are planning to capture 

Avatar

Level 3

Hi @ArunLa ,

To update the profile attributes you need to send data to a profile dataset and not and event dataset. WebSDK sendEvent method send data to an even dataset and cannot update the profile attributes except for identity attributes. Only WebSDK method that can update profile attributes is setConsent but that is also limited to standard fields available in Consents and Preferences field group.

To updates all other standard or custom profile attributes you should use other ingestion methods like HTTP API connector and send data directly to a profile dataset.

Just for validation I uploaded two dummy profiles to AEP with same schema fields as below,

//payload for event dataset

[
  {
    "_id": "",
    "timestamp": "2024-11-12T20:20:39+00:00",
    "eventType": "web.webInteractions.linkClick",
    "homeAddress": {
      "street1": "#1, San Jose"
    },
    "identityMap": {
      "---Person": [
        {
          "authenticatedState": "authenticated",
          "id": "----PersonID_1.0.0",
          "primary": true
        }
      ]
    },
    "mobilePhone": {
      "number": "9999999999"
    },
    "person": {
      "birthDayAndMonth": "01-23",
      "gender": "male",
      "name": {
        "firstName": "John",
        "lastName": "Doe"
      }
    },
    "personalEmail": {
      "address": "john.doe@abc.com"
    }
  }
]

//payload for profile dataset

[
  {
    "_id": "",
    "personID": "----PersonID_1.0.1",
    "homeAddress": {
      "street1": "#1, San Jose"
    },
    "mobilePhone": {
      "number": "9999999998"
    },
    "person": {
      "birthDayAndMonth": "02-23",
      "gender": "male",
      "name": {
        "firstName": "John",
        "lastName": "Smith"
      }
    },
    "personalEmail": {
      "address": "john.smith@abc.com"
    }
  }
]

And in AEP the result were seen as below,

First through event dataset,

Harveer_SinghGi1_0-1735564485414.png

Second through profile dataset,

Harveer_SinghGi1_1-1735564553695.png

And as you can see the attributes sent directly to profile dataset are updated correctly but the attributes sent to events dataset are not. Although the same attribute fields are available in the events send to first profile they won't land as profile attributes.

Avatar

Level 9

@Harveer_SinghGi1  did you use different data stream for profile and event ?

profile value are not dependent of schema they are mapped to schema . just a value captured in data element can be mapped to any schema