Add data-cmp-data-layer-enabled attribute to body element
Hi all,
I need to add data-cmp-data-layer-enabled attribute to body element.
I follow the tutorial which creates /conf/<mySite>/sling:configs/com.adobe.cq.wcm.core.components.internal.DataLayerConfig.
And set the enabled property, added sling:configRef property under my site
However, I still couldn't see the attribute data-cmp-data-layer-enabled in body.
there's a thread with a reply suggested adding some javascript code on page.html, but I don't get what exactly should I do next.
Do you guys have any ideas about this?
I'm using aem 6.5.5 with com.adobe.granite.archetypes version 20
Thanks!


