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

add before send docs #9844

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

add before send docs #9844

wants to merge 9 commits into from

Conversation

pauldambra
Copy link
Member

we're adding a beforeSend function to posthog-js
this adds docs for that feature

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog ✅ Ready (Inspect) Visit Preview Nov 13, 2024 0:55am

```
posthog.init('my_token', {
// capture only half of dead click and web vitals events
beforeCapture: sampleByEvent(['$dead_click', '$web_vitals'], 50)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simfish85 I don't know if you want to user test this approach with $secret_customer that were asking about web vitals sampling?

contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
contents/docs/libraries/js/index.mdx Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

3 participants