[Adobe Analytics](/about/adobe-analytics) November 24, 2026

# Adobe Analytics data layer: ACDL setup and examples

Set up the Adobe Client Data Layer for Adobe Analytics: code examples, the Tags extension, mapping to eVars, props and s.products, and how to validate it.

![](/images/65d75b0ae8d69ef95785a5d6_david-pombar.webp)

**[David Pombar](/authors-guides/david-pombar)** Swiss army knife at Trackingplan

10 min read · 2199 words

The Adobe Analytics data layer is a JavaScript object that holds what your reports need: the page, the visitor, the products, and an event for every interaction that matters. Adobe Tags reads it and turns it into eVars, props, success events and the products string. For a new implementation, Adobe recommends one format: the Adobe Client Data Layer.

This guide covers that format end to end: what goes in it, code you can copy, how Adobe Tags loads and reads it, how each value lands in an Adobe variable, and how to check that it still works after the next release. Where the data layer sits among the rest of the setup is in the [Adobe Analytics guide for digital analysts](/guides/master-adobe-analytics-digital-analysts-guide).

![Diagram in three boxes: an addToCart push to adobeDataLayer, an Adobe Tags rule on the Data layer push event reading a Data layer computed state data element, and the Adobe Analytics hit with s.events scAdd and s.products ;SKU12345;1;99.99](/images/adobe-analytics-data-layer-flow.png)

The path of one value: from the push on the page, through Adobe Tags, to the beacon Adobe Analytics receives.

## Adobe Client Data Layer or digitalData

Two formats show up in Adobe implementations, and the choice decides how the rest is built.

**`digitalData`** is the W3C Customer Experience Digital Data Layer (CEDDL). It is one global object, usually written once when the page loads. Many older Adobe sites, and most DTM-era examples, use it.

**`adobeDataLayer`** is the Adobe Client Data Layer (ACDL). It is an array: the site pushes objects to it, and the library merges every push into a computed state. Adobe's [Experience League documentation](https://experienceleague.adobe.com/en/docs/analytics/implementation/prepare/data-layer) is direct about it: "Adobe recommends the Adobe Client Data Layer (ACDL) for new or restructured implementations." CEDDL is still allowed; it is just not what Adobe builds its extension around.

What the array buys you:

-   Each push is an entry in a sequence, so a view, a click and an add to cart arrive in the order they happened.
-   A push with an `event` key triggers listeners, and Adobe Tags rules fire on those.
-   A listener added after a push is still called for it, so the race between your page code and the tag library stops mattering.
-   Nothing depends on a page load, so in a single page application a route change is one more push.

If your site runs on `digitalData` today and works, there is no prize for migrating it on its own. If you are restructuring the implementation, or moving to a single page application, start with ACDL.

## What goes in the data layer

The data layer describes the page and the visitor in your own words, not in Adobe's. `eVar12` belongs in the Tags mapping, never in the data layer. That keeps the same object usable by GA4, your ad pixels and whatever tool comes next.

Most implementations need four groups:

-   **`page`**: name, section, type, language. Everything that describes the current view.
-   **`user`**: login status, a hashed or internal customer ID, customer type. Never an email or a name in clear text.
-   **`product`** or ** `ecommerce`**: SKU, name, category, price and quantity on product pages, the cart and checkout.
-   **`event`**: the name of the interaction, pushed when it happens.

Write down the names before anyone codes them. Pick one case style (camelCase is the common one), avoid abbreviations that only the author understands, and list every key with its type and allowed values in the Solution Design Reference (SDR), the document that maps each data layer key to the Adobe variable it feeds. A data layer without an SDR works until the person who built it leaves.

## Adobe Analytics data layer example

Three pushes cover the pattern most sites need. First, the page context, as early as possible in the `<head>`, before the Tags embed code:

```js
window.adobeDataLayer = window.adobeDataLayer || [];
window.adobeDataLayer.push({
  "event": "pageView",
  "page": {
    "pageName": "product:running-shoes",
    "siteSection": "footwear",
    "pageType": "product"
  },
  "user": {
    "loginStatus": "logged-in",
    "customerType": "returning"
  }
});
```

The first line matters: it creates the array if the library has not loaded yet, so the push never throws. When the library arrives, it processes everything already in the array.

Then an interaction. The visitor adds the shoes to the cart:

```js
window.adobeDataLayer.push({
  "event": "addToCart",
  "product": [{
    "sku": "SKU12345",
    "name": "Running Shoes",
    "category": "footwear",
    "quantity": 1,
    "price": 99.99
  }]
});
```

And the purchase, on the confirmation page:

```js
window.adobeDataLayer.push({
  "event": "purchase",
  "transaction": {
    "orderId": "A100245",
    "revenue": 99.99,
    "currency": "EUR"
  },
  "product": [{
    "sku": "SKU12345",
    "quantity": 1,
    "price": 99.99
  }]
});
```

Prices are numbers, not strings. The order ID is the one your backend uses, not a random value, because Adobe uses it to drop duplicate purchases (more on that below).

To read the merged result in the browser console, use the function-push pattern from [Adobe's wiki on GitHub](https://github.com/adobe/adobe-client-data-layer/wiki), which works even before the library has loaded:

```js
window.adobeDataLayer.push(function (dl) {
  console.log(dl.getState());          // the whole computed state
  console.log(dl.getState("page"));    // one branch
});
```

![Chrome DevTools Console after running adobeDataLayer.getState(), returning an object with page and component, with the page branch expanded to a page entry of type wknd/components/page](/images/adobe-client-data-layer-getstate-console.webp)

Screenshot: adobeDataLayer.getState() in the Chrome console, on Adobe's WKND demo site. Image: Adobe, Experience League.

## Loading the Adobe Client Data Layer in Adobe Tags

Adobe Tags (Adobe Experience Platform Tags, formerly Launch, and DTM before that) reads the data layer through the **Adobe Client Data Layer extension**. Install it in your Tags property and it gives you:

-   **Configuration**: the name of the data layer object (`adobeDataLayer` by default) and the option "Load the Adobe Client Data Layer library if absent", which lets the extension load the library for you instead of adding its script to the page yourself.
-   **An event type**, "Data layer push", to fire a rule when a push arrives. You can limit it to one event name, such as `addToCart`.
-   **A data element type**, "Data layer computed state", to read any path of the merged state, such as `page.pageName` or `transaction.orderId`.
-   **Actions**, "Push to data layer" and "Clear data layer history", for the cases where Tags itself needs to write to it.

The usual build is one data element per key you map, named after the key (`DL - page.pageName`), and one rule per event: "Data layer push" filtered to `pageView` sends the page view beacon, the same event filtered to `addToCart` sends a link beacon with `scAdd`, and so on. The extension names here are the ones in [Adobe's extension documentation](https://experienceleague.adobe.com/en/docs/experience-platform/tags/extensions/client/client-data-layer/overview); older properties may still show "Data Pushed" and "Reset Data Layer", the names from before version 2.1.

If the site uses `digitalData` instead, the data elements are of the JavaScript variable type, pointing at paths such as `digitalData.page.pageInfo.pageName`, and rules fire on page load or on custom events your developers dispatch. It works; it just leaves the ordering problem to you.

## Mapping the data layer to eVars, props and events

This is where the vendor-neutral names become Adobe variables. Each type has its own job:

-   **Props** (`s.prop`) are traffic variables. They describe the hit they are sent on and do not persist.
-   **eVars** (`s.eVar`) are conversion variables. They persist for as long as their expiration says, so a purchase can be credited to the campaign or the internal search that came before it.
-   **Events** (`s.events`) count success: `scAdd`, `purchase`, or custom ones like `event5` for a newsletter signup.
-   **`s.products`** carries the product detail, in a fixed format.

A typical mapping, with variable numbers that will be different in your SDR:

| Data layer key | Adobe Analytics variable | Type |
| --- | --- | --- |
| `page.pageName` | `s.pageName`, prop1 | Traffic |
| `page.siteSection` | `s.channel`, eVar2 | Traffic and conversion |
| `user.loginStatus` | eVar3 | Conversion |
| `event: "addToCart"` | `scAdd` | Success event |
| `event: "purchase"` | `purchase`, with `s.purchaseID` | Success event |
| `transaction.orderId` | `s.purchaseID` | Deduplication |
| `product[]` | `s.products` | Products string |

### Building s.products

Adobe's [products variable reference](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/products) fixes the order of the fields: category, product name, quantity, price, events and eVars, separated by semicolons. Several products are separated by commas, and several events or eVars inside one field by pipes. Category is optional, and price is the **total** for that line, not the unit price. For the add to cart above, the beacon carries:

```js
s.events = "scAdd";
s.products = ";SKU12345;1;99.99";
```

Because `;`, `,` and `|` are separators, strip them from product names before they reach `s.products`. A product called "Shoes, red" quietly becomes two products.

### The purchase and its ID

On the purchase, map `transaction.orderId` to `s.purchaseID`. According to [Adobe's purchaseID documentation](https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/purchaseid), a hit with an ID already collected is treated as a duplicate and its conversion data is left out of reports, which is what saves you when a visitor reloads the confirmation page. The ID should be alphanumeric and stay under 20 bytes.

Campaign codes follow the same logic: the data layer, or the URL, holds the code, and Tags writes it to `s.campaign`. The details are in the [Adobe Analytics campaign tracking guide](/guides/campaign-tracking-adobe-analytics-guide).

## Single page applications

In a single page application the page never reloads, so the data layer has to say when the view changes. Three rules:

1.  **Push a view event on every route change**, with the full `page` object of the new view. In Tags, the same rule that handles `pageView` on load handles it here.
2.  **Push every interaction** as it happens: clicks, form submits, video plays.
3.  **Do not let one view inherit another's values.** The computed state merges pushes, so a key you set on the product view is still there on the cart view unless you overwrite it. Push the keys of each view explicitly, and use "Clear data layer history" in Tags only when you mean to.

## Validating the data layer

A data layer is right when two things hold: the push has the keys and values the SDR says, and the beacon carries what the mapping says. Check both, in that order.

**The push.** In the console, `adobeDataLayer` shows every entry in order and `getState()` shows the merged result. Walk through the journeys that matter (product page, add to cart, checkout, purchase) and compare each push with the SDR: names, types, and the keys that must never be empty.

**The beacon.** The Adobe Experience Platform Debugger shows what each Adobe Analytics hit sends: page name, eVars, props, events and the products string. If the push is right and the beacon is wrong, the problem is in Tags. If the push is already wrong, it comes from the front end. Our [Adobe Analytics debugger guide](/blog/how-to-debug-adobe-analytics) goes screen by screen.

![Network Requests table of the Adobe Experience Platform Debugger with two Adobe Analytics hits side by side, showing eVar 8, Events event8 and event4, Link Name, Link Type lnk\_o, Page Name, Page URL and Prop 8, with the eVar, events, link name and prop rows boxed in red](/images/adobe-experience-platform-debugger-analytics-hit.webp)

Screenshot: the Analytics network requests in the Adobe Experience Platform Debugger, on Adobe's WKND demo site. Image: Adobe, Experience League.

Both checks have the same limit: they cover your browser, your consent choice and the pages you click, once. The checklist that holds before every release is in [dataLayer validation](/guides/datalayer-validation).

## Watching it after release

The data layer breaks the way front ends change: a refactor renames `orderId` to `orderID`, a new template ships without `page.siteSection`, a price arrives as a string. The page still works, functional QA passes, and the first sign is a report that looks wrong days later.

Trackingplan watches it on real traffic instead of one browser. It picks up the Adobe Client Data Layer on its own, and installs from Adobe Experience Platform as well as from GTM or one script tag. Once it has learned from your traffic what normal looks like, it checks the data layer as a destination of its own, with the same warnings it raises on your analytics hits: a push that stops, a key that goes missing, a value that changes type. It compares the data layer with the hits each destination received, so a purchase that lands in `adobeDataLayer` and never reaches Adobe Analytics shows up, with the hits behind it and whether the fix belongs in Tags or in the front end. What that check returns is on the [dataLayer checker](/landings/datalayer-check) page.

![The Audits library of Trackingplan with the Data layer implementation audit open: whether the pushes and fields the team cares about still reach the data layer as specified, and what the audit checks](/images/docs-data-layer-audit-library.png)

Screenshot: the two data layer audits in Trackingplan's Library, Data layer implementation and Destinations agree with the data layer.

The SDR says what the data layer should be. The pushes on real traffic say what it is. The work is keeping the two the same.

## FAQ

### What is the data layer in Adobe Analytics?

A JavaScript object on the page that holds the page, user and product data your tags need, and receives an event for every interaction. With the Adobe Client Data Layer it is an array called `adobeDataLayer`. Adobe Tags reads it and maps its values to eVars, props, events and `s.products`.

### What is the difference between the Adobe Client Data Layer and digitalData?

`digitalData` is the W3C CEDDL format: one object, usually set when the page loads. The Adobe Client Data Layer is an array you push to, with a computed state and event listeners, so it keeps the order of interactions and suits single page applications. Adobe recommends the Adobe Client Data Layer for new or restructured implementations.

### Is the Adobe Launch data layer different from the Adobe Tags data layer?

No. Launch is the old name of Adobe Experience Platform Tags, and DTM was the tag manager before it. The data layer is the same; what changes is the extension that reads it. Today that is the Adobe Client Data Layer extension.

### Can one data layer feed both Adobe Analytics and GA4?

Yes. Keep the names vendor-neutral and let the tag manager translate: one rule builds `s.products` and the events for Adobe, another builds the GA4 items array and event parameters from the same push.

Part of[Adobe Analytics guide: from setup to advanced analysis](/guides/master-adobe-analytics-digital-analysts-guide)

On this page

1.  [*01*Adobe Client Data Layer or digitalData](#adobe-client-data-layer-or-digitaldata)
2.  [*02*What goes in the data layer](#what-goes-in-the-data-layer)
3.  [*03*Adobe Analytics data layer example](#adobe-analytics-data-layer-example)
4.  [*04*Loading the Adobe Client Data Layer in Adobe Tags](#loading-the-adobe-client-data-layer-in-adobe-tags)
5.  [*05*Mapping the data layer to eVars, props and events](#mapping-the-data-layer-to-evars-props-and-events)
6.  [*06*Single page applications](#single-page-applications)
7.  [*07*Validating the data layer](#validating-the-data-layer)
8.  [*08*Watching it after release](#watching-it-after-release)
9.  [*09*FAQ](#faq)

**Stop babysitting tags**

Trackingplan audits your real user data around the clock and flags issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup)

![](/images/65d75b0ae8d69ef95785a5d6_david-pombar.webp)

**David Pombar** Swiss army knife at Trackingplan

Read more from David, a Senior Product Strategist with 18+ years in digital product development and an atypical error detection knack.

Share Copy link [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.trackingplan.com%2Fguides%2Fadobe-analytics-data-layer) [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.trackingplan.com%2Fguides%2Fadobe-analytics-data-layer&text=Adobe%20Analytics%20data%20layer%3A%20ACDL%20setup%20and%20examples)

Read next

[All Guides →](/guides)

-   [
    
    12 minAdobe AnalyticsJune 16, 2025
    
    ### Adobe Analytics implementation: a step-by-step guide
    
    Implement Adobe Analytics step by step: report suite, Web SDK or AppMeasurement, Adobe Tags, data layer, eVars, props, events, link tracking and QA.
    
    by **Rafael Campoamor**](/guides/implementing-advanced-tracking-adobe-analytics)
-   [
    
    6 minAnalytics ImplementationFebruary 13, 2026
    
    ### Adobe Debugger: how to use the Experience Platform Debugger
    
    Install the Adobe Experience Platform Debugger, read Adobe Analytics hits, swap the tag library and run Edge Trace, then see what it cannot catch.
    
    by **David Pombar**](/blog/how-to-debug-adobe-analytics)
-   [
    
    8 minDatalayerNovember 2, 2026
    
    ### dataLayer validation: what to check before every release
    
    What to check in the dataLayer on every push, and how to catch renamed keys, type changes, and missing fields before they reach GA4, ads, or the warehouse.
    
    by **David Pombar**](/guides/datalayer-validation)

Trackingplan

## See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup) [Book a demo](/demo)
