Skip to main content
Participant
July 29, 2025
Question

Adobe Data Layer Not Rendering on Some Sites even after cloning the site

  • July 29, 2025
  • 1 reply
  • 80 views

I'm working with a custom AEM component that includes the Core Image component (core/wcm/components/image/v3/image) inside it. The component renders correctly and includes the data-cmp-data-layer attribute in the anchor tag (for Adobe Data Layer) in some sites, but not in others, even though the component and content were cloned from a working site.

  • The image component has the correct sling:resourceType = core/wcm/components/image/v3/image

  • The <a> tag wraps the image in both places, but data-cmp-data-layer is missing only in the broken ones.

  • No JS errors in the browser console, and the core component clientlibs are loading.

  • Both sites use editable templates, and the page component extends core/wcm/components/page/v2/page

  1. What else could cause the data-cmp-data-layer to be missing, specifically on cloned sites?
  2. Does the node name (e.g., image) or path affect how the data layer renders?
  3. Are there hidden dependencies between the template policy and the rendering of data-cmp-data-layer?

Any help or ideas to debug this further would be appreciated!

Thanks in advance.

 

 

1 reply

kglad
Community Expert
Community Expert
July 29, 2025

that has its own forums where you should post your issue. unforunately, i cannot move your message to that forum, or i would do so. general info - https://experienceleaguecommunities.adobe.com/ forums - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/bd-p/adobe-experience-manager-discussions