How does Marketing Cloud ID Service maintain consistent MCIDs across domains?
The article details how the Marketing Cloud ID Service maintains consistent MCIDs across domains.
Description description
Environment
Adobe Experience Cloud
Issue/Symptoms
How does the Marketing Cloud ID Service maintain a consistent Marketing Cloud ID across domains in a browser that accepts third-party cookies?
Resolution resolution
Steps to follow:
- The user visits a website owned by My Company Inc. for the first time.
- The
VisitorAPI.jsfile loads and checks to see if an AMCV cookie exists on the current domain (SiteA.com). No AMCV cookie exists on the current domain, soVisitorAPI.jschecks to see if ademdex.netcookie exists. It does not. - Since neither cookie exists, a network request is made to
dpm.demdex.netwith your Marketing Cloud Organization ID (also known as an IMS org ID). In this case, 1234@AdobeOrg is sent with the request. - The
demdex.netserver receives the request and generates a UUID. Next, it uses the UUID and IMS org ID (1234) to generate the MID value. - The server responds to the request from the page with the MID and UUID.
- The
VisitorAPI.jslibrary writes the MID to an AMCV cookie in the browser. As part of the response, the demdex server also writes the UUID to a cookie. The AMCV cookie is written on the current domain (SiteA.com) and the demdex cookie is written on thedemdex.netdomain. - Page code executes and Adobe solution beacons are fired.
- The user browses to SiteB.com.
VisitorAPI.jschecks to see if an AMCV cookie exists on the current domain (SiteB.com). No AMCV cookie exists on this domain, soVisitorAPI.jschecks to see if ademdex.netcookie exists. It does exist, so the value is retrieved.- A network request is made to
dpm.demdex.netwith the IMS org ID (1234) and the UUID value (ABCDE). - The demdex server generates a MID value using the UUID (ABCDE) and IMS org ID (1234), which were passed in the request.
- The demdex server responds to the request with the MID value (ABC1234).
- The
VisitorAPI.jslibrary writes the MID (ABC1234) to an AMCV cookie in the browser. The AMCV cookie is written on the current domain (SiteB.com). - Page code executes and Adobe solution beacons are fired.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f