Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!

overwriteCrossDomainMCIDAndAID in Web SDK

Avatar

Level 6

Hi,

 

In the past with AppMeasuremnt and ID Service, we can config this overwriteCrossDomainMCIDAndAID option to support app-to-web visitor persistence. But it seems this option is no linger in Web SDK?

 

Or in Web SDK, the adobe_mc value from the app always overwrite the cookie in the web?

 

Thanks, John

7 Replies

Avatar

Employee Advisor

In WebSDK, it is done using appendIdentityToUrl. Here's the reference for the same - https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/appendidentitytourl

 

Avatar

Level 6

Hi @FarazHusain ,

 

Thanks for your reply. We have no issue to create the adobe_mc and the URL. My question is on the "overwriteCrossDomainMCIDAndAID" config, when using AppMeasurement, this is a configurable parameter to control whether the adobe_mc ECID value will overwrite the web site's existing ECID. And it's default value is "false".

 

Now we are using WebSDK, would like to know if this config parameter is still valid and where to set it?

 

Thanks,

John

 

Avatar

Employee Advisor

Hey @Hey_John, I doubt this parameter is still valid in the case of WebSDK, but I'll see what I can find.

Avatar

Employee Advisor

@Hey_John It seems WebSDK doesn't support this function.

One way to do this: If you want to use the identity from the URL, you have to delete the identity cookie manually before the send event call.

 

The AEP Web SDK extracts the ECID and puts it in the identitymap. It can also be used to overwrite existing ECID or konductor cookies - but if there is already an identity cookie, it takes precedence. So you might need to manually remove the existing cookie before overwriting it. The solution will be a custom one in the case of WebSDK for this functionality.

Avatar

Level 6

Hi @FarazHusain 

 

Thanks again for your prompt reply.

 

Manually deleting as existing cookie as it takes precedence seems a bit complex, as it's just a config in the past with AppMeasurement.

 

Anyway, I just tested it in a simple web page with Web SDK, and manually put the adobe_mc parameter in the address bar, I found that the ECID in the existing cookie actually can be over written. Looks like the behavior is to over write existing cookie in Web SDK.

 

Thanks,

John

 

Avatar

Level 1

Hey @Hey_John

Do you still find this to be the case? My team is struggling with adobe_mc and have been advised that the cookie does not overwrite. 

Thanks! 

Avatar

Level 6

Hi @Joseph_Making 

 

It does overwrite. 

 

Checked with Adobe support, at first they also said it won't overwrite and need customization to do so (which doesn't make sense), after we shared our result and follow up, end up they confirm it does overwrite.

 

Thanks,

John