Skip to main content
Art_Bird
Level 2
November 5, 2021
Solved

How to add additional information to the data layer for analytics?

I've enabled the data layer and verified its working. I've been asked to add additional information to whats returned in the page and custom component data. Do I need to write my own version of the getData() method because I don't see a way to use the DataLayerBuilder for this.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
November 5, 2021

Hi @art_bird,

Yes, we need to have our version of getData() and have that set in the data attribute(data-cmp-data-layer). Sample implementation with WKND Byline component is available here in official docs - https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/adobe-client-data-layer/data-layer-customize.html

 

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
November 5, 2021

Hi @art_bird,

Yes, we need to have our version of getData() and have that set in the data attribute(data-cmp-data-layer). Sample implementation with WKND Byline component is available here in official docs - https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/adobe-client-data-layer/data-layer-customize.html

 

Translate