Adobe Data Layer Not Rendering on Some Sites even after cloning the site
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
- What else could cause the data-cmp-data-layer to be missing, specifically on cloned sites?
- Does the node name (e.g., image) or path affect how the data layer renders?
- 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.
