Documentation menuTrack: Autocapture

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?

TypeEvent nameOn by defaultWhat triggers it
Outbound linksoutboundYesA click on a link to another domain
ErrorserrorNoAn uncaught JavaScript error or an unhandled promise rejection
Button clicksbutton_clickNoA click on a button, an element with role="button" or a submit input
Copied textcopyNoA visitor copies text from the page
Form submissionsform_submitNoA form is submitted
Input changesinput_changeNoThe value of an input, select or textarea changes

What does each event store?

EventStored properties
outboundThe link URL, the link text and the target
errorMessage (up to 500 characters), stack trace (up to 2,000), file name, line and column
button_clickThe button text, up to 100 characters
copyThe copied text (up to 500 characters) and the tag name of the element it came from
form_submitForm ID, form name, action, method and number of fields
input_changeElement 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.