Skip to content

Commit e2b738f

Browse files
Docs: Clarify autocapture allowlist (#10924)
* Documentation updates from Promptless --------- Co-authored-by: promptless[bot] <179508745+promptless[bot]@users.noreply.github.com> Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
1 parent 277cc2d commit e2b738f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contents/docs/product-analytics/autocapture.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ posthog.init('<ph_project_api_key>', {
5050
```
5151
Allow and ignorelists only filter autocapture events. They don't affect the data collected by session recordings or custom events.
5252

53+
> **Note:** When using `element_allowlist` or `css_selector_allowlist`, PostHog considers the entire tree of elements from the root to the target element of the click event, not just the element that was directly clicked. If *any* element or selector is in the tree *and* allow list, the click is captured.
54+
5355
### Preventing sensitive data capture
5456

5557
For security reasons and to prevent sensitive data capture, PostHog is conservative about capturing `input` tags. We specifically only collect the `name`, `id`, and `class` attributes from `input` tags. If you need to collect more data from inputs, you should use [custom events](/docs/product-analytics/capture-events).

0 commit comments

Comments
 (0)