← All integration guides

Behavior

Measure form drop-off without reading what people type.

Form abandonment

The tracker watches forms automatically. A focus or change on an input, textarea, or select marks the form as started. A submit marks it completed. If the visitor leaves the page after a start and before a submit, Analytica records a form_abandonment event with the form id (or name, or unnamed_form) and the page path.

The privacy model is strict. The listener records interaction state only. It never reads event.target.value, field text, or keystrokes, so the event stays free of form contents and fits a GDPR and CCPA posture that avoids collecting what people type.

Skip a form or a field by marking it data-analytica-mask. Masked elements do not start a form. No extra snippet is required beyond the standard tracker.

<form id="signup">
  <input name="email" />
  <input type="password" data-analytica-mask />
  <button type="submit">Create account</button>
</form>