Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Tracking podcast playback events from Apple Podcasts iframe in AEM

Avatar

Level 2

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

Hi @AdrianaCa3 ,

Apple does not provide any official JavaScript SDK or postMessage API for their podcast embed player.
Cross-origin iframe security means you cannot hook into the player’s internals.

Directly tracking playback events from the iframe is impossible.
You need a workaround to capture user interactions and approximate playback progress.

Try below workaround: