Using a data layer for Analytics and other Experience Cloud solutions is considered a best practice. In this video, you’ll see how to pull your values out of the data layer and use them in Experience Platform Launch to populate variables in Adobe Analytics.
In addition, see the blog Data Layers: From Buzzword to Best Practice,, which gives you some great information about data layers, as well as a couple of examples.
Create a data layer standard to use on your site, which can be referenced by Experience Platform Launch.
Populate the data in the data layer.
In Experience Platform Launch, create “data elements” that reference the data points in the data layer, and which can be used throughout Experience Platform Launch in rules, extensions, and so on.
Use the data elements in either the Analytics extension global variables or in a rule, assigning the values into props, eVars, pageName, or other Analytics variables.
Trigger a beacon that sends the data into Analytics.
The following video walks you through the process.