PerformanceCaptureConfig
Properties
| Name | Type |
|---|---|
__web_vitals_max_value | number |
We observe very large values reported by the Chrome web vitals library These outliers are likely not real, useful values, and we exclude them You can set this to 0 in order to include all values, NB this is not recommended 15 * 60 * 1000 (15 minutes) | |
network_timing | boolean |
Works with session replay to use the browser's native performance observer to capture performance metrics | |
web_vitals_allowed_metrics | SupportedWebVitalsMetrics[] |
By default all 4 metrics are captured You can set this config to restrict which metrics are captured e.g. ['CLS', 'FCP'] to only capture those two metrics NB setting this does not override whether the capture is enabled ['LCP', 'CLS', 'FCP', 'INP'] | |
web_vitals_delayed_flush_ms | number |
We delay flushing web vitals metrics to reduce the number of events we send This is the maximum time we will wait before sending the metrics 5000 | |
web_vitals | boolean |
Use chrome's web vitals library to wrap fetch and capture web vitals | |
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, LLM analytics, data warehouse, CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.