PerformanceCaptureConfig

Properties

NameType
__web_vitals_max_valuenumber

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_timingboolean

Works with session replay to use the browser's native performance observer to capture performance metrics

web_vitals_allowed_metricsSupportedWebVitalsMetrics[]

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_msnumber

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_vitalsboolean

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, experimentation, surveys, LLM analytics, data warehouse, a 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.

Community questions

Questions about this page? or post a community question.