AutocaptureConfig
Properties
| Name | Type |
|---|---|
capture_copied_text | boolean |
When set to true, autocapture will capture the text of any element that is cut or copied. | |
css_selector_allowlist | string[] |
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 | |
dom_event_allowlist | DomAutocaptureEvents[] |
List of DOM events to allow autocapture on e.g. ['click', 'change', 'submit'] | |
element_allowlist | AutocaptureCompatibleElement[] |
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 | |
element_attribute_ignorelist | string[] |
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 | |
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking,feature flags, experiments, surveys, LLM analytics, data warehouse, CDP, and anAI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.