Adobe Client Data Layer
Adobe Client Data Layer
A data layer consists of a JavaScript client-side event-driven data store that can be used on web pages:
§ to collect data about what the visitors experience on the web page;
§ to communicate this data to digital analytics and reporting servers.
The Adobe Client Data Layer is a JavaScript store for data and events happening on a page within the
scope of a request. It provides an API to:
§ Register data that is to be merged into the data layer state.
§ Trigger events that relate to the data stored in the data layer.
§ Get the current data layer state of all merged data.
§ Register listeners that are called for specific events or data changes.
§ Pushing a Function:
§ Console output:
§ Console output:
Feel free to contribute to the ACDL project (questions, issues, PRs, feedback, …):
https://github.com/adobe/adobe-client-data-layer
§ The same JS utility will add event handlers for click events
§ Special components (e.g.: Accordion) will push custom events (show, hide)
§ Define the properties of the custom component model that needs to be tracked.
§ Add a component ID to the the custom component HTL.
§ In the custom component HTL add the data-cmp-clickable attribute to the element to be tracked.
§ Make sure the component HTL has an ID on the top DOM element.
To install the Adobe Client Data Layer Extension, navigate to the Extension catalogue in Launch
Extension and select the Adobe Client Data Layer.