posthog
posthog copied to clipboard
web vitals improvements
Feature request
feedback from @Lior539
To keep costs in control it would be great if: I could set a sampling % e.g. only collect for 10% of users I could set which metrics I want to capture e.g. Im only interested in INP. But if enabling autocapture captures for all 6 and each one is captured separately in a different event, I end up capturing 6x more events than I need to
we wait for a little while so if a page emits 6 web vitals metrics we might only capture one event but since the time until metrics are available varies the best we can say is 1 - 6 events per pageview
on posthog this is working out as around 0.2 events per pageview - mostly because we have client side navigation
but we can definitely
- [ ] add sampling it fits really well for something super aggregate like this
- [ ] choose which metrics to capture - this makes UI harder since we can't guarantee presence but since it's an active choice that should be self-explaining
- [ ] choose which URLs to enable capture on (this comes up in replay a lot so it would be interesting to see how it works here)
Debug info
No response