Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-dat...

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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-dat...