How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

Adobe Analytics BCS 2 years ago (2023-09-01) 5618 Views 2 Comments

Updated: December 19, 2025

The Experience Cloud ID (ECID) is the primary identifier for users in Adobe Analytics. When deploying Adobe Analytics, ECID is commonly assigned to an eVar to enable cross-session and cross-device analysis.

The method for setting ECID depends on whether you are using client-side or server-side tracking.

Client-Side Tracking(Dynamic Variable)

When deploying client-side tracking, the recommended approach is to use dynamic variables to map ECID to an eVar.

Common Mistake

Some implementations use the Experience Cloud ID Service built-in data element for ECID directly as an eVar.:

How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

While this approach does capture the ECID, it often results in “Unspecified” values in reports.

How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

 

Why this happens:

  • “Unspecified” indicates that the variable is undefined or unavailable at the time the hit is sent.
  • Using the built-in data element alone does not guarantee the ECID has been resolved before the eVar is set.

 

 

Correct Configuration

Instead, use dynamic variables. In client-side tracking, the ECID is available in the mid variable by default.

How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

mid is actually ECID, map mid to your desired eVar using dynamic variables:

How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

This ensures that the eVar consistently receives the ECID value, and “Unspecified” will no longer appear.

How to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

 

 

Server-Side Tracking (Processing Rules)

For server-side deployments, you might be tempted to use the official getIdentity method to retrieve ECID.

⚠️ A common issue arises when new users trigger hits before their ECID has been returned by the Identity Service. This can also result in “Unspecified” values.

Recommended Approach:Use Processing Rules to set ECID on the server side, the ECID is available at a.x.identityMap.ecid.0.id,map this value to your eVar within the processing rules configurationHow to Set ECID to an eVar in Adobe Analytics (Client-side & Server-side)

This method ensures that all server-side hits correctly capture ECID, eliminating “Unspecified” values in your reports.

Summary

Deployment Type Correct Method Common Issue Key Variable
Client-side Dynamic Variables (mid) Using built-in data element → Unspecified mid
Server-side Processing Rules (a.x.identityMap.ecid.0.id) ECID not yet returned for new users → Unspecified a.x.identityMap.ecid.0.id

If you don't understand, You can leave a comment below.
Like (5)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website
(2) friends in the comments
  1. How to see the ECID values in Web SDK implementation
    Padmaja2025-07-23 19:35 Reply Windows 10 | Chrome 138.0.0.0
    • BCS
      Server-side Tracking is the Web SDK, which is set using processing rules.
      BCS2025-07-24 08:41 Reply Mac OS X | Chrome 138.0.0.0