further-external / Apollo-Documentation-UH-Hospital---CJA

An Apollo generated Event Driven Data Layer
0 stars 1 forks source link

Podcast Plays #17

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

User plays a podcast.

Tested all of this in the podbean playground: https://developers.podbean.com/apidoc/playground

On the playground page I saw that the API was being loaded in by a cloudfront script.

API script: https://d8g345wuhgd7e.cloudfront.net/player/api.js?version=20210407

I'm not sure if this is the most up to date version of podbean's API script or if this is something that you can find in your account settings. But, I believe if this was loaded on the podcast pages I think we could set up a listener script in Launch for podcast play. Below is an example of the listener code.

dataLayer = [];
widget.bind('PB.Widget.Events.PLAY', function (event) {
        appEventData.push({"event":"podcast_play","data":event.data});
    });
rossozburnsdi commented 1 year ago

@uhproppe adding you to the ticket