PostHogAutocaptureOptions

Properties

NameType
captureTouchesboolean

Enable autocapture of touch events

customLabelPropstring

Custom prop name used to label elements for autocapture

noCapturePropstring

Prop name used to prevent autocapture on an element and its children

maxElementsCapturednumber

Maximum number of elements to capture in the component tree hierarchy

ignoreLabelsstring[]

List of element labels to ignore during autocapture

propsToCapturestring[]

List of prop names to capture from elements

captureScreensboolean

Capture the screen name (or route name) and properties

Only used for expo-router,

PostHogAutocaptureNavigationTrackerOptions

Used for mutating the screen name and properties Only used if captureScreens is true

PostHogNavigationRef

If you create a navigation ref with createNavigationContainerRef, you need to pass the navigation ref Only used for expo-router and Deprecated: this is deprecated since it didn't work as expected, check out the captureScreens comments for capturing screen views semi-automatically