Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement element_allowlist/element_denylist #396

Open
2 of 4 tasks
rafaeelaudibert opened this issue Feb 17, 2025 · 1 comment
Open
2 of 4 tasks

Implement element_allowlist/element_denylist #396

rafaeelaudibert opened this issue Feb 17, 2025 · 1 comment

Comments

@rafaeelaudibert
Copy link
Member

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
  • posthog-web
  • posthog-node
  • posthog-react-native

Additional context

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

@marandaneto
Copy link
Member

That would go here

export type PostHogAutocaptureOptions = {
and here
export const autocaptureFromTouchEvent = (e: any, posthog: PostHog, options: PostHogAutocaptureOptions = {}): void => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants