How to add additional information to the data layer for analytics? | Community
Skip to main content
Art_Bird
Level 2
Nov 5, 2021 2:48 PM UTC
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
Nov 5, 2021 3:09 PM UTC

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
Nov 5, 2021 3:09 PM UTC

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