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

IdentifierWhat Adobe says it is
ECIDThe primary device identifier across Adobe applications, generated by the Edge Network and stored in a first-party cookie
Person-level identifiersCRM 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 IDA 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

  1. Leave idMigrationEnabled on if the site used the Visitor ID Service, and keep the same orgId.
  2. Set up first-party collection with a CNAME if you can; Adobe recommends its managed certificate programme.
  3. Create the identity namespaces you need in Identity Service before sending them.
  4. When a visitor signs in, send identityMap with your person-level ID marked primary.
  5. Normalise emails and phone numbers the way Adobe describes before sending or hashing them.
  6. Check that your consent manager does not clear kndctr_ cookies before the visitor has chosen.

Related tools and pages on this site

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

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.

Surge Migrate

Moving the website itself

This page answers one Adobe Experience Platform question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →