posthog-js-lite icon indicating copy to clipboard operation
posthog-js-lite copied to clipboard

Implement `element_allowlist`/`element_denylist`

Open rafaeelaudibert opened this issue 10 months ago • 1 comments

Is your feature request related to a problem?

The main posthog-js library allows you to set a element_allowlist/element_denylist property that's then handled when autocapturing events. posthog-core and all of the ones that inherit from it such as -web and -react-native don't support that which requires customers to sprinkle ph-no-capture around their apps to get this to work properly.

Describe the solution you'd like

Implement a similar feature in posthog-core to simplify capturing data

Describe alternatives you've considered

Flooding the app with ph-no-capture

Related sub-libraries

  • [ ] All of them
  • [x] posthog-web
  • [ ] posthog-node
  • [x] posthog-react-native

Additional context

https://posthoghelp.zendesk.com/agent/tickets/25323

rafaeelaudibert avatar Feb 17 '25 20:02 rafaeelaudibert