Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Form Analytics.

Features

  • 11 event types: form_view, form_start, field_focus, field_blur, field_change, field_error, step_complete, form_submit, form_abandon, form_success, form_error
  • JSONL event collection: append-only log files, one event per line
  • Funnel analysis: track conversion from view to start to submit to success
  • Field-level drop-off: identify which fields cause users to abandon
  • Timing analysis: mean, median, and P90 completion times
  • Sample data generation: create realistic test data for development
  • JSON output mode: machine-readable analytics for dashboards
  • Python 3.10+ stdlib only — no pip installs required

Quick Start

bash
# Generate sample analytics data
python src/form_analytics.py --generate checkout --sessions 50

# Analyze a form's events
python src/form_analytics.py --analyze checkout

# Output as JSON
python src/form_analytics.py --analyze checkout --json

# Run the built-in demo
python src/form_analytics.py --demo
Chapter 2

CLI Reference

Follow this guide to get Form Analytics up and running in your environment.

CLI Reference

FlagDescription
--analyze FORM_IDAnalyze events for a specific form
--generate FORM_IDGenerate sample event data
--sessions NNumber of sessions to generate (default: 20)
--events-dir DIRDirectory containing event JSONL files (default: events/)
--jsonOutput analytics as JSON instead of formatted text
--demoGenerate sample data and run analysis

Event Format

Events are stored as JSONL (one JSON object per line):

json
{"event": "form_view", "form_id": "checkout", "session_id": "abc123", "timestamp": "2026-03-14T10:00:00Z"}
{"event": "form_start", "form_id": "checkout", "session_id": "abc123", "timestamp": "2026-03-14T10:00:02Z"}
{"event": "field_focus", "form_id": "checkout", "session_id": "abc123", "field": "email", "timestamp": "2026-03-14T10:00:03Z"}
{"event": "field_blur", "form_id": "checkout", "session_id": "abc123", "field": "email", "timestamp": "2026-03-14T10:00:08Z"}
{"event": "form_submit", "form_id": "checkout", "session_id": "abc123", "timestamp": "2026-03-14T10:00:30Z"}
{"event": "form_success", "form_id": "checkout", "session_id": "abc123", "timestamp": "2026-03-14T10:00:31Z"}

Event Types

EventDescription
form_viewUser loaded the page containing the form
form_startUser interacted with the form for the first time
field_focusUser focused on a specific field
field_blurUser left a specific field
field_changeUser changed a field's value
field_errorA field validation error occurred
step_completeUser completed a step (multi-step forms)
form_submitUser clicked the submit button
form_abandonUser left without completing the form
form_successForm was submitted successfully
form_errorForm submission failed
Chapter 3
🔒 Available in full product

Analytics Output

Chapter 4
🔒 Available in full product

File Structure

You’ve reached the end of the free preview

Get the full Form Analytics and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Form Analytics v1.0.0 — Free Preview