Web SDK (alloy.js) isn't populating identityMap with ECID | Community
Skip to main content
November 15, 2023
Solved

Web SDK (alloy.js) isn't populating identityMap with ECID

  • November 15, 2023
  • 2 replies
  • 4917 views

I have a simple page I built to do some testing with collecting data via the Edge network using Alloy.js. The ECID seems to be getting set on the page correctly but when I look into the datasets, the identityMap field doesn't seem to contain the ECID. I also don't see the ECID or the identityMap field anywhere in the HTTP request.

 

It's my understanding that the ECID should autopopulate into identityMap. Have I missed a configuration step or is there possibly some other common reason why ECID is not being passed in?

 

What am I missing?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dwright-adobe

@paul_murphy !

The ECID isn't in the network request. It gets added on the Edge and is forwarded from there. You can use Assurance to see it, if you want (open the Debugger, go to Logs->Edge and create a session).

It is part of the response, which is why you can see it in the Preview tab of dev console, as @abhinavbalooni mentioned.

Yeah, you won't see ECID in the dataset preview, either. If the dataset and schema are enabled for profile, you should be able to look up the ECID in the identity graph or profile viewer pretty quickly, though.

 

 

2 replies

_Manoj_Kumar_
Community Advisor
Community Advisor
November 15, 2023

Hello @paul_murphy 

 

Have you configured anything in the JS to tell the SDK where to push this data in CDP like dataset id?

     Manoj     Find me on LinkedIn
November 15, 2023

Yes. All the XDM fields I'm pushing to the DataStream are making their way into a dataset correctly. But in the DataSets UI, when I preview the data, the identityMap field just contains a dash "-". I should expect some key/value pairs with ECID there, no?

_Manoj_Kumar_
Community Advisor
Community Advisor
November 16, 2023

Hello @paul_murphy 

 

May be the ECID is mapped to a different attribute. Can you share the payload from HTTP request?

     Manoj     Find me on LinkedIn
dwright-adobeAdobe EmployeeAccepted solution
Adobe Employee
November 17, 2023

@paul_murphy !

The ECID isn't in the network request. It gets added on the Edge and is forwarded from there. You can use Assurance to see it, if you want (open the Debugger, go to Logs->Edge and create a session).

It is part of the response, which is why you can see it in the Preview tab of dev console, as @abhinavbalooni mentioned.

Yeah, you won't see ECID in the dataset preview, either. If the dataset and schema are enabled for profile, you should be able to look up the ECID in the identity graph or profile viewer pretty quickly, though.

 

 

November 17, 2023

This is the answer I was looking for.

 

I discovered that if I go ahead and make the Connection with identityMap as the primary identity field, then I can create the Data View in CJA, the identity map seems to work as expected.