JavaScript API
In addition to its configuration options the website widget allows you to interact with it via a global JavaScript object.
- The
window.Kapa
object exposes a set of functions which let you manipulate the website widget programmatically, like opening and closing it. - The
window.Kapa
allows 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.