JavaScript API
In addition to its configuration options the Website Widget allows you to interact with it via a global JavaScript object.
- The
window.Kapaobject exposes a set of functions which let you manipulate the Website Widget programmatically, like opening and closing it. - The
window.Kapaallows you to listen to events within the Website Widget. This can be helpful if you want to track widget interactions in your own analytics tools like Amplitude, Mixpanel or Segment.