Web Chat and Google Analytics events
I'd like to integrate the web chat with Google Analytics by allowing us to send events to GA from the browser when certain actions happen. I can see that we can use the message event listener and the voiceflow:open / close types to track when a user opens the web chat. However we'd also like to track when a user interacts with that chat, for example if they submit a message or click on a button (these would be treated differently). How can I hook into these events, if that's possible?
1 Reply
To answer my own question, I can see by inspecting the payload that on an interact event we can determine what action the client has performed, including if it was text or a specific interaction like carousel, so from this we could raise events.
I'd like to get a more generic approach to this - such as any time a user clicks a button, regardless of the underyling action. I think for something like this we might need to attach an event to the shadow DOM and look for clicks on the button class