If you don’t want all Arcade events captured, or need to control when it’s turned on, you can manually setup Arcade with Koala. With a small bit of code you can capture key events in Koala as visitors interact with your Arcade demos.
Anywhere after the Koala snippet, within the <body> tag of your html add this code snippet:
Copy
Ask AI
<script> window.addEventListener( "message", function (event) { if (event.origin === "https://demo.arcade.software") { if (window.ko && event.data && event.data.eventName) { window.ko.track("Arcade " + event.data.eventName, event.data); } } }, false );</script>
This will start capturing all events bubbled from the Arcade tour in Koala, prefixed with the name “Arcade” (e.g. “Arcade CTA Clicked” or “Arcade Hotspot Clicked”). You can see the full list of events in their docs.If you only want to capture some of the events you can add a conditional check like this: