Track
Autocapture in Loogika
Autocapture records common interactions without any code from you. You turn each type on or off per site. Outbound links are on from the start, and the rest are off until you enable them.
Last updated . This guide belongs to Error tracking.
Where do you turn autocapture on?
Open Site Settings and find the Auto Capture section. Each type has its own switch.
A change takes effect the next time a page loads. Loogika caches the settings for 60 seconds, and a browser can keep the script itself for up to an hour. Pages that are already open keep the old settings until they are reloaded.
What can autocapture record?
| Type | Event name | On by default | What triggers it |
|---|---|---|---|
| Outbound links | outbound | Yes | A click on a link to another domain |
| Errors | error | No | An uncaught JavaScript error or an unhandled promise rejection |
| Button clicks | button_click | No | A click on a button, an element with role="button" or a submit input |
| Copied text | copy | No | A visitor copies text from the page |
| Form submissions | form_submit | No | A form is submitted |
| Input changes | input_change | No | The value of an input, select or textarea changes |
What does each event store?
| Event | Stored properties |
|---|---|
outbound | The link URL, the link text and the target |
error | Message (up to 500 characters), stack trace (up to 2,000), file name, line and column |
button_click | The button text, up to 100 characters |
copy | The copied text (up to 500 characters) and the tag name of the element it came from |
form_submit | Form ID, form name, action, method and number of fields |
input_change | Element type, input type and field name. Also form ID and form name when the field sits in a form |
When a button has no visible text, Loogika uses its aria-label, then its value, then its title.
Does autocapture store what visitors type?
No. An input change records that a field changed and which field it was. The value is never sent.
Password fields, hidden inputs, disabled fields and read-only fields are left out completely.
Copied text is different. The copy event stores the text a visitor copied, so think before you enable it on pages that show personal data.
Which errors are captured?
Loogika records errors from your own domain. Errors from third-party scripts are filtered out, and so are ResizeObserver loop warnings.
The same error is sent at most once every 60 seconds. Two errors count as the same when name, message, file, line and column match.
How do you add your own properties?
Add data-loogika-prop- attributes to the button, the form or the field:
<button data-loogika-prop-section="pricing">Start your free trial</button>
The captured button_click event then carries the property section.
How do you give one button its own event name?
Add data-loogika-event to it. Loogika then sends your event in place of the generic button_click.
<button data-loogika-event="trial_started">Start your free trial</button>
Several clicks on the same button within one second count as one click.
Questions about autocapture
Do captured events count toward your plan?
Yes. Every captured event is an event, and plans are priced by monthly events. Input changes and button clicks can add up quickly on a busy site.