Adobe Experience Platform · updated
Identity and the ECID in the Adobe Web SDK
The ECID is Adobe's device identifier. When a visitor first reaches your site, the Edge Network generates an ECID and keeps it in a first-party cookie. It identifies a device, not a person. To tie activity to a known person you send your own identifier, such as a CRM ID or a hashed email, alongside the ECID in the XDM identityMap.
In plain words
Adobe needs a way to know that today's visit and last week's visit came from the same browser. The ECID is that label. It knows nothing about who the person is. When someone signs in, your site can add its own customer number, and Adobe's platform can then connect the visits on a phone and a laptop to one person.
The identifiers
| Identifier | What Adobe says it is |
|---|---|
| ECID | The primary device identifier across Adobe applications, generated by the Edge Network and stored in a first-party cookie |
| Person-level identifiers | CRM IDs, hashed emails, loyalty IDs and similar, sent in identityMap. Adobe recommends setting a person-level namespace as the primary identity whenever one is available. |
| First-party device ID (FPID) | A device identifier you generate and manage on infrastructure you control. The Edge Network uses it to seed the ECID. |
| CORE ID | A separate identifier based on demdex, used in third-party identity workflows when third-party cookies are available |
Cookies and domains
- The Web SDK always sets identity cookies, with names that start kndctr_, as first-party cookies on your domain, whichever endpoint receives the data.
- First-party collection sends requests through a domain you control, for example data.example.com, with a CNAME that points to Adobe's Edge Network. Adobe says such requests are less likely to be blocked.
- Third-party collection sends requests to an Adobe-owned domain such as example.data.adobedc.net. The cookies are still first-party.
- First-party collection is a prerequisite for setting first-party device IDs from your own server.
identityMap
identityMap is a JSON object. Each top-level key is an identity namespace, and its value is an array of identities. Each identity has three fields: id, authenticatedState (ambiguous, authenticated or loggedOut) and primary. Adobe says exactly one identity across all namespaces must be marked primary, that namespaces must exist in Identity Service before you use them, and that you do not need to include the ECID yourself because the Edge Network adds it.
Formats matter. Adobe says to lowercase and trim an email before sending or hashing it, to hash with SHA-256 without a salt unless the namespace definition requires one, and to send phone numbers in E.164 form. A value in the wrong format becomes a separate identity that cannot be merged with the right one.
Coming from the Visitor ID Service
The older Visitor ID Service keeps the ECID in a cookie named AMCV_ followed by the organisation ID. With idMigrationEnabled, which is true by default, the Web SDK reads that cookie and reuses the same ECID, so returning visitors are not counted as new. Adobe requires the same orgId and the same domain, or a subdomain of the same parent domain. Adobe also warns not to load the Visitor ID Service and the Web SDK on the same page at the same time unless the AMCV cookie is already set.
Reading the ECID
sendEvent obtains the identity automatically. The getIdentity command returns the ECID without sending event data; its result has identity.ECID and edge.regionID. Adobe says to use it only when you need the identity on the client side.
identityMap for a signed-in visitor, in the shape on Adobe's identityMap page (CRMID is an example namespace)
alloy("sendEvent", {
xdm: {
identityMap: {
CRMID: [
{
id: "abc-123-xyz",
authenticatedState: "authenticated",
primary: true
}
]
}
}
});Read the ECID on the page
alloy("getIdentity").then(function (result) {
console.log(result.identity.ECID);
});How to set identity up well
- Leave idMigrationEnabled on if the site used the Visitor ID Service, and keep the same orgId.
- Set up first-party collection with a CNAME if you can; Adobe recommends its managed certificate programme.
- Create the identity namespaces you need in Identity Service before sending them.
- When a visitor signs in, send identityMap with your person-level ID marked primary.
- Normalise emails and phone numbers the way Adobe describes before sending or hashing them.
- Check that your consent manager does not clear kndctr_ cookies before the visitor has chosen.
Related tools and pages on this site
- Web SDK snippet builder (free, runs in your browser)
- Adobe tag, Web SDK and consent scan (reads a live site's page code)
Questions
Is the ECID a person?
No. Adobe says the ECID identifies a device, not a person.
Do I have to send the ECID in identityMap?
No. Adobe says the Edge Network adds the ECID automatically. If you include it, do not mark it primary when a person-level identity is also present.
Why did visitor numbers jump after moving to the Web SDK?
Two causes Adobe describes: a consent manager that clears the kndctr_ cookies, and identity migration that cannot reuse the old AMCV cookie, for example because the orgId or the domain differs. Its identity pages include a troubleshooting guide.
When can idMigrationEnabled be switched off?
Adobe's guideline is after the AMCV cookie's maximum lifetime has passed since the last page moved, though it notes most organisations do so after a few months.
Sources
- Adobe: Identity in Data Collection (ECID, first-party device IDs, first-party collection) (checked 13 Nov 2026)
- Adobe: identityMap in Data Collection (checked 13 Nov 2026)
- Adobe: idMigrationEnabled (Web SDK configure command) (checked 13 Nov 2026)
- Adobe: getIdentity (Web SDK command) (checked 13 Nov 2026)
- Adobe: ECID overview (Identity Service) (checked 13 Nov 2026)
- Adobe: Consent and identity in Data Collection (the defaultConsent and setConsent table) (checked 13 Nov 2026)
- Adobe: Basics of schema composition (XDM) (checked 13 Nov 2026)
Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.
Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.