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

Global hook to edit or reject events #1403

Open
pauldambra opened this issue Sep 7, 2024 · 1 comment
Open

Global hook to edit or reject events #1403

pauldambra opened this issue Sep 7, 2024 · 1 comment

Comments

@pauldambra
Copy link
Member

We're adding increasing functionality to for example mask URLs or ignore autocapture on certain elements / urls

Each time we add new collection we need to add new config. e.g. masking urls in heatmaps

We should have beforeCapture that accepts what we're about to send to any posthog endpoint and lets you edit or set to null. Set to null and we send nothing

e.g. you could have

beforeCapture: (x) => {
 if (x.properties.$current_url.indexOf(blah) > -1) {
    return null
 }
 return x
}

to not send events on particular URLs


things to consider?

if folk use this to not send $snapshot data they could create unplayable recordings while trying to save money / add provacy

  • but we could log in cases that are dangerous like that
  • or not allow you to drop things only mask them
@pauldambra
Copy link
Member Author

e.g. #1402 (comment)

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

No branches or pull requests

1 participant