Data Layer events are not being picked up for the OOTB PDF viewer | Community
Skip to main content
Level 4
June 3, 2026
Question

Data Layer events are not being picked up for the OOTB PDF viewer

  • June 3, 2026
  • 1 reply
  • 28 views

The sling:configs node is created and the enabled property is set to true for the node com.adobe.cq.wcm.core.components.internal.DataLayerConfig for the given site. The PDFs are loading from the Adobe embed component that cretaes PDFs using iframes. How to fetch events int the data layer?

1 reply

v-lazar
Level 2
June 3, 2026

@ChinmayiSh, the OSGi config you enabled (DataLayerConfig) only powers the page and core component events on the parent page. The Adobe PDF Embed component renders the PDF inside an iframe and its events do not flow into window.adobeDataLayer automatically.

 

The fix is to register a PDF Embed API callback. After you create the viewer with new AdobeDC.View(...) and call previewFile(...), the returned promise resolves to an adobeViewer instance. On that instance, registerCallback with type AdobeDC.View.Enum.CallbackType.EVENT_LISTENER and pass options with enablePDFAnalytics set to true. That last flag is the key, without it you only get a minimal subset, with it you get PAGE_VIEW, BOOKMARK_ITEM_CLICK, ANNOTATION_*, TEXT_COPY, and the rest.

 

Inside the callback, push the event to window.adobeDataLayer with your own event schema. On the Launch side, create a rule that fires on that ACDL event name and maps the fields into your Analytics or Web SDK call.

 

If you have a CMP that blocks scripts before consent, both the Embed API initialization and the ACDL push need to be gated until Launch is not blocked at the time the events fired.

 

If you can share which AEM version you are on (6.5 or AEMaaCS) and whether you are on Launch or Web SDK, I can be more specific on the downstream mapping.

https://www.linkedin.com/in/viktor-lazar/ | https://cyber64.com/insights
v-lazar
Level 2
June 3, 2026

@ChinmayiSh working poc with Adobe Embed API
https://pdf-acdl-bridge-cyber64.pages.dev/
Let me know if you need any further support

https://www.linkedin.com/in/viktor-lazar/ | https://cyber64.com/insights