What is autotracking?
By default, Koala will automatically track certain events on your website. This includes:- pageviews
- form submissions
- active session time
- presence (when a user is active on your site vs idle)
Disabling autotracking
You can disable autotracking entirely by setting theautocapture
option to false
when you initialize the Koala pixel.
When loading from the CDN/script tag, add this before your script:
Manually/programmatically enabling or disabling autotracking at runtime
You may want to enable or disable autotracking temporarily on some pages, for instance, if you are using Koala in a SPA that navigates seamlessly across your marketing site and product dashboard. You can do this by callingko.startAutocapture()
and ko.stopAutocapture()
.