Hi guys.
Right now we are using a looker embedded iframe (Not SSO) to see data in our app, and we are trying to implement google analytics events.
I see that when we use an event listener, we receive a few messages for some events like the “page:change” or “dashboard:download” and thats really cool.
Is there a way to track when we click the button to “Download as CSVs”? I receive no messages when i click this button.
A have more events like this that i would like to be able to track. These are a few examples:
Here is a simplified example of what we did to track the “dashboard:download” message
window.addEventListener('message', function(event) {
const type = JSON.parse(event.data).type;
if (type === 'dashboard:download') {
//WE SEND THE EVENT TO GOOGLE ANALYTICS 🙂
}
}
Thanks!