Passing an ECID between App Measurement to the Web SDK pages and vice versa
Hello, We are working with one of our clients to implement analytics tracking on the site they own but they will use the same domain as us (lets take ".adobe.com" for example). Below are the examples of how our main site and the client site will technically look:
Basically, it will be a sub domain of our site. However, they can only implement tracking events using App Measurement Javascript implementation due to several reasons, while our main site runs on Adobe Web SDK.
Our goal is to maintain a single ECID across both our main site (runs on Web SDK) and the client site (App Measurement JS), so user journeys can be analyzed end-to-end in Analytics.
Note: Both will share same Org ID and TrackingServer (Edge Domain in this case).
What I’ve learned so far:
• Web SDK creates and stores its ECID on the Edge Network and saves it client-side in the kndctr__identity cookie.
• AppMeasurement / ECID Service stores its ECID client-side in the AMCV_@AdobeOrg cookie.
• These two cookies are not automatically synchronized, even if they share the same .airmiles.ca domain.
This means,
• A user starting on our main site (Web SDK) and then navigating to the client subdomain (AppMeasurement) receives a new ECID.
• A user starting on the client subdomain and later visiting the main site also gets a new ECID.
As a result, we will have same visitor > two ECIDs > fragmented journey data.
Questions:
- How do we make sure both of these implementations use same ECID when user navigates between these two sites ?
- I noticed that the App Measurement and Web SDK uses two different methods to append/pass ECID. Do we need a set up like below ?
- From www.airmiles.ca to www.test.airmiles.ca (Web SDK to App Measurement) - https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/appendidentitytourl
- Will this only work if both sub domains run on Web SDK ?
- From www.test.airmiles.ca to www.airmiles.ca ( App Measurement to Web SDK) - https://experienceleague.adobe.com/en/docs/id-service/using/id-service-api/methods/appendvisitorid
- From www.airmiles.ca to www.test.airmiles.ca (Web SDK to App Measurement) - https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/appendidentitytourl
Appreciate any leads on this!
Thanks!