Expand my Community achievements bar.

SOLVED

sending custom user id while logging-in using web sdk

Avatar

Level 8

I would like to send to Target crm-id while user is logging in. Something like this does not show up on a Target profile. Why is that?

alloy("sendEvent", {
"renderDecisions": true,
"data": {
"__adobe": {
"target": {
"user.crmId": 'crmId-12345'
}
}
}
})

 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

If you split the "user.crmId" to separate levels within your request, it should work as you intended. Based on this documentation: Send parameters | Migrate Target from at.js 2.x to Web SDK | Adobe Target


alloy("sendEvent", {
  "renderDecisions": true,
  "data": {
    "__adobe": {
      "target": {
        "user": {
          "crmId": "crmId-12345"
        }
      }
    }
  }
})

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

If you split the "user.crmId" to separate levels within your request, it should work as you intended. Based on this documentation: Send parameters | Migrate Target from at.js 2.x to Web SDK | Adobe Target


alloy("sendEvent", {
  "renderDecisions": true,
  "data": {
    "__adobe": {
      "target": {
        "user": {
          "crmId": "crmId-12345"
        }
      }
    }
  }
})