Hi everyone,
I'm working on an AEM project where we’ve developed a custom “Podcast” component that allows editors to embed podcast content from different platforms, including Spotify, Apple Podcasts, Podigee, and SoundCloud using iframes.
For platforms like SoundCloud and Podigee, I know there are libraries or SDKs available that allow tracking of playback events (such as play, pause and progress milestones) even when embedded via iframe.
However, I’m currently looking for a way to do the same for Apple Podcasts embeds, specifically to capture events like play, pause and playback milestones (25%, 50%, 75%, 100%) and send those events to Adobe Analytics.
From my research, Apple Podcasts embeds (via https://embed.podcasts.apple.com/...) doesn’t expose a public JavaScript API or any event listeners due to cross-origin restrictions.
Still, I’d like to ask:
- Does anyone know of any libraries or workarounds to track user interactions on Apple Podcasts iframes?
- Have you ever implemented something similar within AEM and successfully tracked playback data?
Any suggestions or shared experiences would be really helpful.
Thanks a lot in advance!
Adriana