Skip to main content
Michael_Soprano
Level 10
August 7, 2024
Solved

sending custom user id while logging-in using web sdk

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'
}
}
}
})

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SSampsa
SSampsaAccepted solution
Level 4
October 3, 2024

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" } } } } })

1 reply

SSampsa
SSampsaAccepted solution
Level 4
October 3, 2024

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" } } } } })
Translate