Glossary

Autocapture

Autocapture is a method of collecting product-analytics events automatically — page views, clicks, scrolls, and form submissions — from a single SDK snippet, without defining each event in code beforehand.

A live feed of autocaptured events — page views, clicks, and form submits arriving with no manual instrumentation.

How autocapture works

Instead of writing a line of tracking code for every button and form, you add one analytics SDK. It listens to interactions in the browser or app and records them automatically, capturing context like the element clicked, its text, and its CSS selector. Events are usually batched and sent in the background, then often enriched server-side with details like geography, device, and UTM parameters.

Autocapture vs manual tracking

Manual (or “explicit”) tracking means calling a function like track('order_completed') for each event you care about. It’s precise and well-named, but slow to set up and easy to forget. Autocapture solves the cold-start problem — you get behavioral data the moment the SDK is installed, including interactions no tracking plan would have predicted. The trade-off is that raw captured events are noisier than curated business events.

The best practice is to use both: autocapture for breadth and the long tail of interactions, plus a handful of named custom events for your key conversions.

Frustration signals

Richer autocapture also records rage clicks (rapid repeated clicks on the same spot) and dead clicks (clicks that produce no response) — early signals that a UI is confusing or broken, which you’d never think to instrument by hand.

Example: what autocapture records

Drop the SDK on an e-commerce site and a single visit can produce a stream like this — with no tracking code written:

  • page_view/products/blue-runner
  • click — button, text “Add to cart”, selector #pdp .add-to-cart
  • rage_click — three rapid clicks on a greyed-out “Apply coupon” button
  • form_submit — the checkout form (which fields were filled, never their values)

You never planned the rage_click — but it’s the exact signal that the coupon field is broken. That’s the payoff: the interaction you’d never have thought to instrument is already captured.

How Pug does autocapture

After a single init(), Pug’s Web SDK autocaptures page views, clicks, scrolls, and form submissions, plus rage and dead clicks, then enriches every event with geo, device, and browser, and UTM parameters on ingest. Those events flow straight into trends, funnels, retention, and user flows, and you can still add named custom events with track(). See the SDKs for setup.

FAQ

Autocapture — common questions

Is autocapture better than manual event tracking?

Neither is strictly better — they complement each other. Autocapture covers interactions you didn’t plan for and removes the cold-start problem; manual tracking gives precise, well-named business events. The strongest setups use both: autocapture for breadth, custom events for the moments that matter.

Does autocapture slow down my site?

A well-built autocapture SDK adds a small script that listens to events and batches them, so the performance impact is minimal. Pug’s Web SDK batches events and sends them asynchronously after a single init().

What does autocapture record?

Typically page views, clicks (with the element, text, and selector), scroll depth, and form submissions. Some tools also capture frustration signals like rage clicks and dead clicks, as Pug does.

See it in Pug.

Open-source product analytics with unified profiles. Self-host under AGPL-3.0, or use the free cloud during open beta.