PostHog / posthog-js

Send usage data from your web app or site to PostHog, with autocapture.
https://posthog.com/docs/libraries/js
Other
303 stars 126 forks source link

feat: allow triggering sessions when events occur #1523

Closed richard-better closed 2 weeks ago

richard-better commented 2 weeks ago

folk frequently want to control their cost and volume of recordings

this allows them to set a config to start replay "paused" and only start sending data to the server when specified events are seen

Client side of https://github.com/PostHog/posthog/pull/26168

vercel[bot] commented 2 weeks ago

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

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Nov 14, 2024 4:50pm
github-actions[bot] commented 2 weeks ago

Size Change: +8.19 kB (+0.26%)

Total Size: 3.11 MB

Filename Size Change
dist/array.full.es5.js 254 kB +910 B (+0.36%)
dist/array.full.js 356 kB +808 B (+0.23%)
dist/array.full.no-external.js 355 kB +808 B (+0.23%)
dist/array.js 171 kB +809 B (+0.48%)
dist/array.no-external.js 170 kB +809 B (+0.48%)
dist/main.js 172 kB +809 B (+0.47%)
dist/module.full.js 355 kB +808 B (+0.23%)
dist/module.full.no-external.js 355 kB +808 B (+0.23%)
dist/module.js 171 kB +809 B (+0.48%)
dist/module.no-external.js 170 kB +809 B (+0.48%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/all-external-dependencies.js` | 204 kB | | `dist/dead-clicks-autocapture.js` | 13 kB | | `dist/exception-autocapture.js` | 8.8 kB | | `dist/external-scripts-loader.js` | 2.19 kB | | `dist/recorder-v2.js` | 113 kB | | `dist/recorder.js` | 113 kB | | `dist/surveys-preview.js` | 56.7 kB | | `dist/surveys.js` | 62.1 kB | | `dist/tracing-headers.js` | 1.33 kB | | `dist/web-vitals.js` | 10.3 kB |

compressed-size-action