However, I donât know if you can access that data at all. Typically it lives inside the Mux dashboard, I think, but since weâre whitelabeling/reselling them for you, I donât think you have a specific Mux âsub dashboardâ for your usage only
They do have a way to stream this analytics data to AWS Kinesis, but Iâm not familiar enough with it and I also donât know if that would work for you as a sub-customer of ours, rather than having your own Mux account.
My hunch is that your approach (just sending events directly to GA as they occur) would be easier than trying to get the data out of Mux Data and into GA, but Iâm not 100% sure on that. Let me check with Mux and see if they have any ideas.
Pinging @AdamJ_Mux in case heâs still around here⌠but Iâll also reach out to them via our internal comms
And then provide a custom envKey property to our <VideoPlayer/> to send analytics to your own account instead:
<VideoPlayer
disableTracking={false} // We normally default it to true
envKey={myOwnMuxDataEnvKey} // Your own env key from your Mux Data dashboard at https://dashboard.mux.com/environments
debug={true} // (Optional) Shows analytics events in the browser console
data={videoData.data.upload.video} // Mock of DatoCMS CDA query response. Really just needs `muxPlaybackId`
/>
I donât see a ready-built way to easily stream events to Google Analytics. The streaming they provide is to Kinesis. You can try to write your own exporter/streamer, or it might still be easier to just bypass Mux Data (which, to be clear, isnât just settings on the Mux Player but their own analytics service) and send data directly to GA from clientside events.
Mux Data looks pretty good, though. If you donât absolutely need data in GA, might be easier to just use that for video data?