AutocaptureConfig

Properties

NameType
capture_copied_textboolean

When set to true, autocapture will capture the text of any element that is cut or copied.

css_selector_allowliststring[]

List of CSS selectors to allow autocapture on e.g. ['[ph-capture]'] we consider the tree of elements from the root to the target element of the click event so for the tree div div button svg and allow list config ['[id]'] we will capture the click if the click-target or its parents has any id Everything is allowed when there's no allowlist

dom_event_allowlistDomAutocaptureEvents[]

List of DOM events to allow autocapture on e.g. ['click', 'change', 'submit']

element_allowlistAutocaptureCompatibleElement[]

List of DOM elements to allow autocapture on e.g. ['a', 'button', 'form', 'input', 'select', 'textarea', 'label'] We consider the tree of elements from the root to the target element of the click event so for the tree div > div > button > svg if the allowlist has button then we allow the capture when the button or the svg is the click target but not if either of the divs are detected as the click target

element_attribute_ignoreliststring[]

Exclude certain element attributes from autocapture E.g. ['aria-label'] or [data-attr-pii]

url_allowlist(string | RegExp)[]

List of URLs to allow autocapture on, can be strings to match or regexes e.g. ['https://example.com', 'test.com/.*'] this is useful when you want to autocapture on specific pages only if you set both url_allowlist and url_ignorelist, we check the allowlist first and then the ignorelist. the ignorelist can override the allowlist

url_ignorelist(string | RegExp)[]

List of URLs to not allow autocapture on, can be strings to match or regexes e.g. ['https://example.com', 'test.com/.*'] this is useful when you want to autocapture on most pages but not some specific ones if you set both url_allowlist and url_ignorelist, we check the allowlist first and then the ignorelist. the ignorelist can override the allowlist

Community questions

Was this page useful?