ECID value to be sent to Adobe Analytics | Community
Skip to main content
Level 2
July 12, 2024
Solved

ECID value to be sent to Adobe Analytics

  • July 12, 2024
  • 2 replies
  • 3301 views

Hello team,

 

Earlier with appmeasurement, we used to send Adobe analytics the ECID with "D=mid" to one of our eVars.

Now with WebSDK, Adobe recommends we use alloy send if we have to use it on client side:

return alloy("getIdentity")
.then(function(result) {
console.log (result.identity.ECID);
_satellite.setVar("mcid", result.identity.ECID);
});

So i use aboe code, but this code always runs at the last even if the rule has priority 1.

Do you have any other recommendations on how can i send ECID to Adobe Analytics?

 

Thanks,

Nitin

Best answer by bjoern__koth

Hi @nitinct 

this is indeed a super unreliable way to use. Please refer to this documentation

https://experienceleague.adobe.com/en/docs/experience-platform/tags/extensions/client/web-sdk/accessing-the-ecid

 

and rather do the mapping on your datastream in the Experience Platform.

Don't ask me why Adobe has made this so complicated, but this way I am reliably getting the values in. No need for any client-side requests anymore.

 

 

 

2 replies

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 12, 2024

Hi @nitinct 

this is indeed a super unreliable way to use. Please refer to this documentation

https://experienceleague.adobe.com/en/docs/experience-platform/tags/extensions/client/web-sdk/accessing-the-ecid

 

and rather do the mapping on your datastream in the Experience Platform.

Don't ask me why Adobe has made this so complicated, but this way I am reliably getting the values in. No need for any client-side requests anymore.

 

 

 

Cheers from Switzerland!
NitinCTAuthor
Level 2
July 12, 2024

hi Bjoern_koth,

 

Thank you so much for reply. And you are right on why Adobe might have made this so much complicated. Typical Adobe.

 

Now when i use Data Prep, i dont see this mapping available for me:

xdm.identitymap.ECID[0].id.

 

I am guessing this would only when i feed this to my Data object on my site. Question is how do i have this available in my data object.

 

If you can share some steps that would be great.

Once all this is done, how do i debug if this value is getting into my XDM object? 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 12, 2024

Hi @nitinct 

that's the thing, you won't see it. I also did not see it. I just added the JSON from one of my /ee requests and mapped the value to an eVar.

 

Cheers from Switzerland!
May 9, 2025

Hi Nitin,

Per your description as below

"Earlier with appmeasurement, we used to send Adobe analytics the ECID with "D=mid" to one of our eVars."

In fact, I am using Tags, the approach you mentioned, to extract ECID through AA Extension\Configuration.

But when I use Report Suite to see the data, I find the values are still "unspecified". Could you help & give me advice, thanks a lot

 

Steven