I often hear from customers saying that, "data layer does not load properly because of which I am losing out some data", "dataLayer is making my website heavy", "a lot of development efforts required to implement data layer"
Well, What If I tell you that, you can create your data layer and implement on your website through Adobe Launch, no need to separately deploy it in the website source code. Adobe Client Data Layer extension in Adobe Launch helps for doing the same
Introduction: This Extension provides Event, Action, and Data Element Types needed to leverage the Adobe Client Data Layer on your site. It should be used to consume data from the ACDL, and use that data for Analytics, Target, segmentation, and other marketing purposes.
Prerequisites:
Admin access to Adobe Launch
Website on which you want to implement it
Implementation Steps:
- Create a web property in Adobe Launch
- Install Adobe Client Data Layer extension.
3. Click on configure, although you do not have to make any changes
At this point, you can just build a library and publish it in the dev environment.
As you can see in the below screenshot, when I type adobeDataLayer in the console, I could see adobeDataLayer created. This is an indication that the extension has created the adobeDataLayer, however, there is no data in it
4. Create a rule to push the data into the data layer
5. Under Actions, select the extension as "Adobe Client Data Layer" and select Action type as "Push to Data Layer
6. Click on "Open JSON Editor" on the same screen.
You would need to define the variables that you want to ingest into the data layer. As shown in the below screenshot
The best part is, that I can use the already defined data elements and use them here. You would need to call the data elements within "%%".
For testing purposes, I have defined a small array and ingested the variables into it. You can create an "n" number of arrays with an "m" number of variables in each of them.
For instance, I can create another rule to ingest the data layer on the product pages and ingest that into the data layer on that specific pages
Validation:
In order to test my implementation, I am using Adobe Experience Platform Debugger and test it. I am using my favorite website https://luma.enablementadobe.com/
I could see the rule created in step 4 has fired
Now I would like to check whether all the variables that are defined in the JSON are coming up or not
I could see the variables that are defined in the JSON are coming up under the 0th index under "Page"
This indicates that the adobeDataLayer has got updated with the data.
I can now use this data layer and send the data to adobe solutions. For instance, I can use this and implement AEP Web SDK and send the data to edge and from there to Adobe solutions or non-adobe solutions
This extension has helped me to build my own data Layer based on my requirements and I no longer have to depend on web developers, and production cycles for the data Layer to get updates.
These are the simple implementation steps to follow to experiment with this extension.
Hope this helps if you are trying to start with this extension and implement data layers
Happy Learning!
Vani