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

Merged
merged 14 commits into from
Nov 19, 2024
Merged

add before send docs #9844

merged 14 commits into from
Nov 19, 2024

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 19, 2024 0:48am

pauldambra and others added 2 commits November 11, 2024 17:36
Co-authored-by: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com>
```
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
pauldambra and others added 2 commits November 13, 2024 11:16
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Ioannis J <yiannis@posthog.com>
@pauldambra pauldambra merged commit dae8da1 into master Nov 19, 2024
3 checks passed
@pauldambra pauldambra deleted the feat/before-capture-docs branch November 19, 2024 13:02
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.

4 participants