Live demo
This page renders <WebVitals consent={false} debug endpoint=… />. Until you allow measurement, no observer runs and nothing is recorded. Afterwards the debug overlay opens and every report the component sends appears below, byte for byte.
Note
Nothing leaves your browser: requests to
/astro-webvitals/demo/report are answered on this
page, because GitHub Pages cannot store them. On your site they go to your own route.
Consent, measurement, report
Allow measurement, then click, scroll or switch tabs: LCP and INP are finalised by your input, and a batch is sent every three seconds.
Waiting for consent — nothing is measured.
Metrics in this page
From the webvitals:metric event.
- None yet.
Last report to the endpoint
No report sent yet.
{ }What to look for
- Before consent nothing runs: no overlay, no metrics, no report. The same holds for
respectDntwith Do Not Track or Global Privacy Control. - The report's
urlis origin and path. Reload with a query string:?q=private-search#sectiondoes not appear unless the site setsfullUrl. There is no user agent unless it setsincludeUserAgent. reportIdstays the same if a report has to be retried, so your endpoint can drop duplicates; each metric also keeps the stableidand thedeltafrom web-vitals.- Withdrawing consent stops recording at once and removes the overlay; the observers stay registered but everything they report is dropped.