Forum Discussion

kylejacoby's avatar
kylejacoby
New Member
3 years ago

PowerBI Embedded Analytics Tracking to GA4

Hi All,

 

A client of mine is using PowerBI Embedded Analytics to load a PowerBI iframe widget onto their website. We were wondering what our options are for tracking widget interactions and whether or not we can add a GTM container code snippet into the widget so that we can forward the widget interactions to our GA4 account.

I was testing in the embedded analytics playground and there are specific event handlers for interacting with these widgets. Does this mean we can easily embed GTM code snippet into the header of each widget and then send events on those interactions using the event handlers from the API? Our plan was then going to be to leverage https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage to send events to the parent page of the Iframe.  

Is this possible? 

 

Thanks,

Kyle

3 Replies