On this page

Autocapture Metrics

Comprehensive guide to Statsig's autocapture functionality for web analytics, including automatically captured events, metadata attributes, and configuration options.

The JavaScript, React, and Angular SDKs support autocapture, which automatically captures events and their attributes without requiring you to manually instrument your code.

Attributes captured

Common metadata (on all events)

Statsig automatically captures comprehensive metadata with each autocapture event to provide rich context for analysis:

  • To filter events, you can use the eventFilterFunc option when initializing the Statsig client.
  • To sanitize events and their metadata, listen for the pre_logs_flushed client event and modify the event object before Statsig sends it. (Refer to Client Event Emitter for more details.)

Page and environment metadata

Screen and viewport data

Network information

Referrer and traffic source data

Campaign and marketing attribution

Statsig automatically captures 25+ marketing attribution parameters including:

Additional platform IDs captured:

  • gclsrc, wbraid, gad_source (Google)
  • dclid (DoubleClick)
  • irclid (Impact)
  • igshid (Instagram)
  • _kx (Klaviyo)
  • mc_cid, mc_eid (Mailchimp)
  • qclid (Quora)
  • rdt_cid (Reddit)
  • sccid (Snapchat)
  • ttc, ttc_id (TikTok)
  • twclid (Twitter)

Action events (click, form submit, etc.)

Depending on the event element, the following properties may be captured:

  • action
  • method
  • formName
  • formId
  • href
  • content
  • inputName
  • textContent
  • selectedText ...and more

Page view events

PageViewStart:

PageViewEnd:

Dead click events

Rage click events

Web vitals events

Console log events

Query parameters

All URL query parameters are automatically captured as individual metadata fields with their parameter names as keys.

Was this helpful?